Ed Boyd - Salmon

Ive just split a VMWare installation of CS2007 on Win2003 by copying it and renaming the server name etc. however I found that the CS2007 site continued to point to the original server. Max Akbar's site discusses how to change the Server Name references by re-running the csconfig tool with /f (see http://blogs.msdn.com/maxakbar/archive/2006/10/17/fix-commerce-server-after-renaming-machine-name.aspx for details) but halfway through re-config it reported an error "an error occurred when configuring the feature 'Marketing Direct Mailer'. The configuration log file may have more details about the error. error summary: The DirectMailer Resource is already configured on another computer ('OLD-SERVER-NAME'). Only one Direct Mailer resource is supported per deployment."

A section from the log file includes the following:

[12:55:58 INFO] Stopping the service 'CSS'. Will wait for some time ('00:00:30') for the service to stop.

[12:55:58 INFO] Service 'CSS' found in State 'Running'.

[12:56:08 INFO] Service 'CSS' is now in State 'Stopped'.

[12:56:08 INFO] Starting the service 'CSS'. Will wait for some time ('00:00:30') for the service to start.

[12:56:08 INFO] Service 'CSS' found in State 'Stopped'.

[12:56:09 INFO] Service 'CSS' is now in State 'Running'.

[12:56:09 INFO] Completed configuration of feature Staging Service (Feature.MS.CS.CsStaging).

[12:56:09 INFO] Beginning configuration of feature Marketing Direct Mailer (Feature.MS.CS.DirectMailer).

[12:56:09 ERROR] CSConfig failed during configuration of feature Marketing Direct Mailer (Feature.MS.CS.DirectMailer).

[12:56:09 ERROR] Exception occured during feature configuration: Microsoft.CommerceServer.Internal.Config.ValidationException: The DirectMailer Resource is already configured on another computer ('SALMON-NET-EVAL'). Only one Direct Mailer resource is supported per deployment.

at Microsoft.CommerceServer.Internal.Config.DirectMailerConfig.CheckForDirectMailerOnAnotherMachine()

at Microsoft.CommerceServer.Internal.Config.DirectMailerConfig.Configure()

at Microsoft.CommerceServer.Internal.Config.ConfigurationDriver.ConfigureHelper(List`1 orderedListOfFeatures).

[12:56:09 INFO] Exception was non-fatal. Beginning rollback.

[12:56:51 INFO] Beginning unconfiguration of feature Marketing Direct Mailer (Feature.MS.CS.DirectMailer).

[12:56:51 INFO] Completed unconfiguration of feature Marketing Direct Mailer (Feature.MS.CS.DirectMailer).

[12:56:51 INFO] Beginning unconfiguration of feature Staging Service (Feature.MS.CS.CsStaging).

[12:56:51 INFO] The virtual directory 'Publishing' does not exist in the default web site 'IIS://LOCALHOST/W3SVC/1/Root'.

[12:56:51 INFO] Completed unconfiguration of feature Staging Service (Feature.MS.CS.CsStaging).

[12:56:51 INFO] Beginning unconfiguration of feature Catalog Import Host (Feature.MS.CS.Catalog).

[12:56:51 INFO] Deleting existing COM+ Application 'Commerce Server Catalog Import Host'

[12:56:51 INFO] Completed unconfiguration of feature Catalog Import Host (Feature.MS.CS.Catalog).

[12:56:51 INFO] Beginning unconfiguration of feature Commerce Server Pipelines (Feature.MS.CS.Core).

[12:56:51 INFO] Deleting existing COM+ Application 'Commerce Server Orders'

[12:56:51 INFO] Completed unconfiguration of feature Commerce Server Pipelines (Feature.MS.CS.Core).

[12:56:51 INFO] Beginning unconfiguration of feature Administration Database (Feature.MS.CS.Admin).

[12:56:51 INFO] Deleting existing COM+ Application 'Commerce Server Config'

[12:56:52 INFO] Completed unconfiguration of feature Administration Database (Feature.MS.CS.Admin).

The original server ('OLD-SERVER-NAME') is currently shut down and is therefore not on the network. Following the error message the reconfig seems to just role back and Im left with a CS system that is making references to the old server name still...

How do I complete the reconfig




Re: Commerce Server 2007 Server ReNamed - CS2007 now fails

Joseph Johnson

You should be able to delete the existing direct mailer resource and just re-install it on the new computer.

I'm not sure if you need to uninstall it using the Commerce Server Installation CD, or if you can just delete the resource from Commerce Server manager, but one of these approaches should work.

After that, just pop your installation CD back in and reinstall, and you should be in business.






Re: Commerce Server 2007 Server ReNamed - CS2007 now fails

boydmobile

Still no luck

Unable to delete it from the CS manager - 'plugin' failues , so went back to the SETUP.EXE , asked it to uninstall everything . Took a look around CS components removed as expected from the GAC etc and site fails with errors stating that CS components not available.

Started a fresh install , all components installed and the Config wizard auto-runs. New machine name appears on the wizard pages, but half way through the same messages appeared and the wizard rolls-back with the same message telling me that the mailer is installed on the OLD machine (which is currently switched off)

Any more thoughts I'll uninstall again and make sure that I dont install the Direct Mailer the next time. Will let you know what happens.

Ed






Re: Commerce Server 2007 Server ReNamed - CS2007 now fails

boydmobile

Nope didnt work - Ive uninstalled and re-installed CS2007 without the Mailing component. It says its been installed correctly and the config wizard has been ran. But when I look in the CS Manager it still has lots of references to the old Machine name (and since that machine is turned off the SQL connections etc all fail).

Ive checked that me machine name is correct be looking at the "Computer Name" tab of the System Properties window. My only thought is that between uninstall and reinstall it isnt removing the config params from the Registry.

How do I get it to pick up the new machine name.






Re: Commerce Server 2007 Server ReNamed - CS2007 now fails

David Lott - MSFT

When you uninstalled and reinstalled CS2007, did you drop the MSCS_Admin database as well

Also you should be able to use Add/Remove Programs to removed the Direct Mailer resource, then Add/Remove programs again to install and configure it on your new machine.

Hope this helps,

David





Re: Commerce Server 2007 Server ReNamed - CS2007 now fails

Max Akbar

Run the following sql command and rerun the configuration with /f flag.

Code Snippet

UPDATE Resources
SET s_Computer = '<your new computer name>'
WHERE (s_Type = 'DirectMailer') AND (f_IsGlobal = 'true')

I will update my blog to include this slight oversight .

Good luck,

-Max




Re: Commerce Server 2007 Server ReNamed - CS2007 now fails

madhur - MSFT

Here is another way to work around the "DirectMailer already exists" problem that occurs during Configuration (CSConfig.exe) when you rename your computer.

Run CSConfig /r:Feature.MS.CS.Admin (double check the exact syntax).

This will reconfigure only the admin database (not the directmailer).

After this launch the Commerce Server Manager (MMC) and delete the Direct Mailer resource.

Then rerun ¡°csconfig /f¡±.

Hope that helps,

madhur