Upgrade from 1.5 to 1.7.2 and keep existing configuration

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Message
Author
BloodBaz
504 Command not implemented
Posts: 11
Joined: 2009-01-26 11:37
First name: Chris
Last name: Walsh

Upgrade from 1.5 to 1.7.2 and keep existing configuration

#1 Post by BloodBaz » 2023-08-18 12:16

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.

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Upgrade from 1.5 to 1.7.2 and keep exsiting configuration

#2 Post by botg » 2023-08-18 14:59

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

BloodBaz
504 Command not implemented
Posts: 11
Joined: 2009-01-26 11:37
First name: Chris
Last name: Walsh

Re: Upgrade from 1.5 to 1.7.2 and keep exsiting configuration

#3 Post by BloodBaz » 2023-08-18 15:10

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

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Upgrade from 1.5 to 1.7.2 and keep exsiting configuration

#4 Post by botg » 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?

jstech012
504 Command not implemented
Posts: 6
Joined: 2021-09-01 16:54
First name: J
Last name: S

Re: Upgrade from 1.5 to 1.7.2 and keep exsiting configuration

#5 Post by jstech012 » 2023-08-19 01:25

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...

jstech012
504 Command not implemented
Posts: 6
Joined: 2021-09-01 16:54
First name: J
Last name: S

Re: Upgrade from 1.5 to 1.7.2 and keep exsiting configuration

#6 Post by jstech012 » 2023-08-19 02:40

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.

jstech012
504 Command not implemented
Posts: 6
Joined: 2021-09-01 16:54
First name: J
Last name: S

Re: Upgrade from 1.5 to 1.7.2 and keep exsiting configuration

#7 Post by jstech012 » 2023-08-19 03:02

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...

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Upgrade from 1.5 to 1.7.2 and keep exsiting configuration

#8 Post by botg » 2023-08-19 08:30

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?

BloodBaz
504 Command not implemented
Posts: 11
Joined: 2009-01-26 11:37
First name: Chris
Last name: Walsh

Re: Upgrade from 1.5 to 1.7.2 and keep exsiting configuration

#9 Post by BloodBaz » 2023-08-19 09:58

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.
Last edited by BloodBaz on 2023-08-19 10:03, edited 1 time in total.

BloodBaz
504 Command not implemented
Posts: 11
Joined: 2009-01-26 11:37
First name: Chris
Last name: Walsh

Re: Upgrade from 1.5 to 1.7.2 and keep exsiting configuration

#10 Post by BloodBaz » 2023-08-19 10:00

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.

BloodBaz
504 Command not implemented
Posts: 11
Joined: 2009-01-26 11:37
First name: Chris
Last name: Walsh

Re: Upgrade from 1.5 to 1.7.2 and keep exsiting configuration

#11 Post by BloodBaz » 2023-08-21 08:20

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

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Upgrade from 1.5 to 1.7.2 and keep existing configuration

#12 Post by botg » 2023-08-21 09:52

Still investigating.

GrZeCh
504 Command not implemented
Posts: 6
Joined: 2023-09-14 08:59

Re: Upgrade from 1.5 to 1.7.2 and keep existing configuration

#13 Post by GrZeCh » 2023-09-20 11:06

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.

GrZeCh
504 Command not implemented
Posts: 6
Joined: 2023-09-14 08:59

Re: Upgrade from 1.5 to 1.7.2 and keep existing configuration

#14 Post by GrZeCh » 2023-09-21 07:15

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.

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Upgrade from 1.5 to 1.7.2 and keep existing configuration

#15 Post by botg » 2023-09-22 07:48

@GrZeCh: This forum thread is about an issue migrating configuration files. Please don't hijack it with unrelated questions.

Post Reply