Ankündigung

Einklappen
Keine Ankündigung bisher.

portalocker ??

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    portalocker ??

    Hallo in die Runde!

    Der portallocker bremst mich plötzlich aus.
    Ich habe keine Ahnung wo das Problem liegt.
    Kann mir bitte jemand eine Hilfe geben?

    Code:
    smarthome@SmartHomeNG-4-8-IP40 ~]$ /usr/local/smarthome/bin/smarthome.py -r
    No instance of SmartHomeNG running
    Daemon PID 2163 Traceback (most recent call last):
      File "/home/smarthome/.local/lib/python3.9/site-packages/portalocker/portalocker.py", line 109, in lock
        fcntl.flock(file_, flags)
    BlockingIOError: [Errno 11] Die Ressource ist zur Zeit nicht verfügbar
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/usr/local/smarthome/bin/smarthome.py", line 291, in <module>
        sh = SmartHome(MODE=MODE, extern_conf_dir=extern_conf_dir)
      File "/usr/local/smarthome/lib/smarthome.py", line 315, in __init__ lib.daemon.daemonize(PIDFILE)
      File "/usr/local/smarthome/lib/daemon.py", line 79, in daemonize
        write_pidfile(os.getpid(), pidfile)
      File "/usr/local/smarthome/lib/daemon.py", line 130, in write_pidfile
        portalocker.lock(_pidfile_handle, portalocker.LOCK_EX | portalocker.LOCK_NB)
      File "/home/smarthome/.local/lib/python3.9/site-packages/portalocker/portalocker.py", line 113, in lock
        raise exceptions.LockException(exc_value, fh=file_)
    portalocker.exceptions.LockException: [Errno 11] Die Ressource ist zur Zeit nicht verfügbar
    ​
    Danke für jede Hilfe!

    Wolfgang

    #2
    Könnte es sein, das es eine Datei smarthome.pid gibt unter /usr/local/smarthome/var/run ? In dem Fall lösche die mal raus.

    Ansonsten hilft wie immer wenn Du Fakten über die verwendete Version von SHNG und ggf. die Version von portalocker lieferst.

    Kommentar


      #3
      Danke das war der hilfreiche Hinweis!!

      Sorry für die fehlenden Versionshinweise.
      Ich bin auf dem aktuellen Stand und hatte zuvor update und upgrade durchgeführt.

      Datei gelöscht und schon lief es wieder!
      Danke!!

      Kommentar

      Lädt...
      X