Univention Bugzilla – Bug 32817
Traceback: script not executable
Last modified: 2017-07-26 14:39:11 CEST
08.10.13 09:45:14.180 MODULE ( INFO ) : Running script /usr/lib/univention-system-setup/scripts/30_net/10in terfaces.pyc 08.10.13 09:45:14.277 MODULE ( WARN ) : Exception during saving the settings: [Errno 13] Permission denied File "/usr/lib/pymodules/python2.6/notifier/threads.py", line 82, in _run tmp = self._function() File "/usr/lib/pymodules/python2.6/notifier/__init__.py", line 104, in __call__ return self._function( *tmp, **self._kwargs ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/setup/__init__.py", line 172, in _thread util.run_scripts( self._progressParser, restart ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/setup/util.py", line 373, in run_scripts p = subprocess.Popen( scriptpath, stdout = subprocess.PIPE, stderr = subprocess.STDOUT ) File "/usr/lib/python2.6/subprocess.py", line 623, in __init__ errread, errwrite) File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child raise child_exception OSError: [Errno 13] Permission denied Should catch OSError, because otherwise the browser-connection is stuck.
Created attachment 5502 [details] Catch OSError
In which use case does this error happen?
Happened to me, too. Only occurs when doing manual interaction in one of the folders.
If you locally modify a script there might be a vim .swp file which causes this error.
(In reply to Philipp Hahn from comment #1) > Created attachment 5502 [details] > Catch OSError Applied rebased patch: r 80928 univention-system-setup (10.0.10-27) * Bug #32817: Applied patch from Philipp Hahn - Catch OSError for setup scripts YAML: r 80929
r 80930 univention-system-setup (10.0.10-28) * Bug #32817: Applied additional patch - cleanup
The patch has been applied only for run_networkscrips() but not for run_scripts() - which was the actual function which should be patched.
(In reply to Florian Best from comment #7) > The patch has been applied only for run_networkscrips() but not for > run_scripts() - which was the actual function which should be patched. r 80979 univention-system-setup (10.0.10-30) * Bug #32817: Applied additional patch: Catch OSError in run_scripts
(In reply to Johannes Keiser from comment #8) > (In reply to Florian Best from comment #7) > > The patch has been applied only for run_networkscrips() but not for > > run_scripts() - which was the actual function which should be patched. > > r 80979 > univention-system-setup (10.0.10-30) > * Bug #32817: Applied additional patch: Catch OSError in run_scripts r 80981 univention-system-setup (10.0.10-31) * Bug #32817: Cleanup
r 80982 univention-system-setup (10.0.10-32) * Bug #32817: Minor cleanup
OK: the logs now contain the error instead of a crash. OK: run_scripts OK: run_networkscripts OK: YAML 08.07.17 13:17:40.325 MODULE ( INFO ) : Running script '['/usr/lib/univention-system-setup/scripts/15_keyboard/10keyboard']': pid=15380 08.07.17 13:17:40.389 MODULE ( ERROR ) : Failed to run '['/usr/lib/univention-system-setup/scripts/20_language/.10language.swp']': [Errno 13] Keine Berechtigung 08.07.17 13:17:40.400 MODULE ( INFO ) : Running script '['/usr/lib/univention-system-setup/scripts/20_language/10language']': pid=15387 08.07.17 13:17:40.413 MODULE ( INFO ) : Running script '['/usr/lib/univention-system-setup/scripts/20_language/11default_locale']': pid=15391 08.07.17 13:17:40.434 MODULE ( INFO ) : Running script '['/usr/lib/univention-system-setup/scripts/35_timezone/10timezone']': pid=15395
<http://errata.software-univention.de/ucs/4.2/109.html>