WangNingkai / OLAINDEX

✨ Another OneDrive Directory Index
https://OLAINDEX.JS.ORG
MIT License
2.24k stars 615 forks source link

安装5.0版本,首页报500错误 #302

Closed suyin-long closed 4 years ago

suyin-long commented 4 years ago

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) 错误日志:

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1 no such table: telescope_entries at /www/wwwroot/suyin-tools.cn/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:64)
[stacktrace]
#0 /www/wwwroot/suyin-tools.cn/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(64): PDO->prepare()
#1 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Connection.php(331): Doctrine\\DBAL\\Driver\\PDOConnection->prepare()
#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(339): Illuminate\\Database\\Connection->run()
#5 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2203): Illuminate\\Database\\Connection->select()
#6 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2191): Illuminate\\Database\\Query\\Builder->runSelect()
#7 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2686): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#8 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2192): Illuminate\\Database\\Query\\Builder->onceWithColumns()
#9 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2613): Illuminate\\Database\\Query\\Builder->get()
#10 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2541): Illuminate\\Database\\Query\\Builder->aggregate()
#11 /www/wwwroot/suyin-tools.cn/vendor/laravel/telescope/src/Storage/DatabaseEntriesRepository.php(122): Illuminate\\Database\\Query\\Builder->count()
#12 /www/wwwroot/suyin-tools.cn/vendor/laravel/telescope/src/Storage/DatabaseEntriesRepository.php(164): Laravel\\Telescope\\Storage\\DatabaseEntriesRepository->countExceptionOccurences()
#13 [internal function]: Laravel\\Telescope\\Storage\\DatabaseEntriesRepository->Laravel\\Telescope\\Storage\\{closure}()
#14 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Support/Collection.php(638): array_map()
#15 /www/wwwroot/suyin-tools.cn/vendor/laravel/telescope/src/Storage/DatabaseEntriesRepository.php(177): Illuminate\\Support\\Collection->map()
#16 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Support/Traits/EnumeratesValues.php(202): Laravel\\Telescope\\Storage\\DatabaseEntriesRepository->Laravel\\Telescope\\Storage\\{closure}()
#17 /www/wwwroot/suyin-tools.cn/vendor/laravel/telescope/src/Storage/DatabaseEntriesRepository.php(178): Illuminate\\Support\\Collection->each()
#18 /www/wwwroot/suyin-tools.cn/vendor/laravel/telescope/src/Storage/DatabaseEntriesRepository.php(139): Laravel\\Telescope\\Storage\\DatabaseEntriesRepository->storeExceptions()
#19 /www/wwwroot/suyin-tools.cn/vendor/laravel/telescope/src/Telescope.php(590): Laravel\\Telescope\\Storage\\DatabaseEntriesRepository->store()
#20 [internal function]: Laravel\\Telescope\\Telescope::Laravel\\Telescope\\{closure}()
#21 /www/wwwroot/suyin-tools.cn/vendor/laravel/telescope/src/Telescope.php(234): call_user_func()
#22 /www/wwwroot/suyin-tools.cn/vendor/laravel/telescope/src/Telescope.php(601): Laravel\\Telescope\\Telescope::withoutRecording()
#23 /www/wwwroot/suyin-tools.cn/vendor/laravel/telescope/src/ListensForStorageOpportunities.php(44): Laravel\\Telescope\\Telescope::store()
#24 [internal function]: Laravel\\Telescope\\Telescope::Laravel\\Telescope\\{closure}()
#25 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(33): call_user_func_array()
#26 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/Util.php(37): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#27 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(79): Illuminate\\Container\\Util::unwrapIfClosure()
#28 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()
#29 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Container/Container.php(592): Illuminate\\Container\\BoundMethod::call()
#30 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1091): Illuminate\\Container\\Container->call()
#31 /www/wwwroot/suyin-tools.cn/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(180): Illuminate\\Foundation\\Application->terminate()
#32 /www/wwwroot/suyin-tools.cn/public/index.php(60): Illuminate\\Foundation\\Http\\Kernel->terminate()
#33 {main}
"}

使用默认的账户和密码登录后台后依旧报500错误,错误代码SQLSTATE[HY000]: General error: 1 no such table: users (SQL: select * from "users" where "name" = admin limit 1)

WangNingkai commented 4 years ago

image

此处步骤执行的结果显示什么?

suyin-long commented 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!
suyin-long commented 4 years ago

测试了好多次,每次都是报这个错误,不知道怎么回事。

g-mero commented 4 years ago

+1,一模一样的问题

sknpy commented 4 years ago

+1,我从月初开始尝试安装的,这个问题一直存在

WangNingkai commented 4 years ago

Laravel命令行静默处理导致的,已修复 https://github.com/WangNingkai/OLAINDEX/commit/357f795d87595a18d520128f1a13c36c99f1e807

suyin-long commented 4 years ago

Laravel命令行静默处理导致的,已修复357f795

好的,我再试试看看

suyin-long commented 4 years ago

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}
"} 
WangNingkai commented 4 years ago

看看env数据库配置文件是不是有什么问题

WangNingkai commented 4 years ago

https://github.com/WangNingkai/OLAINDEX/blob/master/.env.example

参考这个问题

suyin-long commented 4 years ago

https://github.com/WangNingkai/OLAINDEX/blob/master/.env.example

参考这个问题

好的,我试试。能不能把#300这个问题解决下,谢谢!

suyin-long commented 4 years ago

看看env数据库配置文件是不是有什么问题

我找到原因了,因为我在服务器上安装了MySQL,导致了3306端口被占用,所以当我停用MySQL后就可以安装成功了。 但是我有个疑问,如何才能在使用MySQL的情况下安装成功呢?是要修改env文件吗?

suyin-long commented 4 years ago

看看env数据库配置文件是不是有什么问题

我找到原因了,因为我在服务器上安装了MySQL,导致了3306端口被占用,所以当我停用MySQL后就可以安装成功了。 但是我有个疑问,如何才能在使用MySQL的情况下安装成功呢?是要修改env文件吗?

解决了,我通过修改env文件在启用MySQL的情况下正常的安装上了OLAINDEX5.0

suyin-long commented 4 years ago

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

WangNingkai commented 4 years ago

@suyin-long 方便提供下测试得世纪互联账号吗 i@ningkai.wang

suyin-long commented 4 years ago

@suyin-long 方便提供下测试得世纪互联账号吗 i@ningkai.wang

给你提供client_id,和client_secret可以吗?

suyin-long commented 4 years ago

@suyin-long 方便提供下测试得世纪互联账号吗 i@ningkai.wang

账号已发送给你

WangNingkai commented 4 years ago

@suyin-long 更新后,重新绑定试试看

suyin-long commented 4 years ago

@suyin-long 更新后,重新绑定试试看

好的,我再试试。

suyin-long commented 4 years ago

@suyin-long 更新后,重新绑定试试看

我刚才测试了一下,可以正常安装并使用了,下面说一下测试结果:

优点:

新问题:

suyin-long commented 4 years ago

再提一些小建议:

  1. 能不能将自定义版权显示最下面的.去掉,即不好看还占地方,如图: UVCw7D.png

  2. 能不能将搜索框一直移动到页头上,如图: UVPbPH.png

WangNingkai commented 4 years ago

再提一些小建议:

  1. 能不能将自定义版权显示最下面的.去掉,即不好看还占地方,如图: UVCw7D.png
  2. 能不能将搜索框一直移动到页头上,如图: UVPbPH.png
  1. 应该是多打了个点,后期会去掉的
  2. 搜索是针对单独账号的,便于显示所以放到了下面
suyin-long commented 4 years ago

有个问题,现在后台没有了删除缓存和更新缓存的设置,那么要怎么清除缓存和更新缓存呢? 还有如何设置每页显示的内容的条数,能不能在后台增加个这个分页选项

janshirley commented 3 years ago

看看env数据库配置文件是不是有什么问题

我找到原因了,因为我在服务器上安装了MySQL,导致了3306端口被占用,所以当我停用MySQL后就可以安装成功了。 但是我有个疑问,如何才能在使用MySQL的情况下安装成功呢?是要修改env文件吗?

解决了,我通过修改env文件在启用MySQL的情况下正常的安装上了OLAINDEX5.0

请问一下具体要怎么修改啊,我现在也被这个问题困扰