Mon bot irc ne démarre pas automatiquement. 'code=exit, status=217/USER'

Mon serveur “VouNébergezPa”

Matériel: Pi “Framboisier” 3
Version VouNébergezPa: 3.7.1.1
Accès: “SDS”, Session à distance sécurisée (SSH)
modifié?: Limnoria installée.

Bonjour,

J’ai installé Limnoria et je les ai ajoutés à systemd.

$ sudo cat /lib/systemd/system/lihmnoria-adaqb

[Unit]
Description=Limnoria
Wants=nss-user-lookup.target
After=network.target nss-user-lookup.target

[Service]
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games" "TZ=CEST"
Type=simple
ExecStart=/usr/bin/supybot /home/folaht/.limnoria/bo_adàb_prèsipal/bo_adaqb_preqsipal.conf
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
User=folaht
SyslogIdentifier=Supybot
# Uncomment these lines for extra security at the cost of breaking some third-party plugins:
# SystemCallFilter=~@raw-io @clock @cpu-emulation @debug @keyring @module @mount @obsolete @privileged @raw-io
# ProtectSystem=strict
# ProtectHome=read-only
# ReadWritePaths=/home/bot/botname

[Install]
WantedBy=multi-user.target

Malheureusement, il ne démarrera pas automatiquement.

$ sudo systemctl status lihmnoria-adaqb.service
● lihmnoria-adaqb.service - Limnoria
   Loaded: loaded (/lib/systemd/system/lihmnoria-adaqb.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2020-04-14 17:32:45 CEST; 3min 12s ago
  Process: 766 ExecStart=/usr/bin/supybot /home/folaht/.limnoria/bo_adàb_prèsipal/bo_adaqb_preqsipal.conf (code=exited, status=217/USER)
 Main PID: 766 (code=exited, status=217/USER)

avr 14 17:32:45 Yropeehn systemd[1]: lihmnoria-adaqb.service: Main process exited, code=exited, status=217/USER
avr 14 17:32:45 Yropeehn systemd[1]: lihmnoria-adaqb.service: Unit entered failed state.
avr 14 17:32:45 Yropeehn systemd[1]: lihmnoria-adaqb.service: Failed with result 'exit-code'.
avr 14 17:32:45 Yropeehn systemd[1]: lihmnoria-adaqb.service: Service hold-off time over, scheduling restart.
avr 14 17:32:45 Yropeehn systemd[1]: Stopped Limnoria.
avr 14 17:32:45 Yropeehn systemd[1]: lihmnoria-adaqb.service: Start request repeated too quickly.
avr 14 17:32:45 Yropeehn systemd[1]: Failed to start Limnoria.
avr 14 17:32:45 Yropeehn systemd[1]: lihmnoria-adaqb.service: Unit entered failed state.
avr 14 17:32:45 Yropeehn systemd[1]: lihmnoria-adaqb.service: Failed with result 'exit-code'.

Si je redémarre celui-ci, cela fonctionne.

folaht@Yropeehn:~ $ sudo systemctl restart lihmnoria-adaqb.service
folaht@Yropeehn:~ $ sudo systemctl status lihmnoria-adaqb.service
● lihmnoria-adaqb.service - Limnoria
   Loaded: loaded (/lib/systemd/system/lihmnoria-adaqb.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2020-04-14 17:37:10 CEST; 2s ago
 Main PID: 2175 (supybot)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/lihmnoria-adaqb.service
           └─2175 /usr/bin/python3 /usr/bin/supybot /home/folaht/.limnoria/bo_ad b_pr sipal/bo_adaqb_preqsipal.conf

avr 14 17:37:10 Yropeehn systemd[1]: Started Limnoria.

La solution temporaire consiste à créer un utilisateur non-LDAP.

sudo adduser -m -s /bin/bash -c "Bot de IRC" -U bot
1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.