You are not logged in.

#1 2015-09-23 13:15:04

holycrap55
Member
Registered: 2015-09-23
Posts: 15

[SOLVED] Can't log-in into Arch(tty)

Hi everyone, earlier, I was trying to get conky to work as a replacement for i3bar. By following the user guide present on i3wm website, as I edited the i3 config and put the command to execute conky instead of i3status, the bar disappeared, I tried to run conky through terminal and I got some syntax errors, then I exited it. Then suddenly, I couldn't open terminal from keyboard anymore, I tried dmenu but, it didn't start either. Then I reverted the command to call i3status and refreshed i3. The bar wouldn't appear again and the keyboard shortcuts didn't work either. So I switched to tty2 (CTRL + ALT + F2)
Not inowing what to do, I pressed thee power button, and my laptop turned off. Now, when I started it, as I got to tty, I entered my username and password, but it return to the screen without any error. I don't know what caused this, I am afraid it might have broken my aystem. I don't know any other way to get in or fix this, I would be grateful for help.

Edit: I have tried putting some random username/password there and it returns "incorrect login"error, but returns to login screen without any error in case of my username/password.

Last edited by holycrap55 (2015-09-23 17:45:51)

Offline

#2 2015-09-23 13:19:08

ayekat
Member
Registered: 2011-01-17
Posts: 1,590

Re: [SOLVED] Can't log-in into Arch(tty)

holycrap55 wrote:

I entered my username and password, but it return to the screen without any error

To what "screen"? The login prompt?


pkgshackscfgblag

Offline

#3 2015-09-23 13:23:22

holycrap55
Member
Registered: 2015-09-23
Posts: 15

Re: [SOLVED] Can't log-in into Arch(tty)

ayekat wrote:
holycrap55 wrote:

I entered my username and password, but it return to the screen without any error

To what "screen"? The login prompt?

Yeah, login prompt (tty)
I have tried logging in from other ttys, but no success.

Offline

#4 2015-09-23 13:43:52

ayekat
Member
Registered: 2011-01-17
Posts: 1,590

Re: [SOLVED] Can't log-in into Arch(tty)

Can you log in as the root user?

If it kicks you back to the login screen without any error message (like "Login incorrect"), is it possible that you have modified your .profile/.bash_profile/.zwhatever file in some weird way (e.g. that it contains an "exit" at any point)?


pkgshackscfgblag

Offline

#5 2015-09-23 13:57:32

holycrap55
Member
Registered: 2015-09-23
Posts: 15

Re: [SOLVED] Can't log-in into Arch(tty)

No, I tried putting the username root and my own password, same happened. Or are you suggesting something else? (Sorry I am a bit of a newbie). And no I haven't made any recent changes to .bash_profile, or any such dotfiles.
I only get login incorrect error when I put some random combination.

Offline

#6 2015-09-23 13:59:22

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] Can't log-in into Arch(tty)

ayekat wrote:

If it kicks you back to the login screen without any error message (like "Login incorrect"), is it possible that you have modified your .profile/.bash_profile/.zwhatever file in some weird way (e.g. that it contains an "exit" at any point)?

Or the more common `exec startx`, which execs i3, which fails/exits and ends the login session. If you only have it configured to do this on $XDG_VTNR==1 (following the example in the wiki), simply using another tty would help (instead of a root login). Edit: you already tried other ttys...

If you can't log in, you can try booting into rescue.target or boot a live iso to do some repairs.

Last edited by Raynman (2015-09-23 14:07:28)

Offline

#7 2015-09-23 14:19:17

ayekat
Member
Registered: 2011-01-17
Posts: 1,590

Re: [SOLVED] Can't log-in into Arch(tty)


pkgshackscfgblag

Offline

#8 2015-09-23 14:29:34

holycrap55
Member
Registered: 2015-09-23
Posts: 15

Re: [SOLVED] Can't log-in into Arch(tty)

I tried restarting again and I noticed a line in systemd. I couldn't fully read it but it was something like

 
[FAILED!] Failed to start a simple wpa wireless connection
See systemctlxxxxxx for details 

Then I went ahead and repeated the login procedure and I got this

 
[OK] Stopped Getty on tty1
[OK] Started Getty on tty1
Stopping User Manager for UID 1000....
[OK] Stopped User Manager for UID 1000.
[OK] Removed slice user-1000.slice

The last line bugs me for some reason

Offline

#9 2015-09-23 14:30:51

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,547
Website

Re: [SOLVED] Can't log-in into Arch(tty)

Stop panicking.  Start fixing.  Follow Raynman's advice.

Also if you could tell us how you've set up X to start at login that would be helpful.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#10 2015-09-23 14:43:38

holycrap55
Member
Registered: 2015-09-23
Posts: 15

Re: [SOLVED] Can't log-in into Arch(tty)

ayekat wrote:

Yeah, it looks like that.

Trilby wrote:

Stop panicking.  Start fixing.  Follow Raynman's advice.

Also if you could tell us how you've set up X to start at login that would be helpful.

I am downloading the iso image right now. And there were just a few lines to start xrdb, xbindkeys, feh, exec i3 in my xinitrc. I can't remember using any other, sadly, I don't know any way to access that file either.

Offline

#11 2015-09-23 14:45:34

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,547
Website

Re: [SOLVED] Can't log-in into Arch(tty)

I didn't ask what was in xinitrc, but how you start X.  Did you follow the advice in the wiki to have X start at login?  Did you do so only on vt1 as advised in the wiki?  Did you do so for your regular user only or did you also try to set this up for root too?

Are you sure you installed archlinux and not some derivative distro?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#12 2015-09-23 14:58:33

holycrap55
Member
Registered: 2015-09-23
Posts: 15

Re: [SOLVED] Can't log-in into Arch(tty)

Oh sorry, my bad. I start it with startx. I didn't set it up to start automatically.
And I am using the distro downloaded from official site.
https://www.archlinux.org/download/ - Arch Linux 4.1.6-1-Arch

Offline

#13 2015-09-23 15:00:29

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,547
Website

Re: [SOLVED] Can't log-in into Arch(tty)

holycrap55 wrote:

I didn't set it up to start automatically.

Then how do/did you start it?  Did someone else set it up to start automatically for you?

We're trying to help, but to help we need to understand - and so far what you've shared doesn't add up.  Unless all this stuff about i3bar and conky was a red herring.  If you were never starting X at all, then your WM configuration can't be relevant.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#14 2015-09-23 15:16:33

holycrap55
Member
Registered: 2015-09-23
Posts: 15

Re: [SOLVED] Can't log-in into Arch(tty)

Trilby wrote:
holycrap55 wrote:

I didn't set it up to start automatically.

Then how do/did you start it?  Did someone else set it up to start automatically for you?

We're trying to help, but to help we need to understand - and so far what you've shared doesn't add up.  Unless all this stuff about i3bar and conky was a red herring.  If you were never starting X at all, then your WM configuration can't be relevant.

No, I never set it up to start automatically, it didn't start automatically.
First I log in to tty. Then I run X by using startx. That's it.
I used this to set it up: https://wiki.archlinux.org/index.php/Xinitrc
And I used conky and i3bar stuff because it happened while I was doing that. I thought that might have led to me being unable to login, or maybe it's because the way I shut my laptop down.
I apologize if I am not making any sense here. I am trying giving you my full cooperation.
Edit: I am using i3wm with Arch.

Last edited by holycrap55 (2015-09-23 15:17:47)

Offline

#15 2015-09-23 15:19:27

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,547
Website

Re: [SOLVED] Can't log-in into Arch(tty)

Ah, thanks, now it is making some sense.  All that conky stuff did mislead us (or me at least).  If you aren't even trying to start x that cannot possibly be relevant to why you can't log in.  You may have some other issues to patch up to get your conky/bar working the way you want, but failing to log in is a different issue that might be related to the report in the other thread.  And in that case some exploration from a rescue media would be the right approach (if rescue.target failed ... have you tried this).

Sorry if I was a bit forcefull, but sometimes the wrong information can be more of an impediment to troubleshooting than no information.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#16 2015-09-23 15:22:45

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] Can't log-in into Arch(tty)

Then it does appear very similar to what's described in the thread linked by ayekat. Did you also install updates before this reboot (I assume systemd-logind handled the power button and it was a clean shutdown -- not 100% clear on that)? Maybe you two can compare upgraded packages and start working from there.

Offline

#17 2015-09-23 15:38:51

holycrap55
Member
Registered: 2015-09-23
Posts: 15

Re: [SOLVED] Can't log-in into Arch(tty)

I rebooted and as grub prompt appeared, I pressed c and entered

systemd.unit=rescue.target 

Then I pressed escape and entered OS. It took me to same old login screen, Is this how I am supposed to do it?

Offline

#18 2015-09-23 15:40:13

holycrap55
Member
Registered: 2015-09-23
Posts: 15

Re: [SOLVED] Can't log-in into Arch(tty)

Raynman wrote:

Then it does appear very similar to what's described in the thread linked by ayekat. Did you also install updates before this reboot (I assume systemd-logind handled the power button and it was a clean shutdown -- not 100% clear on that)? Maybe you two can compare upgraded packages and start working from there.

No, I didn't install any updates. I just installed ncurses and conky before that.
Edit: I updated ncurses, if that's relevant.

Last edited by holycrap55 (2015-09-23 15:41:18)

Offline

#19 2015-09-23 15:42:31

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,547
Website

Re: [SOLVED] Can't log-in into Arch(tty)

holycrap55 wrote:

No, I didn't install any updates.... I updated ncurses, if that's relevant.

How?  Did you do a partial upgrade?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#20 2015-09-23 15:52:02

holycrap55
Member
Registered: 2015-09-23
Posts: 15

Re: [SOLVED] Can't log-in into Arch(tty)

No, I used

 sudo pacman -S ncurses 

I assume it was an update because it also mentioned new size when prompting to install the package
Before that, I used

 sudo pacman -S lib32-ncurses 

I installed these because of the library dependency for Conky.

Offline

#21 2015-09-23 15:59:15

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,892
Website

Re: [SOLVED] Can't log-in into Arch(tty)

holycrap55 wrote:

No, I used

 sudo pacman -S ncurses 

If you ran "pacman -Sy" or "pacman -Syy" at any point between your last "pacman -Syu" and this command, then you have performed a partial upgrade. Those are not supported.

Your next step would be to boot a liveCD and do a full system update (pacman -Syu) without chrooting in to your broken system (read up on pacman's '-r' flag for this purpose).


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

#22 2015-09-23 16:19:45

holycrap55
Member
Registered: 2015-09-23
Posts: 15

Re: [SOLVED] Can't log-in into Arch(tty)

WorMzy wrote:
holycrap55 wrote:

No, I used

 sudo pacman -S ncurses 

If you ran "pacman -Sy" or "pacman -Syy" at any point between your last "pacman -Syu" and this command, then you have performed a partial upgrade. Those are not supported.

Your next step would be to boot a liveCD and do a full system update (pacman -Syu) without chrooting in to your broken system (read up on pacman's '-r' flag for this purpose).

Yeah, I've done "pacman -Sy" a few times recently, I booted into live cd and did pacman -Syu. Should I reboot into my system now?

Offline

#23 2015-09-23 16:23:35

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,547
Website

Re: [SOLVED] Can't log-in into Arch(tty)

holycrap55 wrote:

Yeah, I've done "pacman -Sy" a few times recently

That is almost certainly the cause of the problems.  Please never do that again, read here for more.

holycrap55 wrote:

I booted into live cd and did pacman -Syu. Should I reboot into my system now?

Did you chroot into your system before running `pacman -Syu` or did you just update the live environment?  You need to either chroot then update within the chroot, or (perhaps) use pacman with the alternate root flag.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#24 2015-09-23 16:29:06

holycrap55
Member
Registered: 2015-09-23
Posts: 15

Re: [SOLVED] Can't log-in into Arch(tty)

Trilby wrote:
holycrap55 wrote:

Yeah, I've done "pacman -Sy" a few times recently

That is almost certainly the cause of the problems.  Please never do that again, read here for more.

holycrap55 wrote:

I booted into live cd and did pacman -Syu. Should I reboot into my system now?

Did you chroot into your system before running `pacman -Syu` or did you just update the live environment?  You need to either chroot then update within the chroot, or (perhaps) use pacman with the alternate root flag.

I updated the live environment. I will need to chroot into my system now.

Offline

#25 2015-09-23 16:37:16

holycrap55
Member
Registered: 2015-09-23
Posts: 15

Re: [SOLVED] Can't log-in into Arch(tty)

I restarted the computer and re-entered liveCD.
I did

lslblk
mkdir /mnt/arch
mount /dev/sda1 /mnt/arch
arch-chroot /mnt/arch

I get

/bin/sh: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

Then I get back to CLI.

Last edited by holycrap55 (2015-09-23 16:37:45)

Offline

Board footer

Powered by FluxBB