Nous sommes dans l'académie de créteil.
Nous passons en production en ce moment mais on a repris au début notre install pour être certain de ce que l'on a fait.
Aussi nous rencontrons un problème avec la synchro il y a une erreur d'install je pense mais je ne vois pas quoi ?
Traceback (most recent call last):
File "/opt/tis-sysvolsync/sysvolsync.py", line 409, in <module>
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('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fd3f6f d8690>: Failed to establish a new connection: [Errno 111] Connection refused',))
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 <module>
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('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f3ac7c d6690>: Failed to establish a new connection: [Errno 111] Connection refused',))
pourriez vous me dire à quoi cela est dû et peut on réinstaller sans tout casser ?
Je suis en debian 9
j'ai fait les lignes suivante dans votre doc
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
puis
apt-get install python-requests python-lxml python-ldap procps ldb-tools
dpkg -i tis-sysvolsync-*.deb
et on relance le service mais lorsque je regarde journal -xe sur le BDC1 ou le BDC2 il y a des erreurs
-- L'unité (unit) tis-sysvolsync.service a échoué, avec le résultat failed.
juin 28 16:15:21 BDC2.lyceeader.eu systemd[1]: tis-sysvolsync.service: Failed with result 'exit-code'.
juin 28 16:15:21 BDC2.lyceeader.eu systemd[1]: tis-sysvolacl.service: Service hold-off time over, scheduling restart.
juin 28 16:15:21 BDC2.lyceeader.eu systemd[1]: tis-sysvolsync.service: Start request repeated too quickly.
juin 28 16:15:21 BDC2.lyceeader.eu systemd[1]: Failed to start Samba4 sysvol sync with syncthing.
-- Subject: L'unité (unit) tis-sysvolsync.service a échoué
-- Defined-By: systemd
-- Support:
https://www.debian.org/support
--
-- L'unité (unit) tis-sysvolsync.service a échoué, avec le résultat failed.
juin 28 16:15:21 BDC2.lyceeader.eu systemd[1]: tis-sysvolsync.service: Failed with result 'exit-code'.
juin 28 16:15:21 BDC2.lyceeader.eu systemd[1]: Stopped Samba4 sysvol replication watch and fix ACL after sync completion.
-- Subject: L'unité (unit) tis-sysvolacl.service a terminé son arrêt
-- Defined-By: systemd
-- Support:
https://www.debian.org/support
--
-- L'unité (unit) tis-sysvolacl.service a terminé son arrêt.
juin 28 16:15:21 BDC2.lyceeader.eu systemd[1]: tis-sysvolacl.service: Start request repeated too quickly.
juin 28 16:15:21 BDC2.lyceeader.eu systemd[1]: Failed to start Samba4 sysvol replication watch and fix ACL after sync completion.
-- Subject: L'unité (unit) tis-sysvolacl.service a échoué
-- Defined-By: systemd
-- Support:
https://www.debian.org/support
--
-- L'unité (unit) tis-sysvolacl.service a échoué, avec le résultat failed.
juin 28 16:15:21 BDC2.lyceeader.eu systemd[1]: tis-sysvolacl.service: Unit entered failed state.
juin 28 16:15:21 BDC2.lyceeader.eu systemd[1]: tis-sysvolacl.service: Failed with result 'exit-code'.
juin 28 16:17:01 BDC2.lyceeader.eu CRON[4349]: pam_unix(cron:session): session opened for user root by (uid=0)
juin 28 16:17:01 BDC2.lyceeader.eu CRON[4350]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
juin 28 16:17:01 BDC2.lyceeader.eu CRON[4349]: pam_unix(cron:session): session closed for user root
juin 28 16:23:35 BDC2.lyceeader.eu systemd[1]: Stopping OpenBSD Secure Shell server...
-- Subject: L'unité (unit) ssh.service a commencé à s'arrêter
-- Defined-By: systemd
-- Support:
https://www.debian.org/support
--
-- L'unité (unit) ssh.service a commencé à s'arrêter.
juin 28 16:23:35 BDC2.lyceeader.eu sshd[821]: Received signal 15; terminating.
juin 28 16:23:35 BDC2.lyceeader.eu systemd[1]: Stopped OpenBSD Secure Shell server.
-- Subject: L'unité (unit) ssh.service a terminé son arrêt
-- Defined-By: systemd
-- Support:
https://www.debian.org/support
--
-- L'unité (unit) ssh.service a terminé son arrêt.
juin 28 16:23:35 BDC2.lyceeader.eu systemd[1]: Starting OpenBSD Secure Shell server...
-- Subject: L'unité (unit) ssh.service a commencé à démarrer
-- Defined-By: systemd
-- Support:
https://www.debian.org/support
--
-- L'unité (unit) ssh.service a commencé à démarrer.
juin 28 16:23:35 BDC2.lyceeader.eu sshd[4391]: Server listening on 0.0.0.0 port 22.
juin 28 16:23:35 BDC2.lyceeader.eu sshd[4391]: Server listening on :: port 22.
juin 28 16:23:35 BDC2.lyceeader.eu systemd[1]: Started OpenBSD Secure Shell server.
-- Subject: L'unité (unit) ssh.service a terminé son démarrage