Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

进不去后台,报错如下: #270

Closed
asseywang opened this issue Mar 6, 2025 · 5 comments
Closed

进不去后台,报错如下: #270

asseywang opened this issue Mar 6, 2025 · 5 comments

Comments

@asseywang
Copy link

进不去后台,报错如下:
···
执行数据库迁移...

In Connection.php line 712:

SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_s

chema.tables where table_schema = meedu and table_name = migrations and tab

le_type = 'BASE TABLE')

In Connector.php line 70:

SQLSTATE[HY000] [2002] Connection refused

In Connection.php line 712:

SQLSTATE[HY000] [2002] Connection refused (SQL: select count(*) as aggregat

e from administrators)

In Connector.php line 70:

SQLSTATE[HY000] [2002] Connection refused

[06-Mar-2025 08:26:22] NOTICE: fpm is running, pid 7

[06-Mar-2025 08:26:22] NOTICE: ready to handle connections

···

管理后台调试报错:

···
The stream or file "/var/www/api/storage/logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied The exception occurred while attempting to log: The stream or file "/var/www/api/storage/logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied The exception occurred while attempting to log: The stream or file "/var/www/api/storage/logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied The exception occurred while attempting to log: App\Meedu\Setting::allConfigTransformedKeyValue|读取AppConfig失败|错误信息:SQLSTATE[HY000] [2002] Connection refused (SQL: select * from app_config order by sort asc) Context: {"exception":{}} Context: {"exception":{}}
···

@Qsnh
Copy link
Owner

Qsnh commented Mar 7, 2025

1.安装的是什么版本
2.如何安装的meedu

@asseywang
Copy link
Author

1.安装的是什么版本 2.如何安装的meedu
就按教程做的:

拉取代码:

git clone --branch main https://gitee.com/myteng/MeEdu.git meedu
运行:

cd meedu && cp .env.example .env && docker-compose up -d

版本是最新的4.9.19?

@Qsnh
Copy link
Owner

Qsnh commented Mar 7, 2025

meedu.vip 官网有我企业微信,请使用微信扫码添加下,然后我给您远程看下。

@Qsnh
Copy link
Owner

Qsnh commented Mar 8, 2025

4.9.20 已发布。已修复此问题。

@asseywang
Copy link
Author

确认修复,可以关闭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants