ledccn / iyuuplus-dev

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

Crontab observer directory does not config. #86

Open Mrcoolfuyu opened 4 months ago

Mrcoolfuyu commented 4 months ago

添加新辅种任务时,会报该错误。 OS:Fedora 39 DB: MariaDB 11.4.2 PHP: 8.3.9 微信截图_20240725230404

logfile in runtime/logs:

[2024-07-25 23:01:57] default.ERROR: 192.168.50.133 GET 192.168.50.100:8787/app/cron/admin/crontab/start?crontab_id=9 InvalidArgumentException: Crontab observer directory does not config. in /root/src/iyuuplus-dev/plugin/cron/app/model/CrontabObserver.php:26 Stack trace:

0 /root/src/iyuuplus-dev/plugin/cron/app/admin/controller/CrontabController.php(137): plugin\cron\app\model\CrontabObserver::saveEventToDir(9, 'start')#1 /root/src/iyuuplus-dev/vendor/workerman/webman-framework/src/App.php(319): plugin\cron\app\admin\controller\CrontabController->start(Object(support\Request))

2 /root/src/iyuuplus-dev/vendor/workerman/webman-framework/src/App.php(349): Webman\App::Webman{closure}(Object(support\Request))

3 /root/src/iyuuplus-dev/plugin/admin/api/Middleware.php(50): Webman\App::Webman{closure}(Object(support\Request))

4 /root/src/iyuuplus-dev/vendor/workerman/webman-framework/src/App.php(341): plugin\admin\api\Middleware->process(Object(support\Request), Object(Closure))

5 /root/src/iyuuplus-dev/app/middleware/SessionId.php(26): Webman\App::Webman{closure}(Object(support\Request))

6 /root/src/iyuuplus-dev/vendor/workerman/webman-framework/src/App.php(341): app\middleware\SessionId->process(Object(support\Request), Object(Closure))

7 /root/src/iyuuplus-dev/app/middleware/Install.php(27): Webman\App::Webman{closure}(Object(support\Request))

8 /root/src/iyuuplus-dev/vendor/workerman/webman-framework/src/App.php(341): app\middleware\Install->process(Object(support\Request), Object(Closure))

9 /root/src/iyuuplus-dev/vendor/workerman/webman-framework/src/App.php(141): Webman\App::Webman{closure}(Object(support\Request))

10 /root/src/iyuuplus-dev/vendor/workerman/workerman/Connection/TcpConnection.php(646): Webman\App->onMessage(Object(Workerman\Connection\TcpConnection), Object(support\Request))

11 /root/src/iyuuplus-dev/vendor/workerman/workerman/Events/Select.php(311): Workerman\Connection\TcpConnection->baseRead(Resource id #1123)

12 /root/src/iyuuplus-dev/vendor/workerman/workerman/Worker.php(1638): Workerman\Events\Select->loop()

13 /root/src/iyuuplus-dev/vendor/workerman/workerman/Worker.php(1429): Workerman\Worker::forkOneWorkerForLinux(Object(Workerman\Worker))

14 /root/src/iyuuplus-dev/vendor/workerman/workerman/Worker.php(1403): Workerman\Worker::forkWorkersForLinux()#15 /root/src/iyuuplus-dev/vendor/workerman/workerman/Worker.php(1788): Workerman\Worker::forkWorkers()

16 /root/src/iyuuplus-dev/vendor/workerman/workerman/Worker.php(1724): Workerman\Worker::monitorWorkersForLinux()

17 /root/src/iyuuplus-dev/vendor/workerman/workerman/Worker.php(562): Workerman\Worker::monitorWorkers()

18 /root/src/iyuuplus-dev/vendor/workerman/webman-framework/src/support/App.php(131): Workerman\Worker::runAll()

19 /root/src/iyuuplus-dev/start.php(4): support\App::run()#20 {main} [] []

[2024-07-25 23:02:08] default.ERROR: 192.168.50.133 GET 192.168.50.100:8787/app/cron/admin/crontab/start?crontab_id=9 InvalidArgumentException: Crontab observer directory does not config. in /root/src/iyuuplus-dev/plugin/cron/app/model/CrontabObserver.php:26 Stack trace:

sleepm commented 2 weeks ago

mkdir -p runtime/crontab/observer 重启容器

HelloMusician commented 1 week ago

mkdir -p runtime/crontab/observer 重启容器

这个方法试过了可以解决,如果是映射了宿主机目录,那么只需要在/vol1/1000/docker/iyuu/iyuu/runtime下创建crontab文件夹,然后进入crontab新建observer文件夹,然后重启容器就行了