Quantcast
Viewing all articles
Browse latest Browse all 659

Changes in the database are not reflected until the service is restarted

Hi,

 

We are starting to integrate into Serv-U FTP by using the ODBC attached database to allow us to create and administrate groups and users.  I have let Serv-U create the tables in the database so these are native serv-u tables.  No mappings.   I am first testing out how this is going to work by manually changing and inserting data into the MS SQL server database using SQL Management Studio. 

 

I am using the Linux version SU-FTP-Server-Linux-64bit-v15.0.0 on Ubuntu with an ODBC connection to MS SQL 2012.  The FTP server works and I am able to admin the database users and groups in the Web Administrator.  The problem is if I attempt to change a value directly in the database the Web Admin nor the FTP service are detecting the change.  It appears the Web Admin and the FTP service are caching the data from the database in memory.  I have a group that I am changing the Enabled field from true to false.  In the database the value of 0 is observed but the FTP Web Admin continues to display the group as enabled even when I refresh the browser or exit and enter the group editor.  The FTP server continues to let the users access even though the group has been disabled in the database.  Note this is not a case where I have an override "enable" on the user.  If I restart the Serv-U service and load up the Web Admin it will correctly read the state change in the group and display it as disabled.  The FTP service will also deny the user access since the group is disabled.  Now, if I update the group again directly in the database and change it to enable true the Web Admin will not reflect the change and the FTP service will not reflect the change.  Both will continue to consider the group disabled even though the database has it set to enable.  Enable with a 1 or null set.  But for my testing I am setting it to 1. Again, if i restart the service the state change will be detected.

 

I am now testing if I have to wait for it to eventually detect the change but it has not happened in the time for me to write this question.

 

The final question I guess is.  Can I make changes directly to the database and will the FTP and Admin see these changes without me having to restart the service.

 

-Mark


Viewing all articles
Browse latest Browse all 659

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>