/reload-config not working. Must restart service.

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

Moderator: Project members

Message
Author
Shawn94
500 Syntax error
Posts: 13
Joined: 2009-01-08 20:09
First name: Shawn
Last name: Burk

/reload-config not working. Must restart service.

#1 Post by Shawn94 » 2011-02-09 17:25

Hey all,

I have a server running 3 instances of FileZilla Server v 0.9.34. We have a script that adds new users to the FileZilla Server.xml for each of the instances. The script then calls the /reload-config command for the appropriate instances of FileZilla Server.

It appears that /reload-config is not working. Here's what I'm doing to test:

1) I add a user to the FileZilla Server.xml
2) I run the following command manually E:\Program Files (x86)\FileZilla Server2>"FileZilla server.exe" /reload-config
3) I open FileZilla Server admin console and check the Users list. The user I added in step 1 is not listed.
4) Restart the FileZilla Server service.
5) Recheck the Users list and the user I added in step 1 is now listed, and I can login fine.

Any ideas here folks? Any other information that I can provide to "help you help me"?

Thanks in advance!

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

Re: /reload-config not working. Must restart service.

#2 Post by botg » 2011-02-09 21:33

/reload-config works by sending a window-message to the first instance of FileZilla Server it finds. In other words, not possible to specify instance. Not even the order in which it finds instances is defined.

Shawn94
500 Syntax error
Posts: 13
Joined: 2009-01-08 20:09
First name: Shawn
Last name: Burk

Re: /reload-config not working. Must restart service.

#3 Post by Shawn94 » 2011-02-09 21:40

Thanks for the quick reply botg. Well that kinda rains on my parade. :(

Do you know of any workarounds to this predicament other than restarting the service?

User avatar
boco
Contributor
Posts: 24485
Joined: 2006-05-01 03:28
Location: Germany

Re: /reload-config not working. Must restart service.

#4 Post by boco » 2011-02-09 22:59

@botg: Could you modify it so in the next version the /reload-config command forces all FZ Server instances to reload their configurations?
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

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

Re: /reload-config not working. Must restart service.

#5 Post by botg » 2011-02-10 07:27

Should be fixed in the repository.

Shawn94
500 Syntax error
Posts: 13
Joined: 2009-01-08 20:09
First name: Shawn
Last name: Burk

Re: /reload-config not working. Must restart service.

#6 Post by Shawn94 » 2011-02-10 16:55

Awesome, thanks a lot guys.

Any idea when the next version might be released?

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

Re: /reload-config not working. Must restart service.

#7 Post by botg » 2011-02-11 07:21

No.

Shawn94
500 Syntax error
Posts: 13
Joined: 2009-01-08 20:09
First name: Shawn
Last name: Burk

Re: /reload-config not working. Must restart service.

#8 Post by Shawn94 » 2011-02-11 07:57

I guess we'll just build it ourselves. Thanks again.

mbattaglia
504 Command not implemented
Posts: 9
Joined: 2011-05-17 18:44
First name: Michael
Last name: Battaglia

Re: /reload-config not working. Must restart service.

#9 Post by mbattaglia » 2011-05-17 18:46

I just installed the latest version (0.9.37) and this is still an issue on servers that are running multiple instances of the service. Do you know when a new setup will be made with fix?

mbattaglia
504 Command not implemented
Posts: 9
Joined: 2011-05-17 18:44
First name: Michael
Last name: Battaglia

Re: /reload-config not working. Must restart service.

#10 Post by mbattaglia » 2011-05-18 20:03

I am trying to implement a work around for this issue. However the FindWindow command isn't returning the handle to the window:

VB6

Code: Select all

Private Sub Command1_Click()
    Dim hwnd As Long
    
    hwnd = FindWindow("FileZilla Server Helper Window", "FileZilla Server Helper Window")
    'hwnd = FindWindow(vbNullString, "Untitled - Notepad")
    MsgBox "hWnd=" & CStr(hwnd) ' This returns 0's!
End Sub

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

Re: /reload-config not working. Must restart service.

#11 Post by botg » 2011-05-19 06:19

Are you running your script as adminstrator?

mbattaglia
504 Command not implemented
Posts: 9
Joined: 2011-05-17 18:44
First name: Michael
Last name: Battaglia

Re: /reload-config not working. Must restart service.

#12 Post by mbattaglia » 2011-05-19 13:31

Yes. I am logged in to the server as the Administrator user.

User avatar
boco
Contributor
Posts: 24485
Joined: 2006-05-01 03:28
Location: Germany

Re: /reload-config not working. Must restart service.

#13 Post by boco » 2011-05-19 23:52

For Vista and 7, logging in as Admin user is not sufficient, as UAC denies you admin rights unless you explicitly run your script as administrator (right-click). That's what botg meant.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

mbattaglia
504 Command not implemented
Posts: 9
Joined: 2011-05-17 18:44
First name: Michael
Last name: Battaglia

Re: /reload-config not working. Must restart service.

#14 Post by mbattaglia » 2011-05-20 12:37

I should have posted the specs of the server:

Windows 2003 Standard (32 bit)
FileZilla Server (0.9.37) [2 instances of same version running]
Logged in with *full* admin rights

mbattaglia
504 Command not implemented
Posts: 9
Joined: 2011-05-17 18:44
First name: Michael
Last name: Battaglia

Re: /reload-config not working. Must restart service.

#15 Post by mbattaglia » 2011-05-20 15:39

OK. The issue was that I was connected to the server via RDP and the API doesn't return all of the HWNDs. I had to connect via console (or mstsc /admin) and now the API works. Thanks for you help!

Post Reply