Cannot add webdav content 'repository'

Antworten
tmausch
Beiträge: 35
Registriert: 07 Aug 2012, 13:13

Cannot add webdav content 'repository'

Beitrag von tmausch »

Moin,

ich mal wieder. :P

Ich habe einen neuen Depotserver mit CentOS 7 installiert und die Anbindung an den Master klappte auch ganz hervorragend, aber nun hänge ich an der obigen Meldung.

Die exakte Meldung lautet:

Code: Alles auswählen

Cannot add webdav content 'repository': directory '/var/lib/opsi/repository' does not exist.
Das ist aber mal sowas von gelogen, wie man hier sehen kann:

Auszug aus /var/lib/opsi:

Code: Alles auswählen

drwxrwx---  7 opsiconfd pcpatch   140 Sep 23 12:26 config
drwxrwx--- 88 opsiconfd pcpatch  4096 Sep 24 09:51 depot
drwxrwx---  2 opsiconfd pcpatch     6 Sep 18 18:09 ntfs-images
drwxrwx---  2 opsiconfd pcpatch 12288 Sep 18 18:09 repository
Berechtigungen stimmen, wie man sehen kann und es ist auch gefüllt mit den Daten vom Master. Was hat der Server nur?

Inzwischen habe ich schon auf Testing gewechselt und noch viele andere Dinge getan, die ich mal kurz notiere:
  • opsi-setup --register-depot
  • opsi-setup --init-current-config
  • opsi-set-rights /var/lib/opsi
  • opsi-setup --cleanup-backend
  • opsi-setup --renew-opsiconfd-cert
Die Reihenfolge passt nicht, aber das habe ich alles gemacht. Was kann ich noch machen?
Benutzeravatar
ueluekmen
uib-Team
Beiträge: 1940
Registriert: 28 Mai 2008, 10:53

Re: Cannot add webdav content 'repository'

Beitrag von ueluekmen »

Wo kommt die Meldung? Welcher Server ist auf Testing? Du solltest nicht versuchen einen 4.0.6 Depotserver auf einem 4.0.5 Configserver zu registrieren. Das wird von uns nicht getestet weil wir immer empfehlen: Erst den Configserver updaten und danach die Depotserver.


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


tmausch
Beiträge: 35
Registriert: 07 Aug 2012, 13:13

Re: Cannot add webdav content 'repository'

Beitrag von tmausch »

Die Meldung steht in /var/log/opsi/opsiconfd/opsiconfd.log

Code: Alles auswählen

[2] [Sep 25 07:12:16] Traceback: (Logger.py|758)
[2] [Sep 25 07:12:16]      line 460 in 'run' in file '/usr/lib/python2.7/site-packages/opsiconfd/opsiconfd.py' (Logger.py|758)
[2] [Sep 25 07:12:16]      line 311 in '_createSite' in file '/usr/lib/python2.7/site-packages/opsiconfd/opsiconfd.py' (Logger.py|758)
[2] [Sep 25 07:12:16]      ==>>> Cannot add webdav content 'repository': directory '/var/lib/opsi/repository' does not exist. (opsiconfd.py|473)
[5] [Sep 25 07:12:16] Stopping opsiconfd main thread (opsiconfd.py|177)
[5] [Sep 25 07:12:16] Deleting all sessions (Session.py|218)
[5] [Sep 25 07:12:16] Opsiconfd main thread exiting... (opsiconfd.py|476)
Derzeit sind alle Server auf Testing, weil es Probleme mit CentOS und Pyton-Twisted gibt. Siehe hier: viewtopic.php?f=7&t=7625&start=10#p32824

Das Problem ist nur auf dem neuen Depotserver vorhanden. Der Config Server, sowie ein weiteres Depot funktionieren problemlos. Alle Server sind aktuell.

Viele Grüße
Torsten
tmausch
Beiträge: 35
Registriert: 07 Aug 2012, 13:13

Re: Cannot add webdav content 'repository'

Beitrag von tmausch »

Und nun auch noch das auf dem Config Server:

Code: Alles auswählen

Sep 25  08:03:47.272  2015 -- Opsi service error:  [OpsiRpcError] Opsi rpc error: Method 'getPossibleMethods_listOfHashes' is not valid
Sep 25  08:03:49.591  2015 -- Opsi service error:  [BackendConfigurationError] Backend configuration error: You have tried to execute a method, that will not work with filebackend.
Sep 25  08:03:50.291  2015 -- Opsi service error:  [OpsiRpcError] Opsi rpc error: Method 'getServerIds_list' is not valid
Sep 25  08:03:50.335  2015 --  server list empty
Sep 25  08:03:53.578  2015 -- Opsi service error:  [OpsiRpcError] Opsi rpc error: Method 'getProductOrdering' is not valid
Sep 25  08:03:55.975  2015 -- Opsi service error:  [OpsiRpcError] Opsi rpc error: Method 'getProductOrdering' is not valid
Sep 25  08:03:56.178  2015 -- Opsi service error:  [OpsiRpcError] Opsi rpc error: Method 'getDomain' is not valid
Sep 25  08:03:56.299  2015 -- Opsi service error:  [OpsiRpcError] Opsi rpc error: Method 'getOpsiHWAuditConf' is not valid
Sep 25  08:03:57.022  2015 -- Opsi service error:  [BackendConfigurationError] Backend configuration error: You have tried to execute a method, that will not work with filebackend.
tmausch
Beiträge: 35
Registriert: 07 Aug 2012, 13:13

Re: Cannot add webdav content 'repository'

Beitrag von tmausch »

tmausch hat geschrieben:Und nun auch noch das auf dem Config Server:

Code: Alles auswählen

Sep 25  08:03:47.272  2015 -- Opsi service error:  [OpsiRpcError] Opsi rpc error: Method 'getPossibleMethods_listOfHashes' is not valid
Sep 25  08:03:49.591  2015 -- Opsi service error:  [BackendConfigurationError] Backend configuration error: You have tried to execute a method, that will not work with filebackend.
Sep 25  08:03:50.291  2015 -- Opsi service error:  [OpsiRpcError] Opsi rpc error: Method 'getServerIds_list' is not valid
Sep 25  08:03:50.335  2015 --  server list empty
Sep 25  08:03:53.578  2015 -- Opsi service error:  [OpsiRpcError] Opsi rpc error: Method 'getProductOrdering' is not valid
Sep 25  08:03:55.975  2015 -- Opsi service error:  [OpsiRpcError] Opsi rpc error: Method 'getProductOrdering' is not valid
Sep 25  08:03:56.178  2015 -- Opsi service error:  [OpsiRpcError] Opsi rpc error: Method 'getDomain' is not valid
Sep 25  08:03:56.299  2015 -- Opsi service error:  [OpsiRpcError] Opsi rpc error: Method 'getOpsiHWAuditConf' is not valid
Sep 25  08:03:57.022  2015 -- Opsi service error:  [BackendConfigurationError] Backend configuration error: You have tried to execute a method, that will not work with filebackend.

Ok, das konnte ich mit dem Backup von letzter Nacht beheben. Keine Ahnung, was hier schiefgelaufen ist.
tmausch
Beiträge: 35
Registriert: 07 Aug 2012, 13:13

Re: Cannot add webdav content 'repository'

Beitrag von tmausch »

Läuft jetzt. Habe opsi einmal komplett von der Platte gehauen und neu installiert. Anbindung an den Master vorgenommen und nun läuft es.

Danke und Gruß
Antworten