Page 1 of 2

/reload-config not working. Must restart service.

Posted: 2011-02-09 17:25
by Shawn94
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!

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

Posted: 2011-02-09 21:33
by botg
/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.

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

Posted: 2011-02-09 21:40
by Shawn94
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?

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

Posted: 2011-02-09 22:59
by boco
@botg: Could you modify it so in the next version the /reload-config command forces all FZ Server instances to reload their configurations?

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

Posted: 2011-02-10 07:27
by botg
Should be fixed in the repository.

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

Posted: 2011-02-10 16:55
by Shawn94
Awesome, thanks a lot guys.

Any idea when the next version might be released?

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

Posted: 2011-02-11 07:21
by botg
No.

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

Posted: 2011-02-11 07:57
by Shawn94
I guess we'll just build it ourselves. Thanks again.

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

Posted: 2011-05-17 18:46
by mbattaglia
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?

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

Posted: 2011-05-18 20:03
by mbattaglia
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

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

Posted: 2011-05-19 06:19
by botg
Are you running your script as adminstrator?

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

Posted: 2011-05-19 13:31
by mbattaglia
Yes. I am logged in to the server as the Administrator user.

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

Posted: 2011-05-19 23:52
by boco
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.

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

Posted: 2011-05-20 12:37
by mbattaglia
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

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

Posted: 2011-05-20 15:39
by mbattaglia
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!