Closed suyin-long closed 4 years ago
此处步骤执行的结果显示什么?
此处步骤执行的结果显示什么?
[root@VM-0-7-centos suyin-tools.cn]# composer run install-app
Warning: This development build of composer is over 60 days old. It is recommended to update it by running "/usr/bin/composer self-update" to get the latest version.
Do not run Composer as root/super user! See https://getcomposer.org/root for details
> php artisan install
____ __ ___ _____ ______ _______ __
/ __ \/ / / | / _/ | / / __ \/ ____/ |/ /
/ / / / / / /| | / // |/ / / / / __/ | /
/ /_/ / /___/ ___ |_/ // /| / /_/ / /___ / |
\____/_____/_/ |_/___/_/ |_/_____/_____//_/|_|
v5.0.0
- Designed by IMWNK | Powered by OLAINDEX
Configuration cache cleared!
Configuration cached successfully!
Database not found,Creating...
**************************************
* Application In Production! *
**************************************
Do you really wish to run this command? (yes/no) [no]:
> Command Canceled!
**************************************
* Application In Production! *
**************************************
Do you really wish to run this command? (yes/no) [no]:
> Command Canceled!
Configuration cache cleared!
Configuration cached successfully!
default name: [ admin ]
default password: [ 123456 ]
Install Complete!
测试了好多次,每次都是报这个错误,不知道怎么回事。
+1,一模一样的问题
+1,我从月初开始尝试安装的,这个问题一直存在
Laravel命令行静默处理导致的,已修复 https://github.com/WangNingkai/OLAINDEX/commit/357f795d87595a18d520128f1a13c36c99f1e807
Laravel命令行静默处理导致的,已修复357f795
好的,我再试试看看
Laravel命令行静默处理导致的,已修复 357f795
老哥,我又试了下,现在执行完composer run install-app
报以下错误。。。
Script php artisan install handling the install-app event returned with error code 1
此处步骤执行的结果显示如下:
[root@VM-0-7-centos suyin-tools.cn]# composer run install-app
Warning: This development build of composer is over 60 days old. It is recommended to update it by running "/usr/bin/composer self-update" to get the latest version.
> php artisan install
____ __ ___ _____ ______ _______ __
/ __ \/ / / | / _/ | / / __ \/ ____/ |/ /
/ / / / / / /| | / // |/ / / / / __/ | /
/ /_/ / /___/ ___ |_/ // /| / /_/ / /___ / |
\____/_____/_/ |_/___/_/ |_/_____/_____//_/|_|
v5.0.0
- Designed by IMWNK | Powered by OLAINDEX
Configuration cache cleared!
Configuration cached successfully!
Database not found,Creating...
Illuminate\Database\QueryException
SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO) (SQL: select * from information_schema.tables where table_schema = forge and table_name = migrations and table_type = 'BASE TABLE')
at vendor/laravel/framework/src/Illuminate/Database/Connection.php:671
667| // If an exception occurs when attempting to run a query, we'll format the error
668| // message to include the bindings with SQL, which will make this exception a
669| // lot more helpful to the developer instead of just the database's errors.
670| catch (Exception $e) {
> 671| throw new QueryException(
672| $query, $this->prepareBindings($bindings), $e
673| );
674| }
675|
+33 vendor frames
34 app/Console/Commands/InstallCommand.php:85
Illuminate\Console\Command::call()
+14 vendor frames
49 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
Script php artisan install handling the install-app event returned with error code 1
错误日志:
[2020-07-07 15:19:21] production.ERROR: SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO) (SQL: select * from information_schema.tables where table_schema = forge and table_name = migrations and table_type = 'BASE TABLE') {"exception":"[object] (Illuminate\\Database\\QueryException(code: 1045): SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO) (SQL: select * from information_schema.tables where table_schema = forge and table_name = migrations and table_type = 'BASE TABLE') at /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php:671)
[stacktrace]
#0 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(631): Illuminate\\Database\\Connection->runQueryCallback()
#1 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(339): Illuminate\\Database\\Connection->run()
#2 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Schema/MySqlBuilder.php(18): Illuminate\\Database\\Connection->select()
#3 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Migrations/DatabaseMigrationRepository.php(169): Illuminate\\Database\\Schema\\MySqlBuilder->hasTable()
#4 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(608): Illuminate\\Database\\Migrations\\DatabaseMigrationRepository->repositoryExists()
#5 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(93): Illuminate\\Database\\Migrations\\Migrator->repositoryExists()
#6 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(64): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->prepareDatabase()
#7 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(541): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->Illuminate\\Database\\Console\\Migrations\\{closure}()
#8 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(81): Illuminate\\Database\\Migrations\\Migrator->usingConnection()
#9 [internal function]: Illuminate\\Database\\Console\\Migrations\\MigrateCommand->handle()
#10 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(33): call_user_func_array()
#11 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/Util.php(37): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#12 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(91): Illuminate\\Container\\Util::unwrapIfClosure()
#13 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()
#14 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/Container.php(592): Illuminate\\Container\\BoundMethod::call()
#15 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Console/Command.php(134): Illuminate\\Container\\Container->call()
#16 /www/wwwroot/suyin-tools.cn/vendor/symfony/console/Command/Command.php(258): Illuminate\\Console\\Command->execute()
#17 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run()
#18 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(56): Illuminate\\Console\\Command->run()
#19 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(28): Illuminate\\Console\\Command->runCommand()
#20 /www/wwwroot/suyin-tools.cn/app/Console/Commands/InstallCommand.php(85): Illuminate\\Console\\Command->call()
#21 [internal function]: App\\Console\\Commands\\InstallCommand->handle()
#22 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(33): call_user_func_array()
#23 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/Util.php(37): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#24 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(91): Illuminate\\Container\\Util::unwrapIfClosure()
#25 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()
#26 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/Container.php(592): Illuminate\\Container\\BoundMethod::call()
#27 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Console/Command.php(134): Illuminate\\Container\\Container->call()
#28 /www/wwwroot/suyin-tools.cn/vendor/symfony/console/Command/Command.php(258): Illuminate\\Console\\Command->execute()
#29 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run()
#30 /www/wwwroot/suyin-tools.cn/vendor/symfony/console/Application.php(911): Illuminate\\Console\\Command->run()
#31 /www/wwwroot/suyin-tools.cn/vendor/symfony/console/Application.php(264): Symfony\\Component\\Console\\Application->doRunCommand()
#32 /www/wwwroot/suyin-tools.cn/vendor/symfony/console/Application.php(140): Symfony\\Component\\Console\\Application->doRun()
#33 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\\Component\\Console\\Application->run()
#34 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\\Console\\Application->run()
#35 /www/wwwroot/suyin-tools.cn/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle()
#36 {main}
[previous exception] [object] (Doctrine\\DBAL\\Driver\\PDOException(code: 1045): SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO) at /www/wwwroot/suyin-tools.cn/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31)
[stacktrace]
#0 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(67): Doctrine\\DBAL\\Driver\\PDOConnection->__construct()
#1 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(46): Illuminate\\Database\\Connectors\\Connector->createPdoConnection()
#2 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection()
#3 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect()
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(926): call_user_func()
#6 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(961): Illuminate\\Database\\Connection->getPdo()
#7 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(405): Illuminate\\Database\\Connection->getReadPdo()
#8 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(331): Illuminate\\Database\\Connection->getPdoForSelect()
#9 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(664): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}()
#10 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(631): Illuminate\\Database\\Connection->runQueryCallback()
#11 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(339): Illuminate\\Database\\Connection->run()
#12 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Schema/MySqlBuilder.php(18): Illuminate\\Database\\Connection->select()
#13 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Migrations/DatabaseMigrationRepository.php(169): Illuminate\\Database\\Schema\\MySqlBuilder->hasTable()
#14 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(608): Illuminate\\Database\\Migrations\\DatabaseMigrationRepository->repositoryExists()
#15 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(93): Illuminate\\Database\\Migrations\\Migrator->repositoryExists()
#16 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(64): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->prepareDatabase()
#17 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(541): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->Illuminate\\Database\\Console\\Migrations\\{closure}()
#18 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(81): Illuminate\\Database\\Migrations\\Migrator->usingConnection()
#19 [internal function]: Illuminate\\Database\\Console\\Migrations\\MigrateCommand->handle()
#20 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(33): call_user_func_array()
#21 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/Util.php(37): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#22 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(91): Illuminate\\Container\\Util::unwrapIfClosure()
#23 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()
#24 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/Container.php(592): Illuminate\\Container\\BoundMethod::call()
#25 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Console/Command.php(134): Illuminate\\Container\\Container->call()
#26 /www/wwwroot/suyin-tools.cn/vendor/symfony/console/Command/Command.php(258): Illuminate\\Console\\Command->execute()
#27 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run()
#28 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(56): Illuminate\\Console\\Command->run()
#29 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(28): Illuminate\\Console\\Command->runCommand()
#30 /www/wwwroot/suyin-tools.cn/app/Console/Commands/InstallCommand.php(85): Illuminate\\Console\\Command->call()
#31 [internal function]: App\\Console\\Commands\\InstallCommand->handle()
#32 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(33): call_user_func_array()
#33 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/Util.php(37): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#34 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(91): Illuminate\\Container\\Util::unwrapIfClosure()
#35 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()
#36 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/Container.php(592): Illuminate\\Container\\BoundMethod::call()
#37 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Console/Command.php(134): Illuminate\\Container\\Container->call()
#38 /www/wwwroot/suyin-tools.cn/vendor/symfony/console/Command/Command.php(258): Illuminate\\Console\\Command->execute()
#39 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run()
#40 /www/wwwroot/suyin-tools.cn/vendor/symfony/console/Application.php(911): Illuminate\\Console\\Command->run()
#41 /www/wwwroot/suyin-tools.cn/vendor/symfony/console/Application.php(264): Symfony\\Component\\Console\\Application->doRunCommand()
#42 /www/wwwroot/suyin-tools.cn/vendor/symfony/console/Application.php(140): Symfony\\Component\\Console\\Application->doRun()
#43 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\\Component\\Console\\Application->run()
#44 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\\Console\\Application->run()
#45 /www/wwwroot/suyin-tools.cn/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle()
#46 {main}
[previous exception] [object] (PDOException(code: 1045): SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO) at /www/wwwroot/suyin-tools.cn/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27)
[stacktrace]
#0 /www/wwwroot/suyin-tools.cn/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(27): PDO->__construct()
#1 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(67): Doctrine\\DBAL\\Driver\\PDOConnection->__construct()
#2 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(46): Illuminate\\Database\\Connectors\\Connector->createPdoConnection()
#3 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection()
#4 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect()
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(926): call_user_func()
#7 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(961): Illuminate\\Database\\Connection->getPdo()
#8 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(405): Illuminate\\Database\\Connection->getReadPdo()
#9 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(331): Illuminate\\Database\\Connection->getPdoForSelect()
#10 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(664): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}()
#11 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(631): Illuminate\\Database\\Connection->runQueryCallback()
#12 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(339): Illuminate\\Database\\Connection->run()
#13 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Schema/MySqlBuilder.php(18): Illuminate\\Database\\Connection->select()
#14 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Migrations/DatabaseMigrationRepository.php(169): Illuminate\\Database\\Schema\\MySqlBuilder->hasTable()
#15 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(608): Illuminate\\Database\\Migrations\\DatabaseMigrationRepository->repositoryExists()
#16 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(93): Illuminate\\Database\\Migrations\\Migrator->repositoryExists()
#17 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(64): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->prepareDatabase()
#18 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(541): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->Illuminate\\Database\\Console\\Migrations\\{closure}()
#19 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(81): Illuminate\\Database\\Migrations\\Migrator->usingConnection()
#20 [internal function]: Illuminate\\Database\\Console\\Migrations\\MigrateCommand->handle()
#21 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(33): call_user_func_array()
#22 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/Util.php(37): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#23 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(91): Illuminate\\Container\\Util::unwrapIfClosure()
#24 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()
#25 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/Container.php(592): Illuminate\\Container\\BoundMethod::call()
#26 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Console/Command.php(134): Illuminate\\Container\\Container->call()
#27 /www/wwwroot/suyin-tools.cn/vendor/symfony/console/Command/Command.php(258): Illuminate\\Console\\Command->execute()
#28 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run()
#29 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(56): Illuminate\\Console\\Command->run()
#30 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(28): Illuminate\\Console\\Command->runCommand()
#31 /www/wwwroot/suyin-tools.cn/app/Console/Commands/InstallCommand.php(85): Illuminate\\Console\\Command->call()
#32 [internal function]: App\\Console\\Commands\\InstallCommand->handle()
#33 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(33): call_user_func_array()
#34 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/Util.php(37): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#35 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(91): Illuminate\\Container\\Util::unwrapIfClosure()
#36 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()
#37 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/Container.php(592): Illuminate\\Container\\BoundMethod::call()
#38 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Console/Command.php(134): Illuminate\\Container\\Container->call()
#39 /www/wwwroot/suyin-tools.cn/vendor/symfony/console/Command/Command.php(258): Illuminate\\Console\\Command->execute()
#40 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run()
#41 /www/wwwroot/suyin-tools.cn/vendor/symfony/console/Application.php(911): Illuminate\\Console\\Command->run()
#42 /www/wwwroot/suyin-tools.cn/vendor/symfony/console/Application.php(264): Symfony\\Component\\Console\\Application->doRunCommand()
#43 /www/wwwroot/suyin-tools.cn/vendor/symfony/console/Application.php(140): Symfony\\Component\\Console\\Application->doRun()
#44 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\\Component\\Console\\Application->run()
#45 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\\Console\\Application->run()
#46 /www/wwwroot/suyin-tools.cn/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle()
#47 {main}
"}
看看env数据库配置文件是不是有什么问题
https://github.com/WangNingkai/OLAINDEX/blob/master/.env.example
参考这个问题
好的,我试试。能不能把#300这个问题解决下,谢谢!
看看env数据库配置文件是不是有什么问题
我找到原因了,因为我在服务器上安装了MySQL,导致了3306端口被占用,所以当我停用MySQL后就可以安装成功了。 但是我有个疑问,如何才能在使用MySQL的情况下安装成功呢?是要修改env文件吗?
看看env数据库配置文件是不是有什么问题
我找到原因了,因为我在服务器上安装了MySQL,导致了3306端口被占用,所以当我停用MySQL后就可以安装成功了。 但是我有个疑问,如何才能在使用MySQL的情况下安装成功呢?是要修改env文件吗?
解决了,我通过修改env文件在启用MySQL的情况下正常的安装上了OLAINDEX5.0
https://github.com/WangNingkai/OLAINDEX/blob/master/.env.example
参考这个问题
我又试着安装了一下,后台配置什么的都没问题,但是访问主页面的时候为空,错误码Access token validation failure. Invalid audience.
错误日志:
[2020-07-07 18:10:15] production.INFO: 请求MsGraph Api ["get","/me/drive/root?expand=thumbnails"]
ps:世纪互联版本 如下图所示: https://imgchr.com/i/UAmbIf
@suyin-long 方便提供下测试得世纪互联账号吗 i@ningkai.wang
@suyin-long 方便提供下测试得世纪互联账号吗 i@ningkai.wang
给你提供client_id,和client_secret可以吗?
@suyin-long 方便提供下测试得世纪互联账号吗 i@ningkai.wang
账号已发送给你
@suyin-long 更新后,重新绑定试试看
@suyin-long 更新后,重新绑定试试看
好的,我再试试。
@suyin-long 更新后,重新绑定试试看
我刚才测试了一下,可以正常安装并使用了,下面说一下测试结果:
优点:
新问题:
SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'original_url' at row 1 (SQL: insert into `short_urls` (`short_code`, `original_url`, `created_at`) values (DKy5u9, https://suyin-tools.cn/d/o4QJw1MO/q/Music/%E6%97%A0%E6%8D%9F%E9%9F%B3%E4%B9%90/%E8%8C%85%E9%87%8E%E6%84%9B%E8%A1%A3%2C%E6%88%B8%E6%9D%BE%E9%81%A5%2C%E6%97%A9%E8%A6%8B%E6%B2%99%E7%B9%94%20-%20secret%20base%20~%E5%90%9B%E3%81%8C%E3%81%8F%E3%82%8C%E3%81%9F%E3%82%82%E3%81%AE~%20%2810%20years%20after%20Ver.%29.flac?download=1, 2020-07-08 13:04:39)) (View: /www/wwwroot/suyin-tools.cn/resources/views/default/preview.blade.php)
错误日志:
[previous exception] [object] (PDOException(code: 22001): SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'original_url' at row 1 at /www/wwwroot/suyin-tools.cn/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:127)
[stacktrace]
#0 /www/wwwroot/suyin-tools.cn/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(127): PDOStatement->execute()
#1 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(464): Doctrine\\DBAL\\Driver\\PDOStatement->execute()
#2 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(664): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}()
#3 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(631): Illuminate\\Database\\Connection->runQueryCallback()
#4 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(465): Illuminate\\Database\\Connection->run()
#5 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(417): Illuminate\\Database\\Connection->statement()
#6 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\\Database\\Connection->insert()
#7 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2772): Illuminate\\Database\\Query\\Processors\\Processor->processInsertGetId()
#8 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1403): Illuminate\\Database\\Query\\Builder->insertGetId()
#9 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(900): Illuminate\\Database\\Eloquent\\Builder->__call()
#10 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(865): Illuminate\\Database\\Eloquent\\Model->insertAndSetId()
#11 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(728): Illuminate\\Database\\Eloquent\\Model->performInsert()
#12 /www/wwwroot/suyin-tools.cn/app/Helpers/Functions.php(344): Illuminate\\Database\\Eloquent\\Model->save()
#13 /www/wwwroot/suyin-tools.cn/storage/framework/views/32cf4b05e67ba84893559363420384bc52a88740.php(19): shorten_url()
#14 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(41): include('/www/wwwroot/su...')
#15 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(57): Illuminate\\View\\Engines\\PhpEngine->evaluatePath()
#16 /www/wwwroot/suyin-tools.cn/vendor/facade/ignition/src/Views/Engines/CompilerEngine.php(37): Illuminate\\View\\Engines\\CompilerEngine->get()
#17 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/View/View.php(139): Facade\\Ignition\\Views\\Engines\\CompilerEngine->get()
#18 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/View/View.php(122): Illuminate\\View\\View->getContents()
#19 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/View/View.php(91): Illuminate\\View\\View->renderContents()
#20 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Http/Response.php(62): Illuminate\\View\\View->render()
#21 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Http/Response.php(34): Illuminate\\Http\\Response->setContent()
#22 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Routing/Router.php(759): Illuminate\\Http\\Response->__construct()
#23 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Routing/Router.php(731): Illuminate\\Routing\\Router::toResponse()
#24 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Routing/Router.php(685): Illuminate\\Routing\\Router->prepareResponse()
#25 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()
#26 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#27 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle()
#28 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(76): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#29 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle()
#30 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#31 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle()
#32 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#33 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(62): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest()
#34 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle()
#35 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#36 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle()
#37 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(66): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#38 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle()
#39 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#40 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Routing/Router.php(687): Illuminate\\Pipeline\\Pipeline->then()
#41 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Routing/Router.php(662): Illuminate\\Routing\\Router->runRouteWithinStack()
#42 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Routing/Router.php(628): Illuminate\\Routing\\Router->runRoute()
#43 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Routing/Router.php(617): Illuminate\\Routing\\Router->dispatchToRoute()
#44 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\\Routing\\Router->dispatch()
#45 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}()
#46 /www/wwwroot/suyin-tools.cn/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(58): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#47 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Barryvdh\\Debugbar\\Middleware\\InjectDebugbar->handle()
#48 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#49 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#50 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#51 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#52 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#53 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle()
#54 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(63): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#55 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode->handle()
#56 /www/wwwroot/suyin-tools.cn/vendor/fideloper/proxy/src/TrustProxies.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#57 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Fideloper\\Proxy\\TrustProxies->handle()
#58 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#59 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(140): Illuminate\\Pipeline\\Pipeline->then()
#60 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(109): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#61 /www/wwwroot/suyin-tools.cn/public/index.php(55): Illuminate\\Foundation\\Http\\Kernel->handle()
#62 {main}
"}
再提一些小建议:
能不能将自定义版权显示最下面的.
去掉,即不好看还占地方,如图:
能不能将搜索框一直移动到页头上,如图:
再提一些小建议:
- 能不能将自定义版权显示最下面的
.
去掉,即不好看还占地方,如图:- 能不能将搜索框一直移动到页头上,如图:
有个问题,现在后台没有了删除缓存和更新缓存的设置,那么要怎么清除缓存和更新缓存呢? 还有如何设置每页显示的内容的条数,能不能在后台增加个这个分页选项
看看env数据库配置文件是不是有什么问题
我找到原因了,因为我在服务器上安装了MySQL,导致了3306端口被占用,所以当我停用MySQL后就可以安装成功了。 但是我有个疑问,如何才能在使用MySQL的情况下安装成功呢?是要修改env文件吗?
解决了,我通过修改env文件在启用MySQL的情况下正常的安装上了OLAINDEX5.0
请问一下具体要怎么修改啊,我现在也被这个问题困扰
1. 该问题的重现步骤是什么?
手动安装5.0版本,安装教程:https://github.com/WangNingkai/OLAINDEX/blob/5.0/docs/install.md
2. 你期待的结果是什么?实际看到的又是什么?
一切正常
3. 问题出现的环境
错误代码:
SQLSTATE[HY000]: General error: 1 no such table: accounts (SQL: select "id", "remark" from "accounts" where "status" = 1)
错误日志: