You are not logged in.

#1 2013-10-10 12:00:18

Anoniem
Member
Registered: 2013-07-17
Posts: 43

[SOLVED] Broken SLiM after pacman -Syu

I know that it's good to understand the rolling release approach from ArchLinux and that an update may have unforeseen consequences.
Yesterday I wasn't that smart and updated my system using pacman -Syu. I'm having the system with SLiM and Cinnamon on top. Now
when I login I get the message: "failed to execute login command".

I already googled the error (SLIM+error) here: https://www.google.nl/#q=slim%20error%2 … %20command
And I've checked .xinitrc and slim.conf. everything looks just fine.

When I put in my ArchLinux cd, boot from it, /mnt my /dev/SDA1, bash and try to see what error I get from the system then I see a message
about PulseAudio (but guess my check was useless wink). Anyway, my Pacman log is down here, my log from SLiM and Xorg.

Pacman:
http://pastebin.com/Pe03DVNm

Xorg.0:
http://pastebin.com/AhVnQvex

SLiM:
http://pastebin.com/3LdcUBPc

Am I that stupid? Guess so but well, who can help me out without reinstalling my system?
My image I built with CloneZilla was corrupted so I'm kind of lost for now.

Last edited by Anoniem (2013-10-14 10:00:17)

Offline

#2 2013-10-10 12:41:21

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [SOLVED] Broken SLiM after pacman -Syu

I fail to see how your login manager not working = bricked, unless you have a very strange definition of what bricked is..

Slim has changed the way it handles sessions. make sure you've merged your pacnew files, and, unless you want to be able to switch between multiple sessions, comment out the sessiondir line, it only serves to complicate things.

Could you post your .xinitrc and resultant /etc/slim.conf.

Last edited by WorMzy (2013-10-10 12:41:33)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2013-10-10 13:05:06

Anoniem
Member
Registered: 2013-07-17
Posts: 43

Re: [SOLVED] Broken SLiM after pacman -Syu

.xinitrc:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

exec gnome-session-cinnamon
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice

slim.conf:

# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path        /bin:/usr/bin:/usr/local/bin
default_xserver     /usr/bin/X
xserver_arguments -nolisten tcp vt07

# Commands for halt, login, etc.
halt_cmd            /sbin/shutdown -h now
reboot_cmd          /sbin/shutdown -r now
console_cmd         /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd        /usr/sbin/suspend

# Full path to the xauth binary
xauth_path         /usr/bin/xauth 

# Xauth file for server
authfile           /var/run/slim.auth


# Activate numlock when slim starts. Valid values: on|off
# numlock             on

# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor          false

# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd           exec /bin/sh - ~/.xinitrc %session
login_cmd           exec /bin/bash -login ~/.xinitrc %session

# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
# sessionstart_cmd	some command
# sessionstop_cmd	some command

# Start in daemon mode. Valid values: yes | no
# Note that this can be overriden by the command line
# options "-d" and "-nodaemon"
# daemon	yes

# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions            xfce4,icewm-session,wmaker,blackbox

# Executed when pressing F11 (requires imagemagick)
screenshot_cmd      import -window root /slim.png

# welcome message. Available variables: %host, %domain
welcome_msg         Welcome to %host

# Session message. Prepended to the session name when pressing F1
# session_msg         Session: 

# shutdown / reboot messages
shutdown_msg       The system is halting...
reboot_msg         The system is rebooting...

# default user, leave blank or remove this line
# for avoid pre-loading the username.
default_user        farid

# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
#focus_password      no

# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
auto_login          no


# current theme, use comma separated list to specify a set to 
# randomly choose from
current_theme       archlinux

# Lock file
lockfile            /var/lock/slim.lock

# Log file
logfile             /var/log/slim.log

Offline

#4 2013-10-10 13:39:32

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,042

Re: [SOLVED] Broken SLiM after pacman -Syu

Your slim.conf is old. You should have a file at /etc/slim.conf.pacnew. Do a diff between that file and the original to see what changed. Also check out the pacdiff program that comes with pacman.

Pay attention during your pacman updates to watch for info on pacnew and pacsave files.

Last edited by jakobcreutzfeldt (2013-10-10 13:40:04)

Offline

#5 2013-10-10 13:56:52

cookies
Member
Registered: 2013-01-17
Posts: 253

Re: [SOLVED] Broken SLiM after pacman -Syu

FYI: Since you just have one exec line in your .xinitrc, it does not really matter if you use "sessions" or "sessiondir" in your slim.conf (it only matters if you have some case-block (or if/else) in your .xinitrc that has to choose the right DE/WM/whatever). If you use "sessiondir", slim takes session names from the .desktop files in sessiondir, if you use "sessions", you have to name them yourself.

Slim itself is starting and let's you enter your username and password, the only thing that does not work is logging in, right?

Have you tried running slim's login_cmd from the shell (you can leave out the "%session" part, you don't care about it in your .xinitrc anyway)? Also, what's in your /etc/shells? Does the journal have any additional info?

Edit: https://bugs.archlinux.org/task/37200, so, x64_86 or i686?

Last edited by cookies (2013-10-10 14:08:18)

Offline

#6 2013-10-10 17:01:09

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Broken SLiM after pacman -Syu

WorMzy wrote:

I fail to see how your login manager not working = bricked, unless you have a very strange definition of what bricked is.


Yes, please edit your first post and change your title to one that actually reflects your problem: bricked implies something else altogether.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2013-10-10 21:09:46

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

Re: [SOLVED] Broken SLiM after pacman -Syu

Experiencing same problem.

My .xinitrc is a simple systemd --user with few environment variables defined before.

In slim.log I see

slim: waiting for X server to begin accepting connections.
slim: unexpected signal 15
...
slim: pam_authentication(): Authentication failure

Update:
it's something related to systemd. Running session without systemd works

Last edited by eDio (2013-10-10 21:21:07)

Offline

#8 2013-10-11 06:38:18

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

Re: [SOLVED] Broken SLiM after pacman -Syu

Try lightdm instead of slim, I think the problem might by your slim.


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

#9 2013-10-11 07:00:17

Anoniem
Member
Registered: 2013-07-17
Posts: 43

Re: [SOLVED] Broken SLiM after pacman -Syu

eDio wrote:

Experiencing same problem.

Update:
it's something related to systemd. Running session without systemd works

Any way of solving this?

jrussell wrote:

Try lightdm instead of slim, I think the problem might by your slim.

But I like SLiM

Last edited by Anoniem (2013-10-11 12:12:07)

Offline

#10 2013-10-12 09:08:00

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

Re: [SOLVED] Broken SLiM after pacman -Syu

Anoniem wrote:

Any way of solving this?

Since I do not use any specific DE, I just decided not to use systemd for managing my session (by the way, instead of dozen of files I had before, I have small and easy to read .xinitrc now. Who needs that piece of ... systemd after that?).

AFAIK, gnome highly relates on systemd, and switching login manager could solve your problem. If it is not an option for you, you have to make slim to start systemd user session before launching gnome somehow.
This may help you
https://bbs.archlinux.org/viewtopic.php?id=167115

Offline

#11 2013-10-12 11:02:18

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: [SOLVED] Broken SLiM after pacman -Syu

My slim.conf is a little different than yours.  FWIW, I am using XFCE.

# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path        /bin:/usr/bin:/usr/local/bin
default_xserver     /usr/bin/X
xserver_arguments -nolisten tcp vt07

# Commands for halt, login, etc.
halt_cmd            /sbin/shutdown -h now
reboot_cmd          /sbin/shutdown -r now
console_cmd         /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd        /usr/sbin/suspend

# Full path to the xauth binary
xauth_path         /usr/bin/xauth 

# Xauth file for server
authfile           /var/run/slim.auth


# Activate numlock when slim starts. Valid values: on|off
# numlock             on

# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor          false

# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd           exec /bin/sh - ~/.xinitrc %session
login_cmd           exec /bin/bash -login ~/.xinitrc %session

# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
# sessionstart_cmd	some command
# sessionstop_cmd	some command

# Start in daemon mode. Valid values: yes | no
# Note that this can be overriden by the command line
# options "-d" and "-nodaemon"
# daemon	yes

# Set directory that contains the xsessions.
# slim reads xsesion from this directory, and be able to select.
sessiondir            /usr/share/xsessions/

# Executed when pressing F11 (requires imagemagick)
screenshot_cmd      import -window root /slim.png

# welcome message. Available variables: %host, %domain
welcome_msg         Welcome to %host

# Session message. Prepended to the session name when pressing F1
# session_msg         Session: 

# shutdown / reboot messages
shutdown_msg       The system is halting...
reboot_msg         The system is rebooting...

# default user, leave blank or remove this line
# for avoid pre-loading the username.
#default_user        simone

# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
#focus_password      no

# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
#auto_login          no


# current theme, use comma separated list to specify a set to 
# randomly choose from
current_theme       default

# Lock file
lockfile            /var/lock/slim.lock

# Log file
logfile             /var/log/slim.log

Offline

#12 2013-10-12 21:01:31

Anoniem
Member
Registered: 2013-07-17
Posts: 43

Re: [SOLVED] Broken SLiM after pacman -Syu

Today I decided to reinstall my whole system, but again some issue with SLiM. Is it a plan to downgrade SLiM?
Or does anyone have another suggestion? Having a new slim.conf, new .xinitrc. Systemd is like killing this? Tried
to find out the things mentioned here (to delay) but without any luck: https://bbs.archlinux.org/viewtopic.php?id=167115&p=4

Offline

#13 2013-10-12 21:11:49

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [SOLVED] Broken SLiM after pacman -Syu

Slim is still working perfectly for me. You're not using a systemd --user session, as far as I can tell, so I don't see how that would be the root of your problem.

Can you startx from a TTY?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#14 2013-10-12 21:27:10

Anoniem
Member
Registered: 2013-07-17
Posts: 43

Re: [SOLVED] Broken SLiM after pacman -Syu

WorMzy wrote:

Slim is still working perfectly for me. You're not using a systemd --user session, as far as I can tell, so I don't see how that would be the root of your problem.

Thought I'd read that from eDio.

WorMzy wrote:

Can you startx from a TTY?

Yes I can, it ends with:

Loading extension GLX
waiting for X server to shut down (EE) server terminated succesfully (0). Cloning log file. server lost 

Offline

#15 2013-10-12 22:08:52

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [SOLVED] Broken SLiM after pacman -Syu

But does it do that without actually giving you an X display? Or is that what it says after you manually exit cinnamon?

This topic may be relevant: https://bbs.archlinux.org/viewtopic.php?id=171136

Last edited by WorMzy (2013-10-12 22:33:01)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#16 2013-10-13 18:52:55

Andreaskem
Member
Registered: 2013-10-13
Posts: 67

Re: [SOLVED] Broken SLiM after pacman -Syu

Anoniem wrote:

.xinitrc:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

exec gnome-session-cinnamon
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice

Does gnome-session-cinnamon even exist? Isn't cinnamon independent of gnome now? The cinnamon-session package does not have this command, it has /usr/bin/cinnamon-session, however.

Yes, it is mentioned in the Wiki.

Last edited by Andreaskem (2013-10-13 19:02:10)

Offline

#17 2013-10-14 10:00:02

Anoniem
Member
Registered: 2013-07-17
Posts: 43

Re: [SOLVED] Broken SLiM after pacman -Syu

I really feel like a dork, but that worked like a charm. It has been changed, it's working now.

Offline

Board footer

Powered by FluxBB