Page 1 of 2

Upgrade from 1.5 to 1.7.2 and keep existing configuration

Posted: 2023-08-18 12:16
by BloodBaz
Hi,

I need to upgrade FileZilla Server from 1.5.1 to 1.7.2 (latest version at time of posting).

v1.7 contains an "Export configuration..." and "Import configuration..." option under the Server menu but v1.5 doesn't.

https://static.activbase.net/temp/FileZilla-Import-Export.png

Furthermore, a simple install of v1.7 over v1.5 causes all configuration to be reset. To be honest, I don't think 1.7 overwrites the config of v1.5, it's just that the config is stored differently. In v1.5, a series of xml and certificate files are located under C:\ProgramData\filezilla-server and these are untouched, so I assume I need to export and reimport config - unless there is another way that I am missing.

Please advise how I can upgrade from v1.5.1 to v1.7.2 without losing configuration.

Thanks
Chris.

Re: Upgrade from 1.5 to 1.7.2 and keep exsiting configuration

Posted: 2023-08-18 14:59
by botg
It seems you have been switching back and forth between versions. Note that downgrading causes all sorts of issues, don't do that.

First let's clean up the created mess. With 1.5.1 installed, delete C:\ProgramData\filezilla-server and only afterwards install 1.7.2 directly over 1.5.1

Re: Upgrade from 1.5 to 1.7.2 and keep exsiting configuration

Posted: 2023-08-18 15:10
by BloodBaz
Hi botg,

Thanks bobg for replying. Much appreciated.

