【问题标题】:Supervisor not starting .AppImage app主管未启动 .AppImage 应用程序
【发布时间】:2023-03-23 07:02:01
【问题描述】:

我在 Debian 8 机器上使用 AppImage 格式打包了一个 Electron 应用程序。我想使用 supervisord (v3.0) 监控和重新启动这个应用程序,但我就是不明白为什么它不起作用。

这就是我手动成功启动应用程序的方式:

/home/player/player.AppImage

这个应用程序没有被守护程序毫无价值。如果您关闭当前 shell,您也会关闭应用程序,因为它应该由主管跟踪应用程序。

现在,我的主管 .conf 文件如下所示:

[program:player]
command=/home/player/player.AppImage
user=player
autostart=true
autorestart=true
startretries=3

这是主管在“主管启动播放器”时返回的内容:

player: ERROR (abnormal termination)

日志中的内容:

2018-01-09 22:44:13,510 INFO exited: player (exit status 0; not expected)
2018-01-09 22:44:22,526 INFO spawned: 'player' with pid 18362
2018-01-09 22:44:22,925 INFO exited: player (exit status 0; not expected)
2018-01-09 22:44:32,967 INFO spawned: 'player' with pid 18450
2018-01-09 22:44:33,713 INFO exited: player (exit status 0; not expected)
2018-01-09 22:44:34,715 INFO gave up: player entered FATAL state, too many start retries too quickly

我还尝试使用中间 shell 脚本来启动主应用程序,但它也失败了,即使使用“exec”来启动应用程序也是如此。

仅供参考,当我手动启动应用程序时,这是我在“ps ax”上的内容:

19121 pts/1    Sl+    0:00 /tmp/.mount_player5aT7Ib/app/player
19125 ?        Ssl    0:01 ./player-1.0.0-i386.AppImage
19141 pts/1    S+     0:00 /tmp/.mount_player5aT7Ib/app/player --type=zygote --no-sandbox
19162 pts/1    Sl+    0:00 /tmp/.mount_player5aT7Ib/app/player --type=gpu-process --no-sandbox --supports-dual-gpus=false --gpu-driver-bug-workarounds=7,23,
19168 pts/1    Sl+    0:01 /tmp/.mount_player5aT7Ib/app/player --type=renderer --no-sandbox --primordial-pipe-token=EE7AFB262A1393E7D97C54C3C42F901B --lang=1 

我在 Supervisor 文档中找不到与 AppImage 格式相关的任何内容,它有什么特别之处吗?您是否看到任何解决方法可以使其正常工作?

感谢您的帮助

【问题讨论】:

    标签: shell supervisord appimage


    【解决方案1】:

    我放弃了 Supervisor 并最终使用 God(基于 Ruby)。与此类应用完美搭配。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-03-18
      • 1970-01-01
      • 2013-10-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多