Page 1 of 1

Migration error from version 1.3.13.0 to 1.6.2.7

Published: Dec 6, 2018 - 3:48 PM
by filou07
Good morning,

I'm migrating from version 13.13.0 to 1.6.2.7. The post-configuration displays an error when migrating to PostgreSQL because a file appears to be in use. Even after rebooting my server and exiting the WAPT agent, the error persists.

My server is running Windows Server 2012 R2 Datacenter 64-bit

Error text:

Code: Select all

Error during post-config:
System Error, (OS Code 1):
Fonction incorrecte : Traceback (most recent call last):
 File "C:\wapt\\waptserver\upgrade.py", line 189, in 
<module>
comment_mongodb_lines(conf_filename=options.config...
 File "C:\wapt\\waptserver\upgrade.py", line 125, in 
comment_mongodb_lines
  os.rename(conf_filename, '%s.%s' % (conf_filename, 
datetime.datetime.today().strftime(%Y%m%d-%H:%M:...
WindowsError: [Error 32] Le processus ne peut pas acc?der 
au fichier car le fichier est utilis? par un autre processus
Thank you for your help

Re: Migration error from 1.3.13.0 to 1.6.2.7

Published: Dec 10, 2018 - 4:50 PM
by filou07
Is there only one inspired person?

Thank you

Re: Migration error from 1.3.13.0 to 1.6.2.7

Published: January 9, 2019 - 12:37 PM
by PetApp
filou07 wrote: Dec 6, 2018 - 3:48 PM Good morning,

I'm migrating from version 13.13.0 to 1.6.2.7. The post-configuration displays an error when migrating to PostgreSQL because a file appears to be in use. Even after rebooting my server and exiting the WAPT agent, the error persists.

My server is running Windows Server 2012 R2 Datacenter 64-bit

Error text:

Code: Select all

Error during post-config:
System Error, (OS Code 1):
Fonction incorrecte : Traceback (most recent call last):
 File "C:\wapt\\waptserver\upgrade.py", line 189, in 
<module>
comment_mongodb_lines(conf_filename=options.config...
 File "C:\wapt\\waptserver\upgrade.py", line 125, in 
comment_mongodb_lines
  os.rename(conf_filename, '%s.%s' % (conf_filename, 
datetime.datetime.today().strftime(%Y%m%d-%H:%M:...
WindowsError: [Error 32] Le processus ne peut pas acc?der 
au fichier car le fichier est utilis? par un autre processus
Thank you for your help
I had the same error!

Re: Migration error from 1.3.13.0 to 1.6.2.7

Published: January 14, 2019 - 8:21 PM
by dcardon
Hello filou07,
filou07 wrote: Dec 6, 2018 - 3:48 PM I'm migrating from version 13.13.0 to 1.6.2.7. The post-configuration displays an error when migrating to PostgreSQL because a file appears to be in use. Even after rebooting my server and exiting the WAPT agent, the error persists.

My server is running Windows Server 2012 R2 Datacenter 64-bit

Error text:

Code: Select all

Error during post-config:
System Error, (OS Code 1):
Fonction incorrecte : Traceback (most recent call last):
 File "C:\wapt\\waptserver\upgrade.py", line 189, in 
<module>
comment_mongodb_lines(conf_filename=options.config...
 File "C:\wapt\\waptserver\upgrade.py", line 125, in 
comment_mongodb_lines
  os.rename(conf_filename, '%s.%s' % (conf_filename, 
datetime.datetime.today().strftime(%Y%m%d-%H:%M:...
WindowsError: [Error 32] Le processus ne peut pas acc?der 
au fichier car le fichier est utilis? par un autre processus
Thank you for your help
It seems your update is failing because the upgrade is blocked due to another process having an exclusive lock on the waptserver.ini file. There's no reason why a process should be blocking this file...

Your problem hasn't inspired many people, so I'll first check your antivirus software. Alternatively, you can install Process Explorer [1] (there's a wapt package available) to see which process has a lock on it.

Sincerely,

Denis

[1] https://docs.microsoft.com/en-us/sysint ... s-explorer

Re: Migration error from 1.3.13.0 to 1.6.2.7

Published: November 12, 2021 - 8:47 PM
by Amiled1981
The contrib program pg_upgrade allows an installation to be migrated in-place from one major PostgreSQL version to the next