ledccn / iyuuplus-dev

IYUU自动辅种工具,目前能对国内大部分的PT站点自动辅种,支持下载器集群,支持多盘位,支持多下载目录,支持连接远程下载器等。
http://doc.iyuu.cn
MIT License
522 stars 31 forks source link

windows 下使用基于 WSL 的 Docker,重启后数据被清空, #128

Closed yxlimo closed 1 week ago

yxlimo commented 1 week ago

是我使用姿势不对吗?

docker-compose.yml:

  iyuuplus-dev:
    image: iyuucn/iyuuplus-dev:latest
    restart: always
    stdin_open: true
    tty: true
    container_name: IYUUPlus
    ports:
      - "8780:8780"
    volumes:
      - ./iyuuplus/iyuu:/iyuu
      - ./iyuuplus/data:/data
      - ./qbittorrents/:/qbtorrents
      - ./transmission/watch:/trtorrents
      - /mnt/m/pt:/resource
    environment:
      - TZ=Asia/Shanghai

Docker Engine 报错后重启,访问网页发现回到初始化的状态 Container Log:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service init-config: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
Update IYUU script...
s6-rc: info: service legacy-cont-init successfully started
HEAD is now at 8a7dcb8 编辑:极空间双十一图片
s6-rc: info: service init-config successfully started
s6-rc: info: service init-mysql: starting
s6-rc: info: service init-mysql successfully started
s6-rc: info: service svc-nginx: starting
s6-rc: info: service svc-mysql: starting
s6-rc: info: service svc-iyuu: starting
s6-rc: info: service svc-nginx successfully started
s6-rc: info: service svc-mysql successfully started
s6-rc: info: service svc-iyuu successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
241112 23:39:33 mysqld_safe Logging to '/data/cf66ead0bc7c.err'.
241112 23:39:33 mysqld_safe Starting mariadbd daemon with databases from /data
Workerman[/iyuu/start.php] start in DEBUG mode
-------------------------------------------------- WORKERMAN --------------------------------------------------
Workerman version:4.1.15          PHP version:8.3.13           Event-Loop:\Workerman\Events\Event
--------------------------------------------------- WORKERS ---------------------------------------------------
proto   user            worker                       listen                      processes    status           
tcp     root            webman                       http://0.0.0.0:8787         4             [OK]            
tcp     root            monitor                      none                        1             [OK]            
tcp     root            reseed                       none                        1             [OK]            
tcp     root            cloud                        none                        1             [OK]            
tcp     root            plugin.webman.push.server    websocket://0.0.0.0:3131    1             [OK]            
tcp     root            plugin.cron.scheduler        none                        1             [OK]            
tcp     root            plugin.cron.worker           frame://0.0.0.0:8788        2             [OK]            
---------------------------------------------------------------------------------------------------------------
Press Ctrl+C to stop. Start success.
Success 载入计划任务,ID 1 | 标题:zmpt 辅种
Phinx by CakePHP - https://phinx.org. 0.16.5

using config file phinx.php
using config parser php
using migration paths 
 - /iyuu/db/migrations
using seed paths 
using environment development
using adapter mysql
using database iyuu
ordering by creation time

All Done. Took 0.1554s
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service init-config: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
Clone IYUU script...
Cloning into '/tmp/iyuu'...
remote: Enumerating objects: 11615, done.
remote: Counting objects: 100% (11615/11615), done.
remote: Compressing objects: 100% (7216/7216), done.
remote: Total 11615 (delta 5168), reused 9853 (delta 3969), pack-reused 0
Receiving objects: 100% (11615/11615), 12.98 MiB | 4.46 MiB/s, done.
Resolving deltas: 100% (5168/5168), done.
s6-rc: info: service init-config successfully started
s6-rc: info: service init-mysql: starting
Installing MariaDB/MySQL system tables in '/data' ...
OK

To start mariadbd at boot time you have to copy
support-files/mariadb.service to the right place for your system

Two all-privilege accounts were created.
One is root@localhost, it has no password, but you need to
be system 'root' user to connect. Use, for example, sudo mysql
The second is mysql@localhost, it has no password either, but
you need to be the system 'mysql' user to connect.
After connecting you can set the password, if you would need to be
able to connect as any of these users with a password and without sudo