I had to downgrade again from v1.7.2 to v1.5.1 as it broke my existing FTP connections (as it didn't pick up my v1.5.1 config).
After downgrading I was able to get FileZilla (v1.5.1) working again but only because I also restored the C:\ProgramData\filezilla-server which (I'm pretty sure) v1.5.1 relies on. I don't feel there's a mess at this point as it is back working again.

If I was to remove C:\ProgramData\filezilla-server then won't this break my current install?
Please could you clarify why we would want to delete this config folder? I'm open to doing so if I understand how doing so will get an install of v1.7.2 working with my existing configuration.

Thanks
Chris

Re: Upgrade from 1.5 to 1.7.2 and keep exsiting configuration

Posted: 2023-08-18 17:01
by botg
Wait, 1.5.x already used %PROGRAMDATA%? (Been so long ago...)

Are you running the two server services of the versions by chance under different Windows user accounts?

Re: Upgrade from 1.5 to 1.7.2 and keep exsiting configuration

Posted: 2023-08-19 01:25
by jstech012
Sorry to butt in... I also performed in place upgrade from 1.3.? to 1.7.2 and lost everything. I have re-entered information and can log users on, but no users can do anything past login:

client log:
Command: MLSD
Response: 227 Entering Passive Mode
Error: Failed to retrieve directory listing
Status: Disconnected From Server

I have shadow copies of C:\Windows\System32\config\systemprofile\AppData\Local\filezilla-server folder.
Can I get anything working again from those?

Installer gave me a notice about "Take note of Server Administration TLS fingerprints", which I have a snip of...

Re: Upgrade from 1.5 to 1.7.2 and keep exsiting configuration

Posted: 2023-08-19 02:40
by jstech012
More Log Info

From Client:
2023-08-18 22:34:33 1844 1 Command: USER jshannon
2023-08-18 22:34:33 1844 1 Response: 331 Please, specify the password.
2023-08-18 22:34:33 1844 1 Command: PASS **************************
2023-08-18 22:34:33 1844 1 Response: 230 Login successful.
2023-08-18 22:34:33 1844 1 Status: Logged in
2023-08-18 22:34:33 1844 1 Trace: Measured latency of 80 ms
2023-08-18 22:34:33 1844 1 Status: Retrieving directory listing...
2023-08-18 22:34:33 1844 1 Command: PWD
2023-08-18 22:34:33 1844 1 Response: 257 "/" is current directory.
2023-08-18 22:34:33 1844 1 Command: TYPE I
2023-08-18 22:34:33 1844 1 Response: 200 Type set to I
2023-08-18 22:34:33 1844 1 Command: PASV
2023-08-18 22:34:33 1844 1 Response: 227 Entering Passive Mode (198,179,99,235,248,252)
2023-08-18 22:34:33 1844 1 Trace: Binding data connection source IP to control connection source IP 192.168.50.142
2023-08-18 22:34:33 1844 1 Trace: Trying to resume existing TLS session.
2023-08-18 22:34:33 1844 1 Command: MLSD
2023-08-18 22:34:33 1844 1 Response: 550 Couldn't open the file or directory
2023-08-18 22:34:33 1844 1 Error: Failed to retrieve directory listing
2023-08-18 22:34:36 1844 1 Status: Disconnected from server


From Server:
-08-19T02:34:33.156Z << [FTP Session 2 71.176.105.34 jshannon] 230 Login successful.
2023-08-19T02:34:33.235Z >> [FTP Session 2 71.176.105.34 jshannon] PWD
2023-08-19T02:34:33.235Z << [FTP Session 2 71.176.105.34 jshannon] 257 "/" is current directory.
2023-08-19T02:34:33.281Z >> [FTP Session 2 71.176.105.34 jshannon] TYPE I
2023-08-19T02:34:33.281Z << [FTP Session 2 71.176.105.34 jshannon] 200 Type set to I
2023-08-19T02:34:33.344Z >> [FTP Session 2 71.176.105.34 jshannon] PASV
2023-08-19T02:34:33.344Z DV [FTP Session 2 71.176.105.34 jshannon] Trying listen(1, 63740) for data connection.
2023-08-19T02:34:33.344Z DI [FTP Session 2 71.176.105.34 jshannon] Looking up host '198.179.99.235' for PASV mode.
2023-08-19T02:34:33.344Z << [FTP Session 2 71.176.105.34 jshannon] 227 Entering Passive Mode (198,179,99,235,248,252)
2023-08-19T02:34:33.391Z >> [FTP Session 2 71.176.105.34 jshannon] MLSD
2023-08-19T02:34:33.391Z << [FTP Session 2 71.176.105.34 jshannon] 550 Couldn't open the file or directory
2023-08-19T02:34:36.275Z !! [FTP Session 2 71.176.105.34 jshannon] GnuTLS error -110 in gnutls_record_recv: The TLS connection was non-properly terminated.
2023-08-19T02:34:36.275Z == [FTP Session 2 71.176.105.34 jshannon] Client did not properly shut down TLS connection
2023-08-19T02:34:36.275Z !! [FTP Session 2 71.176.105.34 jshannon] Control channel closed with error from source 0. Reason: ECONNABORTED - Connection aborted.
2023-08-19T02:34:36.275Z DI [FTP Session 2 71.176.105.34] Session 0x1f6b4c868c0 with ID 2 destroyed.

Re: Upgrade from 1.5 to 1.7.2 and keep exsiting configuration

Posted: 2023-08-19 03:02
by jstech012
I uninstalled 1.7.2 and reinstalled v1.3.0 and back in business...
however, any assistance in performing upgrade would be appreciated? I assume i must export the config prior to upgrading?
I also have server v.1.5.1 as an intermediate step if needed?
please help...

Re: Upgrade from 1.5 to 1.7.2 and keep exsiting configuration

Posted: 2023-08-19 08:30
by botg
Please don't perform rollbacks, it screws things up. Always use the most recent version.

I am unable to reproduce the issue. Are you using any custom service configuration?

Re: Upgrade from 1.5 to 1.7.2 and keep exsiting configuration

Posted: 2023-08-19 09:58
by BloodBaz
botg wrote:
2023-08-18 17:01
Wait, 1.5.x already used %PROGRAMDATA%? (Been so long ago...)

Are you running the two server services of the versions by chance under different Windows user accounts?
I'm not running the two versions under different Windows user accounts, but...

I was running FileZilla Server v1.5.1 under a local user account called FileZillaServiceUser (based on documentation recommending creating a dedicated user account to run the service).
When I installed v1.7.2, this would have requried elevated (Administrator) privialages as is normal during an install so maybe the service was installed back to LOCALSYSTEM or similar?

Could this be the reason v1.7.2 install did not see v1.5.1 configuration?
Are you saying that v1.7.2 supposed to install and adopt the existing config settings from the previous version?
After installing v1.7.1, I don't believe I checked what account the service was running under.

Re: Upgrade from 1.5 to 1.7.2 and keep exsiting configuration

Posted: 2023-08-19 10:00
by BloodBaz
botg wrote:
2023-08-19 08:30
Please don't perform rollbacks, it screws things up. Always use the most recent version.
okay. 8)
botg wrote:
2023-08-19 08:30
I am unable to reproduce the issue. Are you using any custom service configuration?
Only the dedicated local user account for running the service (as per previous post).
I've got Acme LetsEnrypt certiifcates. TLS stuff in confiig, about 3-4 users accounts within the server, PASV enabled with a specified port range.

Re: Upgrade from 1.5 to 1.7.2 and keep exsiting configuration

Posted: 2023-08-21 08:20
by BloodBaz
Morning botg. Is there any further advice you can give regarding my last two posts?

I've got a working v1.5.1 version but:
- If I install v1.7.2 over it, then I lose all configuration
- If I delete %ProgramData%\filezillla server then I also lose all configuration.
but the above two points are the only advise I've been given so far.

I need to upgrade to v1.7.2 without losing my current config.

Thanks
Chris

Re: Upgrade from 1.5 to 1.7.2 and keep existing configuration

Posted: 2023-08-21 09:52
by botg
Still investigating.

Re: Upgrade from 1.5 to 1.7.2 and keep existing configuration

Posted: 2023-09-20 11:06
by GrZeCh
Hello,

do you need any additional details here? I'm running Filezilla Server on hosting environment and when I've upgraded from 0.9.x to 1.7.x I have various reports with:

Control channel closed with error from source 0. Reason: ECONNABORTED - Connection aborted.

error. I can provide you some logs if you need them.

Re: Upgrade from 1.5 to 1.7.2 and keep existing configuration

Posted: 2023-09-21 07:15
by GrZeCh
I've also have some suggestion from my client. It might be related to

https://filezilla-project.org/versions.php?type=server

"Fixes for login request throttler"

This client is making each day website updates by deleting some files and uploading some more and he suggested that this occurs during login sessions.

Re: Upgrade from 1.5 to 1.7.2 and keep existing configuration

Posted: 2023-09-22 07:48
by botg
@GrZeCh: This forum thread is about an issue migrating configuration files. Please don't hijack it with unrelated questions.