Uploaded image for project: 'openATTIC'
  1. openATTIC
  2. OP-1794

Failed to reload samba.service: Unit samba.service is masked.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.16
    • Fix Version/s: 2.0.17
    • Component/s: Backend
    • Labels:
    • Sprint:
      Sprint 19

      Description

      Since is pull request https://bitbucket.org/openattic/openattic/pull-requests/544 is merged, Gatling reports the following error on Debian Jessie:

      Generating XML reports...
      openATTIC's command log recorded 2 failed commands during the test period:
      systemctl (2016-12-13T00:30:34.336 - 2016-12-13T00:30:34.344):
      > "systemctl" "reload" "samba"
      E Failed to reload samba.service: Unit samba.service is masked.
      
      systemctl (2016-12-13T00:30:34.386 - 2016-12-13T00:30:34.396):
      > "systemctl" "reload" "samba"
      E Failed to reload samba.service: Unit samba.service is masked.
      
      2016-12-13 10:45:23,954 - INFO - openattic_systemd#service_command - service_command(samba): invoking `systemctl reload samba`
      2016-12-13 10:45:23,963 - ERROR - openattic_systemd#invoke - > "systemctl" "reload" "samba"
      E Failed to reload samba.service: Unit samba.service is masked.
      2016-12-13 10:45:23,964 - ERROR - openattic_systemd#_run_queue - Received error:
      Traceback (most recent call last):
        File "/srv/openattic/backend/systemd/management/commands/runsystemd.py", line 117, in _run_queue
          func(scope, *args, **kwargs)
        File "/srv/openattic/backend/samba/systemapi.py", line 75, in reload
          return service_command(samba_settings.SERVICE_NAME, "reload")
        File "/srv/openattic/backend/systemd/procutils.py", line 135, in service_command
          invoke(['systemctl', command, service])
        File "/srv/openattic/backend/systemd/procutils.py", line 116, in invoke
          raise SystemError("%s failed: %s" % (cmdline, procerr))
      SystemError: "systemctl" "reload" "samba" failed: Failed to reload samba.service: Unit samba.service is masked.
      

      This is because of the wrongly used service name "samba". On Debian Jessie we have to use "smbd". This should be fixed by a special Debian setting in backend/settings.py

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tdehler Dehler, Tatjana
              Reporter:
              tdehler Dehler, Tatjana
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: