We are in the Créteil academy.
We are currently going live, but we restarted our installation from scratch to be sure we did everything correctly.
We are also encountering a problem with synchronization; I think there's an installation error, but I can't figure out what it is.
Traceback (most recent call last):
File "/opt/tis-sysvolsync/sysvolsync.py", line 409, in
main()
File "/opt/tis-sysvolsync/sysvolsync.py", line 348, in main
syncthing = SyncThing()
File "/opt/tis-sysvolsync/sysvolsync.py", line 87, in __init__
self.id = self.get_syncthing_id()
File "/opt/tis-sysvolsync/sysvolsync.py", line 158, in get_syncthing_id
return self.syncthing_rest_get('system/status')['myID']
File "/opt/tis-sysvolsync/sysvolsync.py", line 129, in syncthing_rest_get
data = requests.get('http://127.0.0.1:%s/rest/%s' % (self.apiport,path), hea ders={'X-API-Key':apikey}, proxies={'http':None,'https':None})
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 70, in get
return request('get', url, params=params, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 488, in req uest
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 609, in sen d
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 487, in sen d
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8 385): Max retries exceeded with url: /rest/system/status (Caused by NewConnectio nError('
root@BDC2:/opt/tis-sysvolsync/deb# /etc/init.d/ssh restart
[ ok ] Restarting ssh (via systemctl): ssh.service.
root@BDC2:/opt/tis-sysvolsync/deb# /opt/tis-sysvolsync/sysvolsync.py configure
Traceback (most recent call last):
File "/opt/tis-sysvolsync/sysvolsync.py", line 409, in
main()
File "/opt/tis-sysvolsync/sysvolsync.py", line 348, in main
syncthing = SyncThing()
File "/opt/tis-sysvolsync/sysvolsync.py", line 87, in __init__
self.id = self.get_syncthing_id()
File "/opt/tis-sysvolsync/sysvolsync.py", line 158, in get_syncthing_id
return self.syncthing_rest_get('system/status')['myID']
File "/opt/tis-sysvolsync/sysvolsync.py", line 129, in syncthing_rest_get
data = requests.get('http://127.0.0.1:%s/rest/%s' % (self.apiport,path), hea ders={'X-API-Key':apikey}, proxies={'http':None,'https':None})
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 70, in get
return request('get', url, params=params, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 488, in req uest
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 609, in sen d
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 487, in sen d
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8 385): Max retries exceeded with url: /rest/system/status (Caused by NewConnectio nError('
Could you tell me what's causing this and whether it's possible to reinstall without breaking everything?
I'm on Debian 9.
I followed the commands in your documentation:
`apt-get install git python-requests python-lxml python-ldap`,
`git clone
https://github.com/
tranquilit/tis-sysvolsync`, `cd tis-sysvolsync/deb`, `
sh createdeb.sh`,
then
`apt-get install python-requests python-lxml python-ldap procps ldb-tools`
, `dpkg -i tis-sysvolsync-*.deb`.
I restarted the service, but when I check the `-xe` log on BDC1 or BDC2, there are errors
: `-- The unit tis-sysvolsync.service failed, with the result 'failed.
Jun 28 16:15:21 BDC2.lyceeader.eu systemd[1]: tis-sysvolsync.service: Failed with result 'exit-code'.`
June 28 16:15:21 BDC2.lyceeader.eu systemd[1]: tis-sysvolacl.service: Service hold-off time over, scheduling restart.
June 28 16:15:21 BDC2.lyceeader.eu systemd[1]: tis-sysvolsync.service: Start request repeated too quickly.
June 28 16:15:21 BDC2.lyceeader.eu systemd[1]: Failed to start Samba4 sysvol sync with syncthing.
-- Subject: The unit tis-sysvolsync.service failed
-- Defined-By: systemd
-- Support:
https://www.debian.org/support
--
-- The unit tis-sysvolsync.service failed, with the result failed.
June 28 16:15:21 BDC2.lyceeader.eu systemd[1]: tis-sysvolsync.service: Failed with result 'exit-code'.
June 28 16:15:21 BDC2.lyceeader.eu systemd[1]: Stopped Samba4 sysvol replication watch and fixed ACL after sync completion.
-- Subject: The unit tis-sysvolacl.service has finished shutting down
-- Defined-By: systemd
-- Support:
https://www.debian.org/support
--
-- The unit tis-sysvolacl.service has finished shutting down.
June 28 16:15:21 BDC2.lyceeader.eu systemd[1]: tis-sysvolacl.service: Start request repeated too quickly.
June 28 16:15:21 BDC2.lyceeader.eu systemd[1]: Failed to start Samba4 sysvol replication watch and fix ACL after sync completion.
-- Subject: The unit tis-sysvolacl.service failed
-- Defined-By: systemd
-- Support:
https://www.debian.org/support
--
-- The unit tis-sysvolacl.service failed, with the result failed.
June 28 16:15:21 BDC2.lyceeader.eu systemd[1]: tis-sysvolacl.service: Unit entered failed state.
June 28 16:15:21 BDC2.lyceeader.eu systemd[1]: tis-sysvolacl.service: Failed with result 'exit-code'.
Jun 28 16:17:01 BDC2.lyceeader.eu CRON[4349]: pam_unix(cron:session): session opened for user root by (uid=0)
Jun 28 16:17:01 BDC2.lyceeader.eu CRON[4350]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 28 16:17:01 BDC2.lyceeader.eu CRON[4349]: pam_unix(cron:session): session closed for user root
Jun 28 16:23:35 BDC2.lyceeader.eu systemd[1]: Stopping OpenBSD Secure Shell server...
-- Subject: Unit ssh.service started to stop
-- Defined-By: systemd
-- Support:
https://www.debian.org/support
--
-- The unit ssh.service has started to shut down.
Jun 28 16:23:35 BDC2.lyceeader.eu sshd[821]: Received signal 15; terminating.
Jun 28 16:23:35 BDC2.lyceeader.eu systemd[1]: Stopped OpenBSD Secure Shell server.
-- Subject: The unit ssh.service has finished shutting down
-- Defined-By: systemd
-- Support:
https://www.debian.org/support
--
-- The unit ssh.service has finished shutting down.
June 28 16:23:35 BDC2.lyceeader.eu systemd[1]: Starting OpenBSD Secure Shell server...
-- Subject: The unit ssh.service started starting
-- Defined-By: systemd
-- Support:
https://www.debian.org/support
--
-- The unit ssh.service started starting.
June 28 16:23:35 BDC2.lyceeader.eu sshd[4391]: Server listening on 0.0.0.0 port 22. June 28 16:23:35
BDC2.lyceeader.eu sshd[4391]: Server listening on :: port 22.
June 28 16:23:35 BDC2.lyceeader.eu systemd[1]: Started OpenBSD Secure Shell server.
-- Subject: The ssh.service unit has finished starting up