Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong startup script #9

Closed
PixiBixi opened this issue Mar 30, 2020 · 7 comments
Closed

Wrong startup script #9

PixiBixi opened this issue Mar 30, 2020 · 7 comments

Comments

@PixiBixi
Copy link
Contributor

Hello,

Si je fais un restart de rutorrent, voici les logs que j'obtiens :

[2020/03/30-21:11:31] Create torrent user... [2020/03/30-21:11:31] Unable to create torrent user, you cannot use UID 1000
[2020/03/30-21:11:33] Create torrent user... [2020/03/30-21:11:33] Unable to create torrent user, you cannot use UID 1000
[2020/03/30-21:11:35] Create torrent user... [2020/03/30-21:11:35] Unable to create torrent user, you cannot use UID 1000

Ce qui est normal au vu du script :

if [ -z "$(grep :${UID}: /etc/passwd)" ]; then
group="$(grep :${GID}: /etc/group | cut -f 1 -d :)"
adduser -h /home/torrent -s /bin/sh -G "${group}" -D -u "${UID}" torrent
f_log SUC "done." # success of Create torrent user
else
f_log ERR "Unable to create torrent user, you cannot use UID ${UID}"
exit 1
fi

Après le premier lancement, l'user est créé, il faudrait fixer ça ;)

@Magicalex
Copy link
Member

Oui effectivement, je regarde ça.

@PixiBixi
Copy link
Contributor Author

Peut-être faire un fichier comme .exists à la racine de ton container, si ce fichier existe, alors tu fais pas toutes les étapes liées à l'init du container ;)

@Magicalex
Copy link
Member

Je sais pas, je vais regarder pourquoi quand on utilise l'uid root ça bloque.

@Magicalex
Copy link
Member

fixed in ee6491b

@HatchiFr
Copy link
Contributor

HatchiFr commented Apr 4, 2020

Hello, j'ajoute ma pierre à l'édifice, le problème semble toujours d'actualité.
Qu'importe l'id l'erreur est la même :

[2020/04/04-13:24:12] Create torrent user... done
ls: /config/custom_plugins: No such file or directory
ls: /config/custom_themes: No such file or directory
mv: can't rename '/home/torrent/.rtorrent.rc': No such file or directory
ln: /home/torrent/.rtorrent.rc: File exists
[2020/04/04-13:24:12] Generate configuration... done
[2020/04/04-13:24:12] HTTP authentication configuration... done
sed: /config/rtorrent/.rtorrent.rc: No such file or directory
sed: /config/rutorrent/conf/config.php: No such file or directory
[2020/04/04-13:24:12] Update old configurations... done
[2020/04/04-13:24:12] Apply system permissions... done
chown: /data/.watch: No such file or directory
chown: /data/.session: No such file or directory
chown: /data/downloads: No such file or directory
[2020/04/04-13:24:14] Apply data permissions... done
rtorrent: Could not lock session directory: "/data/.session/", No such file or directory
stop s6
[2020/04/04-13:24:16] Create torrent user...
[2020/04/04-13:24:16] Unable to create torrent user, you cannot use UID 1002
[2020/04/04-13:24:17] Create torrent user...
[2020/04/04-13:24:17] Unable to create torrent user, you cannot use UID 1002

Merci à toi et bon courage pour le confinement.

@HatchiFr
Copy link
Contributor

HatchiFr commented Apr 4, 2020

Ajout d'information à l'issue :

Debug /etc/group :
torrent:x:1002:torrent
Debug /etc/passwd :
torrent:x:1002:1002:Linux User,,,:/home/torrent:/bin/sh
Debug file /config/rtorrent/.rtorrent.rc
cat: can't open '/config/rtorrent/.rtorrent.rc': No such file or directory

@Magicalex Magicalex reopened this Apr 4, 2020
@Magicalex
Copy link
Member

fix 725a61f 24bcd4a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants