Hey i totally like this module. Will be happy to test it but i want to confirm. Is this safe enough to test in production?. (by safe i mean if there’s a risk in breaking something else, i understand the functionality itself can be incomplete as of now)
Should be safe, I don’t know about the new update (connection security improvement) but just syncing one direction should do no harm to your production server. Don’t use production server as slave!
https://community.nethserver.org/t/nethserver-hotsync-a-new-ns-module/8391/14
thanks! will try with one of the secondary servers.
@wbilger I’ve reproduced your issue with IO error. We’ll try to find a solution soon, but it’s probably related to this https://bugzilla.samba.org/show_bug.cgi?id=7809
There are some updates, checkout github wiki for new installation instructions, and last bleeding edge/testing packages can be found in autobuild repository
About debugging, I had a deep debugging and I took some notes:
Increase rsync verbosity
on slave /etc/rsyncd.conf
add
max verbosity = 10
on master add -vvv
to rsync command in /usr/sbin/hotsync
The more ‘v’ you add, the more verbosity
write hotsync stderror to standard output
edit /usr/sbin/hotsync
and add cat /tmp/hotsync.log
before the last line rm -f /tmp/hotsync.log
copy list of includes and excludes
add in /usr/sbin/hotsync
cp $INCLUDE_FILE /tmp/INCLUDE_FILE cp $EXCLUDE_FILE /tmp/EXCLUDE_FILE
Do you want me to test any of that, or wait for a fix?
Right now, I am in the middle of building 2 fresh machines, to see if I still get the IO errors (I do).
The sync just finished, I have a couple questions;
- should the slave machine be up to date with updates from the software center, or will they propogate?
- should all the same packages be installed (webtop, nextcloud, etc).
Here is what I experienced from running hotsync from a machine with webtop, nextcloud, roundcube, getmail, and connected to a zentyal domain to a slave which was a fresh install of NS.
- restore of configuration went mostly well, IP, fqdn, Zentyal join all worked.
- Webtop, NextCloud, Roundcube, getmail, all installed.
- But, WebTop worked, but NextCloud and RoundCube did not. Nextcloud just gave a blank white screen. Roundcube gave a database error.
- An uninstall and reinstall of roundcube, and it is running.
- An uninstall and reinstall of NextCloud produces an Internal Server Error.
If I try to run an occ scan, it gives a ‘PDOException’ with message ‘SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘nextcloud.oc.appconfig’ doesn’t exist’ in /usr/share/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnections.php:104
wait, probably today we’ll have a testing package
once every hour, slave installs (or update) all nethserver- packages
no, use a clear installation, do the NS first configuration wizard and don’t do anything else
I think that there’s an issue on mysql restore, I’ll try to spot it.
Ok, great, thanks, will you notify here?
I am all in for this module, it is EXACTLY what I need, please let me know if there is anything I can test to help.
Yes, sure
I have tested nextcloud and work for me.
Here is a list of packages to be tested by everyone wants to help
last package in nethserver-testing reository: nethserver-hotsync-1.0.0-1.46.g80dbaf5.ns7.noarch.rpm
Ill need to set up another server for this looks good!
If you lend a hand, you would be more than welcome!
A new interface for nethserver-hotsync in nethserver-cockpit is ready for testing:
GitHub Repository nethserver-cockpit-hotsync: GitHub - NethServer/nethserver-cockpit-hotsync
Install
First install nethserver-cockpit:
After install nethserver-cockpit-hotsync:
yum install http://packages.nethserver.org/nethserver/7.4.1708/testing/x86_64/Packages/nethserver-cockpit-hotsync-0.1.3-1.ns7.noarch.rpm
Now NethServer Hotsync is configurable in NethServer Cockpit, Applications.
Awesome, I will look at the new interface in cockpit right away.
@Stll0 I have been away for weekend, but first tests this morning, and with the new version of hotsync, the IO errors are gone, and now file deletions work as expected. Great news! I will test a restore today.
Give this man a like!!!
I have the nethserver-cockpit-hotsync up and running looks good. Is there plans to add any functionality to it, like sync times? I assume so, if that functionality is added to hotsync.
FYI, I had to log out of cockpit, and log back in, as until then, the NethServer Hotsync settings showed as ‘not available’, not sure if that is normal behaviour or not.
Should or can cockpit/hotsync be added to the slave to aid in role changing, or should slave be left a fresh install as suggested by @Stll0? Although, once an initial promotion to master is done, it would have all of the modules at that point once set back to slave.
Thanks for your help
If sync time will be added to hotsync it will be visible in cockpit interface too.
At the momento after new cockpit module installation recommend to run systemctl restart cockpit and all wil be fine.
Nethserver-hotsync-cockpit and nethserver-cockpit can be installed on master and slave because they do not conflict with nethserver-hotsync. Configuring, if you select role Master the information to be entered will be different than if you select role Slave so you can configure nethserver-hotsync completely using the interface both in master and slave.
We have a new testing package
Call to arms
If you want to test if your favourite module works with HotSync, there’s a lot of packages to check. Look at the issue
@lucag nethserver-webtop5 is waiting for you. I should have fixed the problem you reported
@mrchiao @mrmarkuz I’ve tried nethserver-freepbx and seems to work, but I’m biased
@wbilger I think that issue with nextcloud and roundcube should be resolved, but I didn’t test it
@Jclendineng @jjimenez let me know if it works now with your setup (and what modules you confirm to be tested)