See the MariaDB Knowledgebase at https://mariadb.com/kb

You can start the MariaDB daemon with:
cd '/usr' ; /usr/bin/mariadbd-safe --datadir='/data'

You can test the MariaDB daemon with mysql-test-run.pl
cd '/usr/mysql-test' ; perl mariadb-test-run.pl

Please report any problems at https://mariadb.org/jira

The latest information about MariaDB is available at https://mariadb.org/.

Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/

2024-11-13 17:40:28 0 [Note] Starting MariaDB 10.11.10-MariaDB source revision 3d0fb150289716ca75cd64d62823cf715ee47646 server_uid 72+4ASMvYxproTQgRqIDplDA1XA= as process 176
2024-11-13 17:40:28 0 [Note] InnoDB: Compressed tables use zlib 1.3.1
2024-11-13 17:40:28 0 [Note] InnoDB: Number of transaction pools: 1
2024-11-13 17:40:28 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2024-11-13 17:40:28 0 [Note] mysqld: O_TMPFILE is not supported on /var/tmp (disabling future attempts)
2024-11-13 17:40:28 0 [Note] InnoDB: Using Linux native AIO
2024-11-13 17:40:28 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
2024-11-13 17:40:28 0 [Note] InnoDB: Completed initialization of buffer pool
2024-11-13 17:40:28 0 [Note] InnoDB: Buffered log writes (block size=512 bytes)
2024-11-13 17:40:28 0 [Note] InnoDB: End of log at LSN=45614
2024-11-13 17:40:28 0 [Note] InnoDB: 128 rollback segments are active.
2024-11-13 17:40:28 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2024-11-13 17:40:28 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2024-11-13 17:40:28 0 [Note] InnoDB: log sequence number 45614; transaction id 14
2024-11-13 17:40:28 0 [Note] Plugin 'FEEDBACK' is disabled.
2024-11-13 17:40:28 0 [Note] InnoDB: Loading buffer pool(s) from /data/ib_buffer_pool
2024-11-13 17:40:28 0 [Note] InnoDB: Buffer pool(s) load completed at 241113 17:40:28
s6-rc: info: service init-mysql successfully started
s6-rc: info: service svc-nginx: starting
s6-rc: info: service svc-mysql: starting
s6-rc: info: service svc-iyuu: starting
s6-rc: info: service svc-nginx successfully started
s6-rc: info: service svc-mysql successfully started
s6-rc: info: service svc-iyuu successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
241113 17:40:28 mysqld_safe Logging to '/data/cf66ead0bc7c.err'.
241113 17:40:28 mysqld_safe Starting mariadbd daemon with databases from /data
Workerman[/iyuu/start.php] start in DEBUG mode
-------------------------------------------------- WORKERMAN --------------------------------------------------
Workerman version:4.1.15          PHP version:8.3.13           Event-Loop:\Workerman\Events\Event
--------------------------------------------------- WORKERS ---------------------------------------------------
proto   user            worker                       listen                      processes    status           
tcp     root            webman                       http://0.0.0.0:8787         4             [OK]            
tcp     root            monitor                      none                        1             [OK]            
tcp     root            reseed                       none                        1             [OK]            
tcp     root            cloud                        none                        1             [OK]            
tcp     root            plugin.webman.push.server    websocket://0.0.0.0:3131    1             [OK]            
tcp     root            plugin.cron.scheduler        none                        1             [OK]            
tcp     root            plugin.cron.worker           frame://0.0.0.0:8788        2             [OK]            
---------------------------------------------------------------------------------------------------------------
Press Ctrl+C to stop. Start success.
ledccn commented 1 week ago

正常情况下,容器是请不了你宿主机的 数据的;检查一下数据卷是否未挂载 或 是否正确挂载?

yxlimo commented 1 week ago

正常情况下,容器是请不了你宿主机的 数据的;检查一下数据卷是否未挂载 或 是否正确挂载?

可能是挂载异常,重启一下又好了,只是出现了初始的设置界面,需要重新填 token 还是用户名密码。下次再复现我再重新提 issue 吧