• 访问seafile网页端显示502 Bad Gateway


    关注 码龄 粉丝数 原力等级 -- 被采纳 被点赞 采纳率 TIMOXELINE 2024-07-23 11:39 采纳率: 0% 浏览 9 首页/ 开发工具 / 访问seafile网页端显示502 Bad Gateway dockerubuntu服务器 自己把旧电脑翻新安了个ubuntu系统,然后安装docker,利用portainer在docker中部署了一个seafile网盘用。一开始都还很正常,直到有一天,我往seafile的私人资料库里面存了巨多文件,给旧电脑硬盘直接干满了也没存完,然后下次重启旧电脑的时候seafile就变成这样了。 给硬盘清出来10G空间,再重启,依然是这样。打开portainer,查看seafile-mysql资源的运行日志,显示如下:2024-07-23 02:01:54+00:00 [Note] [Entrypoint]: MariaDB upgrade not required2024-07-23 2:01:54 0 [Note] Starting MariaDB 10.5.24-MariaDB-1:10.5.24+mariaubu2004 source revision 01f6abd1d4a929ee308f5b9287ac797a2e40d2b0 as process 1Cannot find checkpoint record at LSN (1,0x10e9fe5)2024-07-23 2:01:54 0 [ERROR] mysqld: Aria recovery failed. Please run aria_chk -r on all Aria tables (*.MAI) and delete all aria_log.######## files2024-07-23 2:01:54 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.2024-07-23 2:01:54 0 [Note] InnoDB: Uses event mutexes2024-07-23 2:01:54 0 [Note] InnoDB: Compressed tables use zlib 1.2.112024-07-23 2:01:54 0 [Note] InnoDB: Number of pools: 12024-07-23 2:01:54 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions2024-07-23 2:01:54 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)2024-07-23 2:01:54 0 [Note] InnoDB: Using Linux native AIO2024-07-23 2:01:54 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 1342177282024-07-23 2:01:54 0 [Note] InnoDB: Completed initialization of buffer pool2024-07-23 2:01:55 0 [Note] InnoDB: 128 rollback segments are active.2024-07-23 2:01:55 0 [Note] InnoDB: Creating shared tablespace for temporary tables2024-07-23 2:01:55 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...2024-07-23 2:01:55 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.2024-07-23 2:01:55 0 [Note] InnoDB: 10.5.24 started; log sequence number 36761194; transaction id 2010032024-07-23 2:01:55 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool2024-07-23 2:01:55 0 [Note] Plugin 'FEEDBACK' is disabled.2024-07-23 2:01:55 0 [ERROR] Could not open mysql.plugin table: "Unknown storage engine 'Aria'". Some plugins may be not loaded2024-07-23 2:01:55 0 [ERROR] Failed to initialize plugins.2024-07-23 2:01:55 0 [ERROR] Aborting2024-07-23 02:02:56+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.5.24+mariaubu2004 started.2024-07-23 02:02:56+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'2024-07-23 02:02:56+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.5.24+mariaubu2004 started.2024-07-23 02:02:56+00:00 [Note] [Entrypoint]: MariaDB upgrade not required2024-07-23 2:02:56 0 [Note] Starting MariaDB 10.5.24-MariaDB-1:10.5.24+mariaubu2004 source revision 01f6abd1d4a929ee308f5b9287ac797a2e40d2b0 as process 1Cannot find checkpoint record at LSN (1,0x10e9fe5)2024-07-23 2:02:56 0 [ERROR] mysqld: Aria recovery failed. Please run aria_chk -r on all Aria tables (.MAI) and delete all aria_log.######## files2024-07-23 2:02:56 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.2024-07-23 2:02:56 0 [Note] InnoDB: Uses event mutexes2024-07-23 2:02:56 0 [Note] InnoDB: Compressed tables use zlib 1.2.112024-07-23 2:02:56 0 [Note] InnoDB: Number of pools: 12024-07-23 2:02:56 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions2024-07-23 2:02:56 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)2024-07-23 2:02:56 0 [Note] InnoDB: Using Linux native AIO2024-07-23 2:02:56 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 1342177282024-07-23 2:02:56 0 [Note] InnoDB: Completed initialization of buffer pool2024-07-23 2:02:57 0 [Note] InnoDB: 128 rollback segments are active.2024-07-23 2:02:57 0 [Note] InnoDB: Creating shared tablespace for temporary tables2024-07-23 2:02:57 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...2024-07-23 2:02:57 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.2024-07-23 2:02:57 0 [Note] InnoDB: 10.5.24 started; log sequence number 36761206; transaction id 2010032024-07-23 2:02:57 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool2024-07-23 2:02:57 0 [Note] Plugin 'FEEDBACK' is disabled.2024-07-23 2:02:57 0 [ERROR] Could not open mysql.plugin table: "Unknown storage engine 'Aria'". Some plugins may be not loaded2024-07-23 2:02:57 0 [ERROR] Failed to initialize plugins.2024-07-23 2:02:57 0 [ERROR] Aborting2024-07-23 02:03:58+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.5.24+mariaubu2004 started.2024-07-23 02:03:58+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'2024-07-23 02:03:58+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.5.24+mariaubu2004 started.2024-07-23 02:03:58+00:00 [Note] [Entrypoint]: MariaDB upgrade not required2024-07-23 2:03:58 0 [Note] Starting MariaDB 10.5.24-MariaDB-1:10.5.24+maria~ubu2004 source revision 01f6abd1d4a929ee308f5b9287ac797a2e40d2b0 as process 1Cannot find checkpoint record at LSN (1,0x10e9fe5)2024-07-23 2:03:58 0 [ERROR] mysqld: Aria recovery failed. Please run aria_chk -r on all Aria tables (.MAI) and delete all aria_log.######## files2024-07-23 2:03:58 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.2024-07-23 2:03:58 0 [Note] InnoDB: Uses event mutexes2024-07-23 2:03:58 0 [Note] InnoDB: Compressed tables use zlib 1.2.112024-07-23 2:03:58 0 [Note] InnoDB: Number of pools: 12024-07-23 2:03:58 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions2024-07-23 2:03:58 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)2024-07-23 2:03:58 0 [Note] InnoDB: Using Linux native AIO2024-07-23 2:03:58 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 1342177282024-07-23 2:03:58 0 [Note] InnoDB: Completed initialization of buffer pool2024-07-23 2:03:58 0 [Note] InnoDB: 128 rollback segments are active.2024-07-23 2:03:58 0 [Note] InnoDB: Creating shared tablespace for temporary tables2024-07-23 2:03:58 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...2024-07-23 2:03:58 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.2024-07-23 2:03:58 0 [Note] InnoDB: 10.5.24 started; log sequence number 36761218; transaction id 2010032024-07-23 2:03:58 0 [Note] Plugin 'FEEDBACK' is disabled.2024-07-23 2:03:58 0 [ERROR] Could not open mysql.plugin table: "Unknown storage engine 'Aria'". Some plugins may be not loaded2024-07-23 2:03:58 0 [ERROR] Failed to initialize plugins.2024-07-23 2:03:58 0 [ERROR] Aborting2024-07-23 02:04:59+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.5.24+mariaubu2004 started.2024-07-23 02:05:00+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'2024-07-23 02:05:00+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.5.24+mariaubu2004 started.2024-07-23 02:05:00+00:00 [Note] [Entrypoint]: MariaDB upgrade not required2024-07-23 2:05:00 0 [Note] Starting MariaDB 10.5.24-MariaDB-1:10.5.24+maria~ubu2004 source revision 01f6abd1d4a929ee308f5b9287ac797a2e40d2b0 as process 1Cannot find checkpoint record at LSN (1,0x10e9fe5)2024-07-23 2:05:00 0 [ERROR] mysqld: Aria recovery failed. Please run aria_chk -r on all Aria tables (*.MAI) and delete all aria_log.######## files2024-07-23 2:05:00 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.2024-07-23 2:05:00 0 [Note] InnoDB: Uses event mutexes2024-07-23 2:05:00 0 [Note] InnoDB: Compressed tables use zlib 1.2.112024-07-23 2:05:00 0 [Note] InnoDB: Number of pools: 12024-07-23 2:05:00 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions2024-07-23 2:05:00 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)2024-07-23 2:05:00 0 [Note] InnoDB: Using Linux native AIO2024-07-23 2:05:00 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 1342177282024-07-23 2:05:00 0 [Note] InnoDB: Completed initialization of buffer pool2024-07-23 2:05:00 0 [Note] InnoDB: 128 rollback segments are active.2024-07-23 2:05:00 0 [Note] InnoDB: Creating shared tablespace for temporary tables2024-07-23 2:05:00 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...2024-07-23 2:05:00 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.2024-07-23 2:05:00 0 [Note] InnoDB: 10.5.24 started; log sequence number 36761230; transaction id 2010032024-07-23 2:05:00 0 [Note] Plugin 'FEEDBACK' is disabled.2024-07-23 2:05:00 0 [ERROR] Could not open mysql.plugin table: "Unknown storage engine 'Aria'". Some plugins may be not loaded2024-07-23 2:05:00 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool2024-07-23 2:05:00 0 [ERROR] Failed to initialize plugins.2024-07-23 2:05:00 0 [ERROR] Aborting请问这种情况怎么处理呀。 展开全部 收起 写回答 好问题 0 提建议 追加酬金 关注问题 微信扫一扫 点击复制链接 分享 邀请回答 编辑 收藏 删除 结题 收藏 举报 追加酬金 (90%的用户在追加酬金后获得了解决方案) 当前问题酬金 ¥ 0 (可追加 ¥500) ¥ 15¥ 20¥ 50¥ 100¥ 200 支付方式 扫码支付 二维码出错 点击刷新 支付金额 15 元 提供问题酬金的用户不参与问题酬金结算和分配 支付即为同意 《付费问题酬金结算规则》 结题 再想想 删除 再等等

    3条回答 默认 最新

    • 阿里嘎多学长 2024-07-23 11:43
      关注

      以下内容由AIGC及阿里嘎多学长共同生成、有用望采纳:


      针对您提出的问题,以下是一些可能的解决方案:

      1. 解决"502 Bad Gateway"错误

        • 这个错误通常表示Seafile服务器作为网关或代理,无法从上游服务器获取有效的响应。首先,确保您的Seafile服务器和所有依赖服务(如数据库)都已正确启动。
        • 检查Seafile服务器的日志文件,查找可能的错误信息,这可能会提供更多关于问题原因的线索。
      2. 清理硬盘空间

        • 您已经清理了10GB的空间,这是一个很好的开始。请确保Seafile服务和数据库有足够的空间来运行。如果需要,继续清理更多空间。
      3. 修复MariaDB数据库的Aria存储引擎问题

        • 根据日志提示,您需要运行aria_chk -r命令来恢复Aria表。这通常在命令行中执行,例如:
          mysqlcheck -u root -p -r --all-databases
          
        • 删除所有aria_log.########文件。这些文件是Aria存储引擎的日志文件,如果恢复过程成功,它们可能不再需要。
      4. 检查MariaDB配置文件

        • 检查MariaDB的配置文件(通常是/etc/mysql/mariadb.conf.d/50-server.cnf/etc/mysql/my.cnf),确认没有尝试使用Aria存储引擎。如果您的数据库不需要Aria,您可能需要禁用它或确保不使用任何与Aria相关的配置。
      5. 重新安装或升级MariaDB服务

        • 如果上述步骤无法解决问题,考虑重新安装或升级MariaDB。在重新安装之前,确保备份所有重要数据。
      6. 检查Docker容器和Portainer配置

        • 确保Docker容器正确配置,并且Portainer中管理的Seafile服务依赖的数据库服务正在运行。检查容器的日志,查看是否有错误信息。
      7. 查看更详细的日志信息或寻求帮助

        • 如果问题依旧存在,您可能需要查看更详细的日志信息,或者在Seafile社区、Docker社区或MariaDB社区寻求帮助。

      请注意,执行数据库操作之前务必备份您的数据,以防止数据丢失。如果您对如何操作不确定,建议寻求专业帮助。

      评论 编辑记录
    • GISer Liu 2024-07-23 11:44
      关注

      该回答引用自GPT-3.5, 由博主 GISer Liu 编写:

      问题分析

      根据您的描述和提供的日志信息,Seafile服务在重启后显示502 Bad Gateway错误,并且MariaDB容器无法正常启动。日志中显示的主要错误是关于Aria存储引擎的恢复失败和插件注册失败。具体错误信息如下:

      Cannot find checkpoint record at LSN (1,0x10e9fe5)
      mysqld: Aria recovery failed. Please run aria_chk -r on all Aria tables (*.MAI) and delete all aria_log.######## files
      Plugin 'Aria' registration as a STORAGE ENGINE failed.
      

      解决方案

      1. 清理Aria日志文件

      首先,您需要清理Aria日志文件并修复Aria表。请按照以下步骤操作:

      1. 进入MariaDB容器

        docker exec -it seafile-mysql /bin/bash
        
      2. 停止MariaDB服务

        service mysql stop
        
      3. 删除Aria日志文件

        rm -f /var/lib/mysql/aria_log.*
        
      4. 修复Aria表

        mysqlcheck --repair --all-databases
        
      5. 重新启动MariaDB服务

        service mysql start
        

      2. 检查磁盘空间

      确保您的磁盘空间充足,因为磁盘空间不足可能导致数据库无法正常启动。您已经清理了10G空间,但建议再次检查磁盘空间:

      df -h
      

      3. 检查Seafile配置

      确保Seafile的配置文件正确无误,特别是数据库连接配置。检查seafile.confseahub_settings.py文件中的数据库连接信息是否正确。

      4. 重启Seafile服务

      在确保MariaDB服务正常启动后,重启Seafile服务:

      docker restart seafile
      

      5. 检查Seafile日志

      如果问题仍然存在,检查Seafile的日志文件以获取更多信息:

      docker logs seafile
      

      总结

      通过清理Aria日志文件、修复Aria表、确保磁盘空间充足、检查Seafile配置并重启服务,您应该能够解决Seafile显示502 Bad Gateway的问题。如果问题仍然存在,请提供更多的日志信息以便进一步分析。

      如果该回答解决了您的问题,请采纳!如果没有,请私信联系或评论您的疑惑

      展开全部

      评论
    • 清水白石008 2024-08-17 06:23
      关注
      🕒上午好,题主!目前:🟢[在线]
      📢参考GPT-4o mini 模型、由清水白石008整理提供!
      📣今日金句:“生活就像骑自行车。要保持平衡,就得不断前进。” — 阿尔伯特·爱因斯坦
      

      根据你提供的日志信息,MariaDB 的 Aria 存储引擎在启动时出现了问题,导致数据库无法正常运行。这通常是由于数据库文件损坏或不完整引起的。以下是一些可能的解决步骤:

      1. 检查磁盘空间
        确保你的硬盘有足够的空间。虽然你提到已经清理了 10GB 的空间,但最好确保有更多的可用空间,以便数据库可以正常运行。

      2. **运行 aria_chk**:
        根据日志中的提示,你需要运行 aria_chk 来修复 Aria 表。你可以通过以下步骤进行操作:

        • 进入到 MariaDB 的数据目录,通常是 /var/lib/mysql
        • 找到所有以 .MAI 结尾的文件。
        • 运行以下命令来修复这些表:
          aria_chk -r *.MAI
          
        • 如果有多个 .MAI 文件,确保对每个文件都运行修复命令。
      3. 删除 Aria 日志文件
        日志中提到需要删除所有 aria_log.######## 文件。你可以在数据目录中找到这些文件并删除它们:

        rm aria_log.*
        
      4. 重启 MariaDB
        在完成上述步骤后,尝试重启 MariaDB 服务:

        docker restart <your_mariadb_container_name>
        
      5. 检查其他日志
        如果问题仍然存在,检查其他相关的日志文件(如 Docker 容器的日志)以获取更多信息。

      6. 备份和恢复
        如果以上步骤无法解决问题,考虑从备份中恢复数据库。如果没有备份,可能需要考虑数据恢复工具。

      7. 重新部署
        如果问题依然无法解决,可能需要考虑重新部署 Seafile 和 MariaDB。确保在重新部署之前备份重要数据。

      希望这些步骤能帮助你解决问题!如果有其他问题,请随时询问。

      展开全部

      评论
    编辑
    预览

    报告相同问题?

  • 相关阅读:
    Linux网络配置
    openguass数据库描述指令集合(等保)
    记一次 Sedona(GeoSpark) 空间计算优化
    rh358 003 ansible部署双网卡绑定 DNS原理 bind正向解析
    【高性能计算】CUDA
    springboot 与异步任务,定时任务,邮件任务
    实验二.面向对象基础
    21天学Python --- 打卡11:Python基础
    Liunx上JSON处理工具jq
    淘宝api开发教程(淘宝API测试地址,参数说明)
  • 原文地址:https://ask.csdn.net/questions/8132140