Skip to main content
Documentation & User Guides | Fotoware

Upgrading from Feature Release 19 to Feature Release 20

DRAFT article explaining how to upgrade from Feature Release 19 to Feature Release 20.

Upgrading from Feature Release 19 to Feature Release 20

NoteThis is a draft article that is subject to change. 

Prerequisite

Backup customer data (typically everything at C:\ProgramData\FotoWare) before starting the upgrade. For more information, see Backing up a Fotoware system.

Uninstalling the FotoWeb MongoDB service

  1. Stop the existing MongoDB service by running net stop fwmongodb.
  2. Remove the FotoWeb MongoDB service using the Windows service manager, services.msc.

If you are using an external MongoDB service, you must stop it manually.

Uninstalling Feature Release 19

Uninstall Feature Release 19 software using the standard installer, for example, in Windows Control Panel. The uninstaller stops all FotoWeb services, including the FotoWeb MongoDB server.

Upgrading MongoDB version from 4.4 to version 8.x

  1. Download zip packages of MongoDB versions 5, 6, and 7 for Windows x64 platform from https://www.mongodb.com/try/download/community.
    Direct links: 
  1. Download the msi installer of MongoDB version 8 for Windows x64 platform from Download MongoDB Community Server.
  2. Extract the files from the zip packages of MongoDB versions 5, 6, and 7 to any destination.
  3. Install MongoDB version 5 without installing it as a Windows Service.
  • In a cmd shell, run: 
"<uzipped_folder_of_mongodb5>\bin\mongod.exe" --dbpath=c:\ProgramData\FotoWare\FotoWeb\Operations\MongoDBData\
  • In mongo.exe/Robo 3T/Compass, run the following command to update the version to 5.0 (in Robo 3T/Compass creating a new connection to localhost:27017 is required, as the default port number was changed in version 5):
db.adminCommand( { setFeatureCompatibilityVersion: "5.0" } )
  • Close Robo 3T/Compass.
  • Return to the open cmd session and stop the mongod.exe process by selecting Ctrl+C.
  1. Repeat the above steps for MongoDB version 6

    Note: Remember to change the path and version numbers
"<uzipped_folder_of_mongodb6>\bin\mongod.exe" --dbpath=c:\ProgramData\FotoWare\FotoWeb\Operations\MongoDBData\
db.adminCommand( { setFeatureCompatibilityVersion: "6.0" } )
  1. Repeat the above steps with MongoDB version 7

    Note: Remember to change the path. 
"<uzipped_folder_of_mongodb7>\bin\mongod.exe" --dbpath=c:\ProgramData\FotoWare\FotoWeb\Operations\MongoDBData\

Note: The command for version 7 is different: 

db.adminCommand( { setFeatureCompatibilityVersion: "7.0", confirm: true } )
  1. Stop the mongod.exe process by selecting Ctrl+C in the open cmd session and close Robo 3T/Compass.

  2. You can now delete the folders with the extracted zip files for MongoDB versions 5, 6, and 7. 

  3. Run the msi installer of MongoDB version 8. Select Complete Installation and Install MongoDB as a Service.

  • Keep the service name as MongoDB
  • Data Directory and Log Directory can be set to the default values or another location not pointing to c:\ProgramData\FotoWare...
  • If you set MongoDB Windows service account to something other than the default Network Service, ensure it has full permission on the Data Directory and Log Directory

Finish the installation using the installation wizard.

  1. Open Windows Services, for example, by going to Control Panel > Administration Tools, and start the MongoDB Server (MongoDB) service.

  2. In mongo.exe/Robo 3T/Compass, run the following command to update the version to 8.0:

 db.adminCommand( { setFeatureCompatibilityVersion: "8.0", confirm: true } )
  1. As a test, run the following command in the MongoDB shell or Robo 3T/Compass and ensure it outputs version 8, for example,8.0.6:

db.version()
  1. Stop MongoDB service.

  2. Copy the files from C:\ProgramData\FotoWare\FotoWeb\Operations\MongoDBData\ to the path set for Data Directory.

  3. Copy the files from C:\ProgramData\FotoWare\FotoWeb\Operations\Logs\MongoDB\ to the path Log Directory.

  4. Run MongoDB service.

Configuring FotoWeb

InC:\ProgramData\FotoWare\FotoWeb\Server Settings\Configuration\System.settings file, set MongoDBPort to 27017 for the following two settings and save the file:

  • <ServerDatabaseSettings>
  • <FotoWareDatabaseSettings>

Note: We recommend using the default port 27017 or an alternative port. The legacy FotoWeb port 7200 is no longer allowed, and we recommend avoiding well known ports.

If you skip this step and leave the old ports in the system.settings file, the upgrade wizard will display the following error message and will not run.

upgrade_FR20_error.png

In this case, after fixing the port numbers, the upgrade wizard can be run manually via cmd:

"C:\Program Files\FotoWare\FotoWeb\fwsetup.exe" -installModeReal

If FR20 was installed before updating MongoDB:

  1. Run the FotoWeb Settings app (ConfigApp) > Database and set MongoDB host to localhost:27017.
  2. Select Save.
  3. Open the C:\ProgramData\FotoWare\FotoWeb\Server Settings\Configuration\System.settings file and set the MongoDB port to 27017 (there are two ! entries).
  4. Save the file.
  5. Rerun the upgrade wizard manually - "C:\Program Files\FotoWare\FotoWeb\fwsetup.exe" -installModeReal.
  6. In system.settings or in the FotoWeb config app, set the MongoDB connection string to match what you set up for the service when you installed MongoDB version 8. Note that this is repeated in two places in system.settings.
  7. In the Index Manager config app, set the MongoDB connection string to match what you set up for the service when you installed MongoDB version 8.
     

Note: We recommend using the default port 27017 or an alternative port. The legacy FotoWeb port 7200 is no longer allowed, and we recommend avoiding well known ports.

Installing the new Feature Release 20 software

  1. Upgrade to the latest version of Index Manager.
  2. In the Index Manager Settings app, go to General  Indexes and make sure the MongoDB host is updated to the new port number 27017 if you are using the Push metadata to FotoWeb server option.
  3. Install the FotoWeb FR20 release using the FotoWeb installer and following the upgrade process
  • Was this article helpful?