DamionGans / ubuntu-wsl2-systemd-script

[Does not work anymore!] Script to enable systemd support on current Ubuntu WSL2 images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error connecting to agent: No such file or directory. Failed to reload daemon: Connection reset by peer

jramiresbrito opened this issue · comments

First I tried to run the script using zsh (I shouldn't?) and it prompted:

ubuntu-wsl2-systemd-script.sh:29: = not found

Then I restarted the temrinal and ran it using bash and apparently everything was ok but I notice these lines:

%sudo ALL=(ALL) NOPASSWD: /usr/sbin/enter-systemd-namespace
'\\wsl$\Ubuntu\home\joao\ubuntu-wsl2-systemd-script'
CMD.EXE was started with the above path as the current folder.
UNC paths are not supported. Standardizing to Windows folder.

SUCCESS: the specified value has been saved.
'\\wsl$\Ubuntu\home\joao\ubuntu-wsl2-systemd-script'
CMD.EXE was started with the above path as the current folder.
UNC paths are not supported. Standardizing to Windows folder.

SUCCESS: the specified value has been saved.

Then now when I start the terminal this error is shown:

Error connecting to agent: No such file or directory
Error connecting to agent: No such file or directory
Usage: login [-p] [name]
       login [-p] [-h host] [-f name]
       login [-p] -r host
Failed to reload daemon: Connection reset by peer

Normally it should start PostgreSQL.

Checking the service status:

 service postgresql status
● postgresql.service - PostgreSQL RDBMS
     Loaded: loaded (/lib/systemd/system/postgresql.service; enabled;>
     Active: active (exited) since Mon 2020-06-08 20:26:27 -03; 11min>
   Main PID: 320 (code=exited, status=0/SUCCESS)
      Tasks: 0 (limit: 15300)
     Memory: 0B
     CGroup: /system.slice/postgresql.service

Jun 08 20:26:27 DESKTOP-UKICADF systemd[1]: Starting PostgreSQL RDBMS>
Jun 08 20:26:27 DESKTOP-UKICADF systemd[1]: Finished PostgreSQL RDBMS.

Any idea?