• Bug#873262: user cannot startx session

    From Eggert Ehmke@21:1/5 to All on Sat Aug 26 00:30:02 2017
    XPost: linux.debian.bugs.dist

    This is a multi-part message in MIME format.

    Package: xorg

    I upgraded a system from jessie to stretch. It is a kiosk system without a window
    manager that starts one single application directly via startx. The dedicated user could
    not start the session after the upgrade.

    With Debian jessie, there were no problems.

    I got these errors:
    Fatal server error:(EE) xf86OpenConsole: Cannot open virtual console 1 (Permission
    denied)(EE)(EE)Please consult the The X.Org Foundation support at http://wiki.x.org[1]


    The solution was to issue this command:
    chmod ug+s /usr/lib/xorg/Xorg

    I found it in a related Ubuntu bug report: https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219

    Regards
    Eggert

    --------
    [1] http://wiki.x.org

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
    <html><head><meta name="qrichtext" content="1" /><style type="text/css">
    p, li { white-space: pre-wrap; }
    </style></head><body style=" font-family:'Noto Sans'; font-size:10pt; font-weight:400; font-style:normal;">
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Package: xorg</p>
    <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I upgraded a system from jessie to stretch. It is a kiosk system without a window manager that starts one single
    application directly via startx. The dedicated user could not start the session after the upgrade.</p>
    <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">With Debian jessie, there were no problems.</p>
    <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I got these errors:</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Fatal server error:<br />(EE) xf86OpenConsole: Cannot open virtual console 1 (Permission denied)<br />(EE)<br />(EE)<
    br />Please consult the The X.Org Foundation support<br />at <a href="http://wiki.x.org"><span style=" text-decoration: underline; color:#2980b9;">http://wiki.x.org</span></a><br />for help.<br />(EE) Please also check the log file at &quot;/
    home/arch/.local/share/xorg/Xorg.0.log&quot; for additional information.<br />(EE)<br />(EE) Server terminated with error (1). Closing log file.<br />xinit: giving up<br />xinit: unable to connect to X server: Connection refused</p>
    <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">The solution was to issue this command:</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">chmod ug+s /usr/lib/xorg/Xorg</p>
    <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I found it in a related Ubuntu bug report:</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219</p>
    <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Regards</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Eggert</p></body></html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Julien Cristau@21:1/5 to Eggert Ehmke on Mon Aug 28 10:40:01 2017
    XPost: linux.debian.bugs.dist

    Control: tags -1 moreinfo

    On 08/25/2017 11:10 PM, Eggert Ehmke wrote:
    Package: xorg



    I upgraded a system from jessie to stretch. It is a kiosk system without
    a window manager that starts one single application directly via startx.
    The dedicated user could not start the session after the upgrade.



    With Debian jessie, there were no problems.



    I got these errors:

    Fatal server error:
    (EE) xf86OpenConsole: Cannot open virtual console 1 (Permission denied)
    (EE)
    (EE)
    Please consult the The X.Org Foundation support
    at http://wiki.x.org
    for help.
    (EE) Please also check the log file at "/home/arch/.local/share/xorg/Xorg.0.log" for additional information.
    (EE)
    (EE) Server terminated with error (1). Closing log file.
    xinit: giving up
    xinit: unable to connect to X server: Connection refused



    The solution was to issue this command:

    chmod ug+s /usr/lib/xorg/Xorg


    This is not a solution at all, it's opening a glaring security hold on
    your machine.

    Please show the full Xorg log file.

    Cheers,
    Julien

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eggert Ehmke@21:1/5 to All on Mon Aug 28 13:30:02 2017
    XPost: linux.debian.bugs.dist

    Am Montag, 28. August 2017, 09:23:11 CEST schrieb Julien Cristau:
    Control: tags -1 moreinfo

    On 08/25/2017 11:10 PM, Eggert Ehmke wrote:
    Package: xorg



    I upgraded a system from jessie to stretch. It is a kiosk system without
    a window manager that starts one single application directly via startx. The dedicated user could not start the session after the upgrade.



    With Debian jessie, there were no problems.



    I got these errors:

    Fatal server error:
    (EE) xf86OpenConsole: Cannot open virtual console 1 (Permission denied) (EE)
    (EE)
    Please consult the The X.Org Foundation support

    at http://wiki.x.org

    for help.

    (EE) Please also check the log file at "/home/arch/.local/share/xorg/Xorg.0.log" for additional information.
    (EE)
    (EE) Server terminated with error (1). Closing log file.
    xinit: giving up
    xinit: unable to connect to X server: Connection refused



    The solution was to issue this command:

    chmod ug+s /usr/lib/xorg/Xorg

    This is not a solution at all, it's opening a glaring security hold on
    your machine.

    Please show the full Xorg log file.

    I know that is not a good solution, but I had to keep the machine running. It is an isolated system with no other user interaction.

    Will get the log ASAP. I do not have permanently access to is so it can take some days.

    Regards
    Eggert

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From eggert@eehmke.de@21:1/5 to All on Wed Sep 6 00:00:02 2017
    XPost: linux.debian.bugs.dist

    This is a multi-part message in MIME format.

    I tried to reproduce the error. As a result to restart my service, I get this message:

    $ sudo systemctl status startkladde.service
    ● startkladde.service - Startkladde
    Loaded: loaded (/etc/systemd/system/startkladde.service; enabled; vendor preset:
    enabled)
    Active: failed (Result: exit-code) since Fri 2017-09-01 20:40:20 CEST; 27s ago
    Process: 16377 ExecStart=/usr/bin/sudo -u startkladde startx /usr/local/bin/ startkladde_wrapper (code=exited, status=1/FAILURE)
    Main PID: 16377 (code=exited, status=1/FAILURE)

    Sep 01 20:40:05 startkladde sudo[16377]: (EE) Please also check the log file at "/home/
    startkladde/.local/share/xorg/Xorg.0.log" for additional information.
    Sep 01 20:40:05 startkladde sudo[16377]: (EE)
    Sep 01 20:40:05 startkladde sudo[16377]: (EE) Server terminated with error (1). Closing log
    file.
    Sep 01 20:40:20 startkladde sudo[16377]: xinit: giving up
    Sep 01 20:40:20 startkladde sudo[16377]: xinit: unable to connect to X server: Connection
    refused
    Sep 01 20:40:20 startkladde sudo[16377]: xinit: server error
    Sep 01 20:40:20 startkladde systemd[1]: startkladde.service: Main process exited,
    code=exited, status=1/FAILURE
    Sep 01 20:40:20 startkladde systemd[1]: Failed to start Startkladde.
    Sep 01 20:40:20 startkladde systemd[1]: startkladde.service: Unit entered failed state.
    Sep 01 20:40:20 startkladde systemd[1]: startkladde.service: Failed with result 'exit-code'.

    File Xorg.0.log is attached. I guess the fault is here:
    Fatal server error:
    [ 9889.428] (EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied)

    This system has be fresh upgraded from Debian 8.9 to 9.1. Before the upgrade this was
    working.


    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
    <html><head><meta name="qrichtext" content="1" /><style type="text/css">
    p, li { white-space: pre-wrap; }
    </style></head><body style=" font-family:'Noto Sans'; font-size:10pt; font-weight:400; font-style:normal;">
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I tried to reproduce the error. As a result to restart my service, I get this message:</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">$ sudo systemctl status startkladde.service </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">● startkladde.service - Startkladde </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> Loaded: loaded (/etc/systemd/system/startkladde.service; enabled; vendor preset: enabled) </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> Active: failed (Result: exit-code) since Fri 2017-09-01 20:40:20 CEST; 27s ago </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> Process: 16377 ExecStart=/usr/bin/sudo -u startkladde startx /usr/local/bin/startkladde_wrapper (code=exited, status=
    1/FAILURE) </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Main PID: 16377 (code=exited, status=1/FAILURE) </p>
    <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Sep 01 20:40:05 startkladde sudo[16377]: (EE) Please also check the log file at &quot;/home/startkladde/.local/share/
    xorg/Xorg.0.log&quot; for additional information. </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Sep 01 20:40:05 startkladde sudo[16377]: (EE) </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Sep 01 20:40:05 startkladde sudo[16377]: (EE) Server terminated with error (1). Closing log file. </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Sep 01 20:40:20 startkladde sudo[16377]: xinit: giving up </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Sep 01 20:40:20 startkladde sudo[16377]: xinit: unable to connect to X server: Connection refused </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Sep 01 20:40:20 startkladde sudo[16377]: xinit: server error </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Sep 01 20:40:20 startkladde systemd[1]: startkladde.service: Main process exited, code=exited, status=1/FAILURE </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Sep 01 20:40:20 startkladde systemd[1]: Failed to start Startkladde. </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Sep 01 20:40:20 startkladde systemd[1]: startkladde.service: Unit entered failed state. </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Sep 01 20:40:20 startkladde systemd[1]: startkladde.service: Failed with result 'exit-code'.</p>
    <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">File Xorg.0.log is attached. I guess the fault is here:</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Fatal server error:</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">[ 9889.428] (EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied)</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">This system has be fresh upgraded from Debian 8.9 to 9.1. Before the upgrade this was working.</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> </p></body></html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)