-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Nvim always logs server_start:164
error in WSL (SOLVED: permissions issue)
#26058
Comments
This implies that the temp directory being calculated by Lines 125 to 133 in 400b784
|
Sorry for replying so late.
|
@justinmk I think this issue is particularly related to the failed service $ systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● user@1000.service loaded failed failed User Manager for UID 1000
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
1 loaded units listed. $ systemctl status user@1000.service
× user@1000.service - User Manager for UID 1000
Loaded: loaded (/lib/systemd/system/user@.service; static)
Drop-In: /usr/lib/systemd/system/user@.service.d
└─timeout.conf
Active: failed (Result: exit-code) since Fri 2024-01-26 12:20:01 EST; 23min ago
Docs: man:user@.service(5)
Process: 1625 ExecStart=/lib/systemd/systemd --user (code=exited, status=1/FAILURE)
Main PID: 1625 (code=exited, status=1/FAILURE)
CPU: 15ms
Jan 26 12:20:01 DESKTOP-********* systemd[1]: Starting User Manager for UID 1000...
Jan 26 12:20:01 DESKTOP-********* systemd[1625]: pam_unix(systemd-user:session): session opened for user bell(uid=1000) by (uid=0)
Jan 26 12:20:01 DESKTOP-********* systemd[1625]: pam_systemd(systemd-user:session): Runtime directory '/run/user/1000' is not owned by UI>
Jan 26 12:20:01 DESKTOP-********* systemd[1625]: pam_systemd(systemd-user:session): Not setting $XDG_RUNTIME_DIR, as the directory is not>
Jan 26 12:20:01 DESKTOP-********* systemd[1625]: Trying to run as user instance, but $XDG_RUNTIME_DIR is not set.
Jan 26 12:20:01 DESKTOP-********* systemd[1]: user@1000.service: Main process exited, code=exited, status=1/FAILURE
Jan 26 12:20:01 DESKTOP-********* systemd[1]: user@1000.service: Failed with result 'exit-code'.
Jan 26 12:20:01 DESKTOP-********* systemd[1]: Failed to start User Manager for UID 1000. $ sudo systemctl restart user@1000.service
Job for user@1000.service failed because the control process exited with error code.
See "systemctl status user@1000.service" and "journalctl -xeu user@1000.service" for details. $ journalctl -xeu user@1000.service
Jan 26 12:47:44 DESKTOP-********* systemd[1]: Starting User Manager for UID 1000...
░░ Subject: A start job for unit user@1000.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit user@1000.service has begun execution.
░░
░░ The job identifier is 573.
Jan 26 12:47:44 DESKTOP-********* systemd[2356]: pam_unix(systemd-user:session): session opened for user bell(uid=1000) by (uid=0)
Jan 26 12:47:44 DESKTOP-********* systemd[2356]: pam_systemd(systemd-user:session): Runtime directory '/run/user/1000' is not owned by UI>
Jan 26 12:47:44 DESKTOP-********* systemd[2356]: pam_systemd(systemd-user:session): Not setting $XDG_RUNTIME_DIR, as the directory is not>
Jan 26 12:47:44 DESKTOP-********* systemd[2356]: Trying to run as user instance, but $XDG_RUNTIME_DIR is not set.
Jan 26 12:47:44 DESKTOP-********* systemd[1]: user@1000.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit user@1000.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Jan 26 12:47:44 DESKTOP-********* systemd[1]: user@1000.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit user@1000.service has entered the 'failed' state with result 'exit-code'.
Jan 26 12:47:44 DESKTOP-********* systemd[1]: Failed to start User Manager for UID 1000.
░░ Subject: A start job for unit user@1000.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit user@1000.service has finished with a failure.
░░
░░ The job identifier is 573 and the job result is failed.
$ echo $TMP,$TMPDIR,$TEMP,$USERPROFILE
,,,
$ echo $XDG_RUNTIME_DIR
/run/user/1000/
$ sudo ls -ld /run/user/1000/
drwx------ 2 root root 4096 Nov 15 10:49 /run/user/1000/ Related: |
It could be this podman issue, solved by changing owner to current user Closed. |
server_start:164
error in WSLserver_start:164
error in WSL (SOLVED: permissions issue)
Problem
In windows subsystem for linux (WSL), use neovim with custom
init.lua
or with--clean
flag always produce the following error:nvim
ornvim --clean
appends a lineWRN ....
to the file in~/.local/state/nvim/log
Steps to reproduce
Expected behavior
I also use neovim in powershell from the host system (windows 10), the log file (
~/AppData/Local/nvim-data/log
) does not contain such errors. Therefore, this may be a bug in neovim when used inside WSL environment.Neovim version (nvim -v)
0.9.4
Vim (not Nvim) behaves the same?
i don't use vim
Operating system/version
ubuntu 22.04 (WSL)
Terminal name/version
windows terminal/ 1.19.2682.0
$TERM environment variable
xterm-256color
Installation
appimage
The text was updated successfully, but these errors were encountered: