-
Notifications
You must be signed in to change notification settings - Fork 385
nsenter: cannot open /proc/320/ns/time: No such file or directory #36
Comments
Ok, I tested again with ubuntu instead of pengwin, and the script worked just fine. I guess that might be the reason the script has ubuntu in it's name :-) I would still like to make it work for pengwin, though... |
this error because
|
TL;DR: Change options of nsenter from Thank you @eternalphane for the information, but this could be confusing for some people. Based on that data, this is how to fix it:
USER_HOME="$(getent passwd | awk -F: '$1=="'"$SUDO_USER"'" {print $6}')"
if [ -n "$SYSTEMD_PID" ] && [ "$SYSTEMD_PID" != "1" ]; then
if [ -n "$1" ] && [ "$1" != "bash --login" ] && [ "$1" != "/bin/bash --login" ]; then
exec /usr/bin/nsenter -t "$SYSTEMD_PID" -m -p \
/usr/bin/sudo -H -u "$SUDO_USER" \
/bin/bash -c 'set -a; [ -f "$HOME/.systemd-env" ] && source "$HOME/.systemd-env"; set +a; exec bash -c '"$(printf "%q" "$@")"
else
exec /usr/bin/nsenter -t "$SYSTEMD_PID" -m -p \
/bin/login -p -f "$SUDO_USER" \
$([ -f "$USER_HOME/.systemd-env" ] && /bin/cat "$USER_HOME/.systemd-env" | xargs printf ' %q')
fi
echo "Existential crisis"
exit 1
fi
|
Worket on Debian 11 release! Thank you! |
Thanks @pablorq ! |
I'm glad it helps! 🙂 |
@s4pfyr How exactly did you do it? After upgrading, mine started throwing This was messy for me before, so I enabled systemd by doing this
|
@hyoretsu I did not have the nsenter problem after switching the flags like @pablorq suggested. |
I'm even unable to run the install script with --force: nsenter: cannot open /proc/830/ns/time: No such file or directory |
There are two commands, they each work in different cases: If that doesn't work, I believe you need to do it manually I managed to successfully update to 21.10 btw |
ok so have I understood it correctly. |
|
I try
it does not work, but
work and then I used @pablorq's method. |
I successfully changed |
Check your the endfile /usr/sbin/enter-systemd-namespace, if need change it. |
Apparently, changing it before rebooting (so before the error happens) and not reinstalling the script as opposed to what @pablorq suggested works like a charm (at least for me). Thank you all very much. |
As I seen in: https://www.csa.iisc.ac.in/~vg/teaching/E0-256/slides/lxc-slide-deck.pdf Also: when running: lsns -l, you should see the namespaces list for linux kernel. For me - I don't know how can I downgrade the version, and which one? (Or running a new patch), but I presume this can be solved by simple commands. |
I ran this script ( ubuntu-wsl2-systemd-script) originally but did not have success. So I waited for upgrade to 22.04 like most suggested and after upgrading I run into this error: [process exited with code 1 (0x00000001)] wsl -e /usr/libexec/nslogin /bin/bash in command prompt allows me to the enter the terminal. How can I get my linux terminal to open without error now? |
Thanks @pablorq, worked for me! |
Hi there, I updated from Ubuntu 20.04 to 22.04 via console (do-release-upgrade). Unfortunately the solution of @pablorq only works partly. The system starts now, but only it is not possible to login as normal user.
File system is not full (332G free):
After login (
What I found: the variable That#s why I also tried to "trick" the script by setting the user and users home manually ...
... also here: the sytem starts, but login with normal user (!) is canceled after 60 seconds without success. With the last method,
If I edit start Any idea? Cheers Axel |
This works perfectly after using |
fix "nsenter: cannot open /proc/320/ns/time: No such file or directory" according to DamionGans#36 (comment)
it works on wsl2 + Ubuntu 22.04.1 |
fix "nsenter: cannot open /proc/320/ns/time: No such file or directory" according to DamionGans#36 (comment)
#36 (comment) working for me !!! THANK"S you save my life |
@pablorq thanks for the save, however worked for me after running |
Thanks @jototland for opening the ticket, and thanks @pablorq for the simplification of the fix! |
Hi guys
|
Signed-off-by: Mingi Sung <fiestalake@disroot.org>
Was fixed in nsenter, see util-linux/util-linux#2059 |
Worked on WSL2 + Ubuntu 22.04, also |
|
I get this after running your script.
nsenter: cannot open /proc/320/ns/time: No such file or directory
Luckily, I can "wsl -e bash --norc" and revert the changes to /etc/bash.bashrc. But what is wrong with my /proc since nsenter doesn't like it?
Windows version 19041.388
WSL 2
Pengwin
The text was updated successfully, but these errors were encountered: