1panel官方交流 https://github.com/1Panel-dev/1Panel/issues
1panel 面板问题太多 最终放弃了
头疼头疼的错误
Aw, snap! Internal Server Error [debug @ `error_log`] - https://v3-docs.chevereto.com/setup/debug.html
Fatal error [400]: SQLSTATE[HY000] [2002] Connection refused
Uncaught Error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'
大概的问题汇总
首选使用9.3的系统问题一堆 换了8.9系统 问题依旧
首选是9.3系统 boot.iso也能安装minimal 最小化安装 这样安装1panel就会出现两个问题
1. -bash: tar: command not found///tar:未找到命令 解决 https://www.31du.cn/blog/tar-command-not-found.html
一条命令安装即可 yum install -y tar
2. 1panel 安装 提示Failed to enable unit: Unit file docker.service does not exist.Failed to start docker.service: Unit docker.service not found.
解决 https://www.31du.cn/blog/docker-service-does-not-exist.html
这个其实在minimal 最小化安装 是无解的 但是
还会出现
2.1 防火墙启动失败 add (port: 20258/tcp strategy: accept) failed, err: stderr: FirewallD is not (firewalld.service: Failed with result 'exit-code'.)目前无解
2.2 docker启动失败 错误代码如下 目前无解
[root@localhost ~]# sudo systemctl start docker && sudo systemctl status docker
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xeu docker.service" for details.
如果使用8.9系统 也会出现这些问题 但是都会解决
tar: command not found/解决 https://www.31du.cn/blog/tar-command-not-found.html
但是下面出现的问题 我就很无语了
mysql服务连不上报错Unit mysql.service could not be found
Aw, snap! Internal Server Error [debug @ `error_log`] - https://v3-docs.chevereto.com/setup/debug.html
Fatal error [400]: SQLSTATE[HY000] [2002] Connection refused
Uncaught Error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'
一些常见的尝试操作可以参考:
1. host地址如果用 localhsot 不行,就改用 127.0.0.1 试试。或数据库是否是单独的一台服务器、容器等,否则需要填写指定的服务器地址。
2. 端口号是否被改过(默认一般3306),防火墙是否开启或配置端口号。
3. 确定数据库密码是正确的。
这里有这么一篇 Docker 迁移 Chevereto 图床https://www.31du.cn/blog/docker-chevereto.html
查看日志信息: docker logs -f chevereto | sed 's/\\n/\n/g' 其中的关键信息为: [client 172.17.0.1:52212] G\\DBException: SQLSTATE[HY000] [1045] Access denied for user 'root'@'172.17.0.2' (using password: YES) in /var/www/html/lib/G/classes/class.db.php:99\nStack trace:\n#0 /var/www/html/lib/G/classes/class.db.php(110): G\\DB->__construct()\n#1 这是因为我直接让 chevereto 使用 root 用户来登录 mysql,但 root 仅限于 localhost,所以导致权限不足无法登录成功。解决办法是创建独立用户并授权允许所有主机登录即可。这个已在前面补充创建用户过程,之后就能正常访问了。 这边省略了 Nginx 或 Apache 的相关 Web 服务配置,因与一般的配置无异,顾不再赘述。
博主未试过 我自己感觉就是docker这个容器 跟直装不太一样 各种访问的权限
估计大概率就是访问不了 权限问题导致 由于博主对docker这个东西太不熟悉 所以也没有时间再去折腾 百度谷歌查询解决了两天
虽然大部分问题是解决了但是 这个mysql数据库无法访问的问题 最终无法解决 这么常见的问题
1panel论坛上明显的地方没有找到相关咨询 相关说明都没有 我觉得这么大的开源项目 真是做的不行
bt宝塔虽然也有各自问题
但是至少安装没那么多事 nginx php mysql这些基本的东西新手也都能搞定
1panel不行!
Aw, snap! Internal Server Error [debug @ `error_log`] - https://v3-docs.chevereto.com/setup/debug.html
docker 文件夹下的 Chevereto 文件夹所有人和权限设置确认过是 admin 和 777,数据库也确认可以正常链接,但是无法解决该问题。最终查询无果后放弃……
这个问题全球只有这么一篇文章 而且无解 来源 https://lightblues.github.io/posts/3e1ab733/
更多 AlmaLinux os 9.3 /Rocky Linux 安装 1panel 实战经历
*https://www.31du.cn/blog/almalinux-os-9-3-1panel.html