Hallo zusammen
Ich habe Heute mit Hilfe dieser Anleitung Installiert.
Das ging eigentlich gut bis zum letzten Punkt:
Da erhalte ich dies
Lösungsversuche:
Alle Container ausgeschaltet, und Docker neu gestartet ohne erfolg.
Log Eintrag: vom container librenms
Hat da jemand eine Idee?
Besten dank.
Ps in einem Forum habe ich das gefunden:
after this comand
problem solved :roll_eyes:
since 24~48h the error message has disappeared
Das geht doch auf der DS nicht ?
Das einzige was ich gemacht habe ist den port von 8668 auf 8667 abgeändert da der port 8668 bereits für etwas anderes vergeben ist.
Ich habe Heute mit Hilfe dieser Anleitung Installiert.
Das ging eigentlich gut bis zum letzten Punkt:
Rich (BBCode):
docker exec librenms setup_database
Da erhalte ich dies
Rich (BBCode):
docker exec librenms setup_database
In Connection.php line 664:
SQLSTATE[HY000] [1049] Unknown database 'librenms' (SQL: select * from info
rmation_schema.tables where table_schema = librenms and table_name = migrat
ions and table_type = 'BASE TABLE')
In PDOConnection.php line 31:
SQLSTATE[HY000] [1049] Unknown database 'librenms'
In PDOConnection.php line 27:
SQLSTATE[HY000] [1049] Unknown database 'librenms'
Lösungsversuche:
Alle Container ausgeschaltet, und Docker neu gestartet ohne erfolg.
Log Eintrag: vom container librenms
Rich (BBCode):
[2020-01-12 18:50:07] production.ERROR: SQLSTATE[HY000] [1049] Unknown database 'librenms' (SQL: select * from information_schema.tables where table_schema = librenms and table_name = migrations and table_type = 'BASE TABLE') {"exception":"[object] (Illuminate\\Database\\QueryException(code: 1049): SQLSTATE[HY000] [1049] Unknown database 'librenms' (SQL: select * from information_schema.tables where table_schema = librenms and table_name = migrations and table_type = 'BASE TABLE') at /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664, Doctrine\\DBAL\\Driver\\PDOException(code: 1049): SQLSTATE[HY000] [1049] Unknown database 'librenms' at /opt/librenms/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31, PDOException(code: 1049): SQLSTATE[HY000] [1049] Unknown database 'librenms' at /opt/librenms/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27)
[stacktrace]
#0 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connection.php(624): Illuminate\\Database\\Connection->runQueryCallback('select * from i...', Array, Object(Closure))
#1 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connection.php(333): Illuminate\\Database\\Connection->run('select * from i...', Array, Object(Closure))
#2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Schema/MySqlBuilder.php(18): Illuminate\\Database\\Connection->select('select * from i...', Array)
#3 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Migrations/DatabaseMigrationRepository.php(169): Illuminate\\Database\\Schema\\MySqlBuilder->hasTable('migrations')
#4 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(585): Illuminate\\Database\\Migrations\\DatabaseMigrationRepository->repositoryExists()
#5 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(91): Illuminate\\Database\\Migrations\\Migrator->repositoryExists()
#6 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(63): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->prepareDatabase()
#7 [internal function]: Illuminate\\Database\\Console\\Migrations\\MigrateCommand->handle()
#8 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(32): call_user_func_array(Array, Array)
#9 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(90): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#10 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(34): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(App\\Application), Array, Object(Closure))
#11 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(576): Illuminate\\Container\\BoundMethod::call(Object(App\\Application), Array, Array, NULL)
#12 /opt/librenms/vendor/laravel/framework/src/Illuminate/Console/Command.php(183): Illuminate\\Container\\Container->call(Array)
#13 /opt/librenms/vendor/symfony/console/Command/Command.php(255): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArrayInput), Object(Illuminate\\Console\\OutputStyle))
#14 /opt/librenms/vendor/laravel/framework/src/Illuminate/Console/Command.php(170): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArrayInput), Object(Illuminate\\Console\\OutputStyle))
#15 /opt/librenms/vendor/symfony/console/Application.php(1011): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArrayInput), Object(Symfony\\Component\\Console\\Output\\BufferedOutput))
#16 /opt/librenms/vendor/symfony/console/Application.php(272): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Database\\Console\\Migrations\\MigrateCommand), Object(Symfony\\Component\\Console\\Input\\ArrayInput), Object(Symfony\\Component\\Console\\Output\\BufferedOutput))
#17 /opt/librenms/vendor/symfony/console/Application.php(148): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArrayInput), Object(Symfony\\Component\\Console\\Output\\BufferedOutput))
#18 /opt/librenms/vendor/laravel/framework/src/Illuminate/Console/Application.php(90): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArrayInput), Object(Symfony\\Component\\Console\\Output\\BufferedOutput))
#19 /opt/librenms/vendor/laravel/framework/src/Illuminate/Console/Application.php(182): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArrayInput), Object(Symfony\\Component\\Console\\Output\\BufferedOutput))
#20 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(275): Illuminate\\Console\\Application->call('migrate', Array, NULL)
#21 /opt/librenms/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(239): Illuminate\\Foundation\\Console\\Kernel->call('migrate', Array)
#22 /opt/librenms/includes/sql-schema/update.php(56): Illuminate\\Support\\Facades\\Facade::__callStatic('call', Array)
#23 /opt/librenms/build-base.php(54): require('/opt/librenms/i...')
#24 {main}
"}
Hat da jemand eine Idee?
Besten dank.
Ps in einem Forum habe ich das gefunden:
after this comand
Rich (BBCode):
mysqlcheck --auto-repair + reboot server
since 24~48h the error message has disappeared
Das geht doch auf der DS nicht ?
Das einzige was ich gemacht habe ist den port von 8668 auf 8667 abgeändert da der port 8668 bereits für etwas anderes vergeben ist.