Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: zypper dup and reboot - now there is no vncserver anymore

  1. #1

    Exclamation zypper dup and reboot - now there is no vncserver anymore

    Hi!

    I use tigervnc for some headless machines. Some minutes ago I updated a plain vanilla TW (installed some days ago) with zypper dup, some 1000 updates.

    After rebooting I can't start via ssh the vncserver on this machine

    Code:
     vncserver :1
    If 'vncserver' is not a typo you can use command-not-found to lookup the package that contains it, like this:
        cnf vncserver
    Sick! Checked on two (2!) other TW installs updated a few minutes ago the vncserver is gone!.

    How can this be resolved, as the tigervnc and x11 package is apparently installed (YaST), as is on the TW where vncserver is working fine (without zypper dup recently).

    What is wrong with TW? Every few days now installs are completely broken (black screen on boot or something).

    How can I get my VNCserver back? Urgently...
    Kind regards

    raspu

  2. #2
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    33,684
    Blog Entries
    15

    Default Re: zypper dup and reboot - now there is no vncserver anymore

    Cheers Malcolm °¿° (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3

    Default Re: zypper dup and reboot - now there is no vncserver anymore

    Added session and this user thing but I get here:

    Code:
    restorecon -RFv /home/myusername/.vnc
    If 'restorecon' is not a typo you can use command-not-found to lookup the package that contains it, like this:
        cnf restorecon
    and then

    Code:
    systemctl start vncserver@:1
    ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====
    Authentication is required to start 'vncserver@:1.service'.
    Authenticating as: root
    Password: 
    ==== AUTHENTICATION COMPLETE ====
    Job for vncserver@:1.service failed because the control process exited with error code.
    See "systemctl status vncserver@:1.service" and "journalctl -xeu vncserver@:1.service" for details.
    I need to access my Thunderbird on this machine urgently. What an awefull mess.
    Kind regards

    raspu

  4. #4

    Default Re: zypper dup and reboot - now there is no vncserver anymore

    I removed /home/myuser/.vnc and created a new password with vncpasswd, but service won't start

    Code:
    systemctl start vncserver@:1
    ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====
    Authentication is required to start 'vncserver@:1.service'.
    Authenticating as: root
    Password: 
    ==== AUTHENTICATION COMPLETE ====
    Job for vncserver@:1.service failed because the control process exited with error code.
    See "systemctl status vncserver@:1.service" and "journalctl -xeu vncserver@:1.service" for details.
    with

    Code:
    systemctl status vncserver@:1.service
    × vncserver@:1.service - Remote desktop service (VNC)
         Loaded: loaded (/etc/systemd/system/vncserver@.service; disabled; vendor preset: disabled)
         Active: failed (Result: exit-code) since Thu 2022-02-24 08:43:19 CET; 40s ago
        Process: 1490 ExecStartPre=/usr/bin/vncserver -kill ::1 > /dev/null 2>&1 (code=exited, status=203/EXEC)
            CPU: 9ms
    and

    Code:
    journalctl -xeu vncserver@:1.service
    Hint: You are currently not seeing messages from other users and the system.
          Users in the 'systemd-journal' group can see all messages. Pass -q to
          turn off this notice.
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    -- No entries --
    Kind regards

    raspu

  5. #5

    Default Re: zypper dup and reboot - now there is no vncserver anymore

    Have here

    Code:
    cat vncserver@.service 
        [Unit]
        Description=Remote desktop service (VNC)
        After=syslog.target network.target
    
        [Service]
        Type=simple
        User=usser
        PAMName=login
        PIDFile=/home/myuser/.vnc/%H:%i.pid
        ExecStartPre=/usr/bin/vncserver -kill :%i > /dev/null 2>&1
        ExecStart=/usr/bin/vncserver :%i -alwaysshared -fg
        ExecStop=/usr/bin/vncserver -kill :%i
    
        [Install]
        WantedBy=multi-user.target
    Code:
    systemctl enable vncserver@:1.service
    ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ====
    Authentication is required to manage system service or unit files.
    Authenticating as: root
    Password: 
    ==== AUTHENTICATION COMPLETE ====
    Created symlink /etc/systemd/system/multi-user.target.wants/vncserver@:1.service ? /etc/systemd/system/vncserver@.service.
    ==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ====
    Authentication is required to reload the systemd state.
    Authenticating as: root
    Password: 
    ==== AUTHENTICATION COMPLETE ===
    and then:

    Code:
    systemctl start vncserver@:1
    ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====
    Authentication is required to start 'vncserver@:1.service'.
    Authenticating as: root
    Password: 
    ==== AUTHENTICATION COMPLETE ====
    Job for vncserver@:1.service failed because the control process exited with error code.
    See "systemctl status vncserver@:1.service" and "journalctl -xeu vncserver@:1.service" for details.
    and nothing in the log. nightmare.
    Kind regards

    raspu

  6. #6
    Join Date
    Aug 2008
    Location
    Belgium
    Posts
    338

    Default Re: zypper dup and reboot - now there is no vncserver anymore

    Quote Originally Posted by suse_rasputin View Post
    Added session and this user thing but I get here:

    Code:
    restorecon -RFv /home/myusername/.vnc
    If 'restorecon' is not a typo you can use command-not-found to lookup the package that contains it, like this:
        cnf restorecon
    and then

    Code:
    systemctl start vncserver@:1
    ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====
    Authentication is required to start 'vncserver@:1.service'.
    Authenticating as: root
    Password: 
    ==== AUTHENTICATION COMPLETE ====
    Job for vncserver@:1.service failed because the control process exited with error code.
    See "systemctl status vncserver@:1.service" and "journalctl -xeu vncserver@:1.service" for details.
    I need to access my Thunderbird on this machine urgently. What an awefull mess.

    On the system where vncserver must run verify that
    1. the file /etc/tigervnc/vncserver.users exist and contains "1:youruser".
    2. the password is present in /home/youruser/.vnc/passwd if needed recreate it via vncpasswd
    3. if needed set the geometry in file /home/youruser/.vnc/config
    4. logoff from the graphical session
    5. restart vncserver@:1.service in console ((Alt-ctrl-fx)

    See also https://github.com/TigerVNC/tigervnc...erver/HOWTO.md

    Good luck
    Philippe
    Tumbleweed (x86_64) Kernel 6.0 with KDE plasma Xorg

  7. #7

    Default Re: zypper dup and reboot - now there is no vncserver anymore

    1.

    Code:
    cat /etc/tigervnc/vncserver.users
    # TigerVNC User assignment
    #
    # This file assigns users to specific VNC display numbers.
    # The syntax is <display>=<username>. E.g.:
    #
    # :2=andrew
    # :3=lisa
    :1=myuser
    2.

    Code:
    ~/.vnc> ls -al
    total 12
    drwxr-xr-x  2 usser usser 4096 Feb 24 08:40 .
    drwx------ 23 usser usser 4096 Feb 24 08:48 ..
    -rw-------  1 usser usser    8 Feb 24 08:40 passwd
    3.

    I deleted ~/.vnc completely before doing vncpasswd as recommended in the link of your thread and not the only content in the newly created .vnc is "passwd" as shown in output under 2.

    I understood the guide that the necessary files wil lbe created in ~/.vnc when doing vncpasswd but apparently this doesn't work.

    4.

    The machine is headless, so by definition nobody is logged in ...

    5.

    Code:
    systemctl start vncserver@:1
    ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====
    Authentication is required to start 'vncserver@:1.service'.
    Authenticating as: root
    Password: 
    polkit-agent-helper-1: pam_authenticate failed: Authentication failure
    ==== AUTHENTICATION FAILED ====
    Failed to start vncserver@:1.service: Access denied
    See system logs and 'systemctl status vncserver@:1.service' for details
    ...and nothing in the logs.
    Kind regards

    raspu

  8. #8

    Default Re: zypper dup and reboot - now there is no vncserver anymore

    OK, then with sudo journalctl

    Code:
     sudo journalctl -xeu vncserver@:1.service
    ?? The job identifier is 2451 and the job result is failed.
    Feb 24 09:16:19 j1900TW0222 systemd[1]: Starting Remote desktop service (VNC)...
    ?? Subject: A start job for unit vncserver@:1.service has begun execution
    ?? Defined-By: systemd
    ?? Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
    ?? 
    ?? A start job for unit vncserver@:1.service has begun execution.
    ?? 
    ?? The job identifier is 2752.
    Feb 24 09:16:19 j1900TW0222 systemd[1]: vncserver@:1.service: Control process exited, code=exited, status=203/EXEC
    ?? Subject: Unit process exited
    ?? Defined-By: systemd
    ?? Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
    ?? 
    ?? An ExecStartPre= process belonging to unit vncserver@:1.service has exited.
    ?? 
    ?? The process' exit code is 'exited' and its exit status is 203.
    Feb 24 09:16:19 j1900TW0222 systemd[1]: vncserver@:1.service: Failed with result 'exit-code'.
    ?? Subject: Unit failed
    ?? Defined-By: systemd
    ?? Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
    ?? 
    ?? The unit vncserver@:1.service has entered the 'failed' state with result 'exit-code'.
    Feb 24 09:16:19 j1900TW0222 systemd[1]: Failed to start Remote desktop service (VNC).
    ?? Subject: A start job for unit vncserver@:1.service has failed
    ?? Defined-By: systemd
    ?? Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
    ?? 
    ?? A start job for unit vncserver@:1.service has finished with a failure.
    ?? 
    ?? The job identifier is 2752 and the job result is failed.
    Code:
    sudo systemctl status vncserver@:1.service
    × vncserver@:1.service - Remote desktop service (VNC)
         Loaded: loaded (/etc/systemd/system/vncserver@.service; enabled; vendor preset: disabled)
         Active: failed (Result: exit-code) since Thu 2022-02-24 09:16:19 CET; 1min 54s ago
        Process: 1467 ExecStartPre=/usr/bin/vncserver -kill ::1 > /dev/null 2>&1 (code=exited, status=203/EXEC)
            CPU: 8ms
    
    Feb 24 09:16:19 j1900TW0222 systemd[1]: Starting Remote desktop service (VNC)...
    Feb 24 09:16:19 j1900TW0222 systemd[1]: vncserver@:1.service: Control process exited, code=exited, status=203/EXEC
    Feb 24 09:16:19 j1900TW0222 systemd[1]: vncserver@:1.service: Failed with result 'exit-code'.
    Feb 24 09:16:19 j1900TW0222 systemd[1]: Failed to start Remote desktop service (VNC).
    Kind regards

    raspu

  9. #9
    Join Date
    Aug 2008
    Location
    Belgium
    Posts
    338

    Default Re: zypper dup and reboot - now there is no vncserver anymore

    Quote Originally Posted by suse_rasputin View Post
    1.

    Code:
    cat /etc/tigervnc/vncserver.users
    # TigerVNC User assignment
    #
    # This file assigns users to specific VNC display numbers.
    # The syntax is <display>=<username>. E.g.:
    #
    # :2=andrew
    # :3=lisa
    :1=myuser
    2.

    Code:
    ~/.vnc> ls -al
    total 12
    drwxr-xr-x  2 usser usser 4096 Feb 24 08:40 .
    drwx------ 23 usser usser 4096 Feb 24 08:48 ..
    -rw-------  1 usser usser    8 Feb 24 08:40 passwd
    3.

    I deleted ~/.vnc completely before doing vncpasswd as recommended in the link of your thread and not the only content in the newly created .vnc is "passwd" as shown in output under 2.

    I understood the guide that the necessary files wil lbe created in ~/.vnc when doing vncpasswd but apparently this doesn't work.

    4.

    The machine is headless, so by definition nobody is logged in ...

    5.


    ...and nothing in the logs.
    Hello,

    On my pi 400 I have the file ~/.vnc/config with this content
    Code:
    philippe@rasp:~/.vnc> ls
    config  passwd  rasp:1.log  rasp:1.pid  xstartup
    philippe@rasp:~/.vnc> cat config
    ## Supported server options to pass to vncserver upon invocation can be listed
    ## in this file. See the following manpages for more: vncserver(1) Xvnc(1).
    ## Several common ones are shown below. Uncomment and modify to your liking.
    ##
    # securitytypes=vncauth,tlsvnc
    # desktop=sandbox
    geometry=1920x1080
    # localhost
    # alwaysshared
    session=kde-plasma
    philippe@rasp:~/.vnc>
    also the service is not a user service so to find the error your need to start journacttl with
    Code:
    sudo journalctl  -xeu vncserver@:1.service
    Regards
    Philippe
    Tumbleweed (x86_64) Kernel 6.0 with KDE plasma Xorg

  10. #10

    Default Re: zypper dup and reboot - now there is no vncserver anymore

    Quote Originally Posted by phil524 View Post
    Hello,

    On my pi 400 I have the file ~/.vnc/config with this content
    Code:
    philippe@rasp:~/.vnc> ls
    config  passwd  rasp:1.log  rasp:1.pid  xstartup
    philippe@rasp:~/.vnc> cat config
    ## Supported server options to pass to vncserver upon invocation can be listed
    ## in this file. See the following manpages for more: vncserver(1) Xvnc(1).
    ## Several common ones are shown below. Uncomment and modify to your liking.
    ##
    # securitytypes=vncauth,tlsvnc
    # desktop=sandbox
    geometry=1920x1080
    # localhost
    # alwaysshared
    session=kde-plasma
    philippe@rasp:~/.vnc>
    also the service is not a user service so to find the error your need to start journacttl with
    Code:
    sudo journalctl  -xeu vncserver@:1.service
    Regards
    Philippe
    Many thanks for trying to help! Highly appreciated.

    Neither xstartup nor config were created in ~/.vnc when doing vncpasswd. What a mess...

    The error (see above) apparently comes from SELinux and the "work arround" is to disable this trash completely

    https://www.linuxtechi.com/install-c...centos8-rhel8/

    https://unix.stackexchange.com/quest...tatus-203-exec
    Kind regards

    raspu

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •