I have stumbled upon a problem with nsdc which i probably created myself I cannot add new users in Nethserver and also the hotsync configuration-backup encounters a problem. I think it is python related because some time ago I tried to install Odoo (following to the instructions in a forum-post), which requires python version 3.5 while Nethserver has 2.7 on board. Around that time the above problems started. I didnβt get Odoo to work so in the mean time I erased python 3.
This is an extract of the messages log for the config-backup:
I tried to reproduce but got no error, I installed AD and odoo 11 which uses python 3.5. Even after reboot I can still create users or do a config backup.
[root@testvm2 ~]# backup-config
===== Report for configuration backup =====
Backup started at 2018-09-06 18:41:10
Event pre-backup-config: SUCCESS
Action backup-config-execute: SUCCESS
Event post-backup-config: SUCCESS
Backup status: SUCCESS
Backup ended at 2018-09-06 18:41:17
Time elapsed: 0 hours, 0 minutes, 7 seconds
One of the error-lines refers to so.connect(β/var/lib/machines/nsdc/var/lib/misc/nsdc-run.sockβ) but the nsdc-run.sock file is not present in that directory.
First of all, thanks for your effort in helping me out!
Still no luck iβm afraid. The compete output of the commands is in a file because of the size (seems too large to include in a forum message). How can i get it to you? There is a lot of activity going on after issuing the S30nethserver-dc-upgrade command. I did a reboot after the dc-upgrade to be sure but that didnβt help either.
For completeness Iβve added the logoutput after adding a user in Nethserver, same problems concerning the missing nsdc-run.sock and the user adding fails.
Sep 7 14:38:52 server1 esmith::event[7930]: Event: user-create cursus Cursus /usr/libexec/openssh/sftp-server
Sep 7 14:38:52 server1 esmith::event[7930]: Traceback (most recent call last):
Sep 7 14:38:52 server1 esmith::event[7930]: File "/bin/nsdc-run", line 38, in <module>
Sep 7 14:38:52 server1 esmith::event[7930]: so.connect('/var/lib/machines/nsdc/var/lib/misc/nsdc-run.sock')
Sep 7 14:38:52 server1 esmith::event[7930]: File "/usr/lib64/python2.7/socket.py", line 224, in meth
Sep 7 14:38:52 server1 esmith::event[7930]: return getattr(self._sock,name)(*args)
Sep 7 14:38:52 server1 esmith::event[7930]: socket.error: [Errno 2] No such file or directory
Sep 7 14:38:52 server1 esmith::event[7930]: [ERROR] User cursus creation failed
Sep 7 14:38:52 server1 esmith::event[7930]: Action: /etc/e-smith/events/user-create/S40nethserver-dc-user-create FAILED: 1 [0.143501]
Sep 7 14:38:53 server1 esmith::event[7930]: Traceback (most recent call last):
Sep 7 14:38:53 server1 esmith::event[7930]: File "/bin/nsdc-run", line 38, in <module>
Sep 7 14:38:53 server1 esmith::event[7930]: so.connect('/var/lib/machines/nsdc/var/lib/misc/nsdc-run.sock')
Sep 7 14:38:53 server1 esmith::event[7930]: File "/usr/lib64/python2.7/socket.py", line 224, in meth
Sep 7 14:38:53 server1 esmith::event[7930]: return getattr(self._sock,name)(*args)
Sep 7 14:38:53 server1 esmith::event[7930]: socket.error: [Errno 2] No such file or directory
Sep 7 14:38:53 server1 esmith::event[7930]: [ERROR] failed to modify UPN suffixes
Sep 7 14:38:53 server1 esmith::event[7930]: Action: /etc/e-smith/events/user-create/S50nethserver-dc-sync-upn FAILED: 1 [0.323891]
Sep 7 14:38:53 server1 esmith::event[7930]: [NOTICE] clearing sssd cache for user cursus@pa3hfj.nl
Sep 7 14:38:53 server1 esmith::event[7930]: No cache object matched the specified search
Sep 7 14:38:53 server1 esmith::event[7930]: No cache object matched the specified search
Sep 7 14:38:53 server1 esmith::event[7930]: Action: /etc/e-smith/events/user-create/S90nethserver-sssd-clear-cache SUCCESS [0.055937]
Sep 7 14:38:53 server1 esmith::event[7930]: Event: user-create FAILED
Sep 7 14:38:53 server1 esmith::event[7948]: Event: password-policy-update cursus no
Sep 7 14:38:53 server1 esmith::event[7948]: [NOTICE] clearing sssd cache for user cursus@pa3hfj.nl
Sep 7 14:38:53 server1 esmith::event[7948]: No cache object matched the specified search
Sep 7 14:38:53 server1 esmith::event[7948]: No cache object matched the specified search
Sep 7 14:38:53 server1 esmith::event[7948]: Action: /etc/e-smith/events/password-policy-update/S10nethserver-sssd-clear-cache SUCCESS [0.019247]
Sep 7 14:38:53 server1 esmith::event[7948]: Traceback (most recent call last):
Sep 7 14:38:53 server1 esmith::event[7948]: File "/bin/nsdc-run", line 38, in <module>
Sep 7 14:38:53 server1 esmith::event[7948]: so.connect('/var/lib/machines/nsdc/var/lib/misc/nsdc-run.sock')
Sep 7 14:38:53 server1 esmith::event[7948]: File "/usr/lib64/python2.7/socket.py", line 224, in meth
Sep 7 14:38:53 server1 esmith::event[7948]: return getattr(self._sock,name)(*args)
Sep 7 14:38:53 server1 esmith::event[7948]: socket.error: [Errno 2] No such file or directory
Sep 7 14:38:53 server1 esmith::event[7948]: [ERROR] Faild to set expiry on user cursus
Sep 7 14:38:53 server1 esmith::event[7948]: Action: /etc/e-smith/events/password-policy-update/S30nethserver-dc-password-policy FAILED: 1 [0.141984]
Sep 7 14:38:53 server1 esmith::event[7948]: Event: password-policy-update FAILED
Sep 7 14:38:53 server1 esmith::event[7957]: Event: password-modify cursus@pa3hfj.nl /tmp/ng-EHbzx6
Sep 7 14:38:53 server1 esmith::event[7957]: Action: /etc/e-smith/events/password-modify/S25password-set SUCCESS [0.003236]
Sep 7 14:38:53 server1 esmith::event[7957]: Traceback (most recent call last):
Sep 7 14:38:53 server1 esmith::event[7957]: File "/bin/nsdc-run", line 38, in <module>
Sep 7 14:38:53 server1 esmith::event[7957]: so.connect('/var/lib/machines/nsdc/var/lib/misc/nsdc-run.sock')
Sep 7 14:38:53 server1 esmith::event[7957]: File "/usr/lib64/python2.7/socket.py", line 224, in meth
Sep 7 14:38:53 server1 esmith::event[7957]: return getattr(self._sock,name)(*args)
Sep 7 14:38:53 server1 esmith::event[7957]: socket.error: [Errno 2] No such file or directory
Sep 7 14:38:53 server1 esmith::event[7957]: Action: /etc/e-smith/events/password-modify/S30nethserver-dc-password-set FAILED: 1 [0.03395]
Sep 7 14:38:53 server1 esmith::event[7957]: Traceback (most recent call last):
Sep 7 14:38:53 server1 esmith::event[7957]: File "/bin/nsdc-run", line 38, in <module>
Sep 7 14:38:53 server1 esmith::event[7957]: so.connect('/var/lib/machines/nsdc/var/lib/misc/nsdc-run.sock')
Sep 7 14:38:53 server1 esmith::event[7957]: File "/usr/lib64/python2.7/socket.py", line 224, in meth
Sep 7 14:38:53 server1 esmith::event[7957]: return getattr(self._sock,name)(*args)
Sep 7 14:38:53 server1 esmith::event[7957]: socket.error: [Errno 2] No such file or directory
Sep 7 14:38:53 server1 esmith::event[7957]: Action: /etc/e-smith/events/password-modify/S40nethserver-dc-user-unlock FAILED: 1 [0.030531]
Sep 7 14:38:54 server1 esmith::event[7957]: Action: /etc/e-smith/events/password-modify/S90password-cleanup SUCCESS [0.627883]
Sep 7 14:38:54 server1 esmith::event[7957]: Event: password-modify FAILED
[root@server1 log]# systemctl -M nsdc enable --now nsdc-run.socket
Failed to execute operation: No such file or directory
I must add that according to the Software Centre updates-tab the system was up-to-date before nethserver-dc-upgrade command, apart from two entries that are there for a long time (far before this problem arose)