ERROR: local variable 'table' referenced before assignment

Antworten
dann
Beiträge: 3
Registriert: 30 Apr 2021, 13:29

ERROR: local variable 'table' referenced before assignment

Beitrag von dann »

Hallo,
ich habe ein Problem dabei, dass ich keinen Client im Opsi-Config-Editor löschen kann.
Da kommt die Fehlermeldung:

Code: Alles auswählen

Opsi service error: [ProgrammingError] (1146, "Table 'opsi.HARDWARE_CONFIG_TPM' doesn't exist")
Daraufhin hab ich das gefunden:
viewtopic.php?f=8&t=12245

Code: Alles auswählen

opsi-setup --init-current-config
Da kommt jetzt der nächste Fehler:

Code: Alles auswählen

[5] [Apr 30 13:25:46] Connection to database 'opsi' on 'localhost' as user 'opsi' (MySQL.py|81)
[5] [Apr 30 13:25:47] Creating opsi base (SQL.py|500)
[2] [Apr 30 13:25:47] Traceback: (Logger.py|798)
[2] [Apr 30 13:25:47]   File "/usr/bin/opsi-setup", line 1163, in <module>
    main()
 (Logger.py|798)
[2] [Apr 30 13:25:47]   File "/usr/bin/opsi-setup", line 1124, in main
    updateMySQLBackend(additionalBackendConfiguration=backendConfig)
 (Logger.py|798)
[2] [Apr 30 13:25:47]   File "/usr/lib/python2.7/site-packages/OPSI/Util/Task/UpdateBackend/MySQL.py", line 121, in updateMySQLBackend
    mysqlBackend.backend_createBase()
 (Logger.py|798)
[2] [Apr 30 13:25:47]   File "/usr/lib/python2.7/site-packages/OPSI/Backend/SQL.py", line 830, in backend_createBase
    logger.debug(table)
 (Logger.py|798)
[2] [Apr 30 13:25:47]      ==>>> local variable 'table' referenced before assignment (opsi-setup|1167)

ERROR: local variable 'table' referenced before assignment
Ich hoffe jemand kann mir helfen.
dann
Beiträge: 3
Registriert: 30 Apr 2021, 13:29

Re: ERROR: local variable 'table' referenced before assignment

Beitrag von dann »

SirTux hat geschrieben:viewtopic.php?f=7&t=12267#p53271
Dann erscheint die Fehlermeldung:

Code: Alles auswählen

[root@opsi ~]# opsi-setup --update-mysql
[5] [May 04 07:44:49] Connection to database 'opsi' on 'localhost' as user 'opsi' (MySQL.py|81)
[5] [May 04 07:44:49] Creating opsi base (SQL.py|500)
[2] [May 04 07:44:49] Traceback: (Logger.py|798)
[2] [May 04 07:44:50]   File "/usr/bin/opsi-setup", line 1163, in <module>
    main()
 (Logger.py|798)
[2] [May 04 07:44:50]   File "/usr/bin/opsi-setup", line 1124, in main
    updateMySQLBackend(additionalBackendConfiguration=backendConfig)
 (Logger.py|798)
[2] [May 04 07:44:50]   File "/usr/lib/python2.7/site-packages/OPSI/Util/Task/UpdateBackend/MySQL.py", line 121, in updateMySQLBackend
    mysqlBackend.backend_createBase()
 (Logger.py|798)
[2] [May 04 07:44:50]   File "/usr/lib/python2.7/site-packages/OPSI/Backend/SQL.py", line 830, in backend_createBase
    logger.debug(table)
 (Logger.py|798)
[2] [May 04 07:44:50]      ==>>> local variable 'table' referenced before assignment (opsi-setup|1167)

ERROR: local variable 'table' referenced before assignment
Antworten