Bug 53693 - services/restart: FileNotFoundError: [Errno 2] No such file or directory: '/etc/init.d/samba': '/etc/init.d/samba'
services/restart: FileNotFoundError: [Errno 2] No such file or directory: '/e...
Status: NEW
Product: UCS
Classification: Unclassified
Component: UMC - System services
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-08-20 15:00 CEST by Christian Castens
Modified: 2023-09-18 12:18 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2021021521000256, 2021072921000641, 2021070221000299, 2021021521000265, 2023010321000044, 2023090421000484, 2023083021000311
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Castens univentionstaff 2021-08-20 15:00:35 CEST
Version: 5.0-0 errata59

Remark: after upgrade to UCS 5

Error:
Internal server error during "services/restart".
Request: services/restart

  File "%PY3%/notifier/threads.py", line 80, in _run
    result = self._function()
  File "%PY3%/notifier/__init__.py", line 105, in __call__
    return self._function(*tmp, **self._kwargs)
  File "%PY3%/univention/management/console/modules/services/__init__.py", line 106, in _change_services
    getattr(service, action)()
  File "%PY3%/univention/service_info.py", line 102, in restart
    return self._change_state('restart')
  File "%PY3%/univention/service_info.py", line 113, in _change_state
    rc, output = self.__change_state(action)
  File "%PY3%/univention/service_info.py", line 122, in __change_state
    return self._exec(('/etc/init.d/%s' % (self['init_script'],), action))
  File "%PY3%/univention/service_info.py", line 136, in _exec
    process = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, close_fds=True)
  File "/usr/lib/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/etc/init.d/samba': '/etc/init.d/samba'

Role: domaincontroller_master
Comment 1 Maximilian Janßen univentionstaff 2021-11-24 14:44:54 CET
Reportet again:
(i guess _exec has been renamed to _execute_child at some point since its the best match within teh file)

Version: 4.4-3 errata587 (Blumenthal)

Error: 
Internal server error during "services/start".
Request: services/start

  File "%PY2.7%/notifier/threads.py", line 80, in _run
    result = self._function()
  File "%PY2.7%/notifier/__init__.py", line 104, in __call__
    return self._function(*tmp, **self._kwargs)
  File "%PY2.7%/univention/management/console/modules/services/__init__.py", line 103, in _change_services
    getattr(service, action)()
  File "%PY2.7%/univention/service_info.py", line 82, in start
    return self._change_state('start')
  File "%PY2.7%/univention/service_info.py", line 100, in _change_state
    rc, output = self.__change_state(action)
  File "%PY2.7%/univention/service_info.py", line 108, in __change_state
    return self._exec(('/etc/init.d/%s' % (self['init_script'],), action))
  File "%PY2.7%/univention/service_info.py", line 120, in _exec
    process = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, close_fds=True)
  File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Role: domaincontroller_master
Comment 2 Mika Westphal univentionstaff 2023-09-18 12:01:07 CEST
2023090421000484  5.0-4 errata794  REMARK: Nach einer aktualisierung com UCS 4.2 auf die aktuelle Version läuft der SMB Dienst nicht mehr.

Interner Server-Fehler in "services/start".
Request: services/start

Traceback (most recent call last):
  File "%PY3%/univention/management/console/modules/decorators.py", line 259, in _run
    result = self._function(*args, **kwargs)  # type: Union[BaseException, _T]
  File "%PY3%/univention/management/console/modules/services/__init__.py", line 85, in start
    return self._change_services(request.options, 'start')
  File "%PY3%/univention/management/console/modules/services/__init__.py", line 103, in _change_services
    getattr(service, action)()
  File "%PY3%/univention/service_info.py", line 96, in start
    return self._change_state('start')
  File "%PY3%/univention/service_info.py", line 117, in _change_state
    rc, output = self.__change_state(action)
  File "%PY3%/univention/service_info.py", line 126, in __change_state
    return self._exec(('/etc/init.d/%s' % (self['init_script'],), action))
  File "%PY3%/univention/service_info.py", line 140, in _exec
    process = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, close_fds=True)
  File "/usr/lib/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/etc/init.d/samba': '/etc/init.d/samba'
Comment 3 Mika Westphal univentionstaff 2023-09-18 12:18:36 CEST
5.0-3 errata794

Internal server error during "services/start".
Request: services/start

Traceback (most recent call last):
  File "%PY3%/notifier/threads.py", line 80, in _run
    result = self._function()
  File "%PY3%/notifier/__init__.py", line 105, in __call__
    return self._function(*tmp, **self._kwargs)
  File "%PY3%/univention/management/console/modules/services/__init__.py", line 109, in _change_services
    getattr(service, action)()
  File "%PY3%/univention/service_info.py", line 96, in start
    return self._change_state('start')
  File "%PY3%/univention/service_info.py", line 117, in _change_state
    rc, output = self.__change_state(action)
  File "%PY3%/univention/service_info.py", line 126, in __change_state
    return self._exec(('/etc/init.d/%s' % (self['init_script'],), action))
  File "%PY3%/univention/service_info.py", line 140, in _exec
    process = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, close_fds=True)
  File "/usr/lib/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/etc/init.d/samba': '/etc/init.d/samba'