Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
[Solved] headless debian 11 to 12 upgrade - no console login
[Solved] headless debian 11 to 12 upgrade - no console login
I upgraded my headless server from Debian 11 to 12 and it went fine. When I rebooted it.
It says:
/dev/mapper/server--vg-root: clean and some numbers etc.
But no login screen.
I thought the upgrade messed up but I can SSH into the server with no issues. Is there any way I can bring the console back in case I ever need to login to it.
It says:
/dev/mapper/server--vg-root: clean and some numbers etc.
But no login screen.
I thought the upgrade messed up but I can SSH into the server with no issues. Is there any way I can bring the console back in case I ever need to login to it.
Last edited by debian1 on 2023-06-14 18:48, edited 1 time in total.
-
- Posts: 444
- Joined: 2023-02-07 13:35
- Been thanked: 105 times
Re: headless debian 11 to 12 upgrade - no console login
This is far too vague. Please provide (much) more detail. Did you follow the (draft) upgrade guide? Have you checked the systemd journal? If you can't make any sense of it then share it here. Also, Debian 12 doesn't exist until 2023-06-10.
Check
Code: Select all
systemctl status getty@tty1
Jeder nach seinen Fähigkeiten, jedem nach seinen Bedürfnissen.
Re: headless debian 11 to 12 upgrade - no console login
I followed this https://wiki.debian.org/DebianUpgrade
I checked the status and its active and running
/var/log/syslog shows nothing weird. journalctl shows no errors
I did try ATL+CTRL+F1 etc as well. It's like it's frozen
journalctl -u getty@tty1 shows this
I checked the status and its active and running
/var/log/syslog shows nothing weird. journalctl shows no errors
I did try ATL+CTRL+F1 etc as well. It's like it's frozen
journalctl -u getty@tty1 shows this
Code: Select all
Started getty@tty1.service - Getty on tty1.
Stopping getty@tty1.service - Getty on tty1...
getty@tty1.service: Deactivated successfully.
Stopped getty@tty1.service - Getty on tty1.
Last edited by debian1 on 2023-06-08 21:52, edited 1 time in total.
-
- Posts: 444
- Joined: 2023-02-07 13:35
- Been thanked: 105 times
Re: headless debian 11 to 12 upgrade - no console login
Sounds like your graphics driver isn't loaded. Does adding the systemd.unit=multi-user.target kernel parameter get you to a console login?
If not then post the output of
If not then post the output of
Code: Select all
lspci -knn | grep -iA3 'vga\|3d\|video'
Jeder nach seinen Fähigkeiten, jedem nach seinen Bedürfnissen.
Re: headless debian 11 to 12 upgrade - no console login
Sorry, I do not know where to add the parameter.
The output:
I will reinstall the GPU drivers and see if that resolves it.
The output:
It should be using the GPU.01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107GL [Quadro P400] [10de:1cb3] (rev a1)
Subsystem: Hewlett-Packard Company GP107GL [Quadro P400] [103c:11be]
Kernel driver in use: nvidia
Kernel modules: nvidia
I will reinstall the GPU drivers and see if that resolves it.
Re: headless debian 11 to 12 upgrade - no console login
The CUDA update broke the crypttab / LUKS auto unlock on. I had to fix it by going to https://askubuntu.com/questions/286284/ ... -dev-mappe
I have spend too much time trying to resolve this issue. I will wait for bookworm to become stable and reinstall the OS on the server.
It doesn't have much on it anyway as it mainly runs docker.
Thank you for the help Random_Troll.
I have spend too much time trying to resolve this issue. I will wait for bookworm to become stable and reinstall the OS on the server.
It doesn't have much on it anyway as it mainly runs docker.
Thank you for the help Random_Troll.
Re: headless debian 11 to 12 upgrade - no console login
I rebuilt the server and I can confirm this happened again after I installed the nvidia drivers and rebooted.
I used the command
Guessing the nvidia drivers are not compatible with Debian 12. When I installed the nvidia container toolkit, the source list said it was not supported. I had to manually edit it.
This proves that it was nothing to do with Debian. It's just the drivers are probably not compatible yet.
I used the command
Code: Select all
sudo apt install nvidia-driver firmware-misc-nonfree
This proves that it was nothing to do with Debian. It's just the drivers are probably not compatible yet.
- sunrat
- Administrator
- Posts: 6412
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 116 times
- Been thanked: 462 times
Re: headless debian 11 to 12 upgrade - no console login
nvidia-driver is most definitely supported in Bookworm. Read the Release notes, particularly the section about the new non-free-firmware section of the repo.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Re: headless debian 11 to 12 upgrade - no console login
I get its supported but as soon as I installed on a fresh install and rebooted. Login console stopped working. Before the driver install, after the boot, the screen would stop and then refresh and show login. After the install of the nvidia drivers. The 2nd bit does not happen on the screen.
-
- Posts: 263
- Joined: 2023-03-02 05:26
- Location: USA
- Has thanked: 50 times
- Been thanked: 60 times
- Contact:
Re: headless debian 11 to 12 upgrade - no console login
NVIDIA has done a poor job integrating with the modern Linux graphics stack, which usually exposes a framebuffer device at /dev/fb0 (and should create multiple devices in accordance, /dev/fb1 /dev/fb2 etc...) NVIDIA does not want to support this, so they can maintain the ability to update drivers without a system restart. My guess is you don't use a display manager and are booting to TTY.debian1 wrote: ↑2023-06-12 06:28 I get its supported but as soon as I installed on a fresh install and rebooted. Login console stopped working. Before the driver install, after the boot, the screen would stop and then refresh and show login. After the install of the nvidia drivers. The 2nd bit does not happen on the screen.
Without an iGPU things work fine since I believe NVIDIA creates a (fake?) device to always display a console but with an iGPU and newer driver versions the console is actually only appearing on /dev/fb0, your iGPU!
You can easily test this by plugging your display into the iGPU ports on the motherboard and you should have a tty there. To continue using with the dGPU you should be able to disable integrated graphics in your UEFI settings. If you have no such option you could blacklist the kernel module (i915?) instead.
To continue using iGPU + dGPU you can use a display manager which will fix the issue. My guess is NVIDIA doesn't test on machines without display managers.
Edit: https://forums.developer.nvidia.com/t/u ... g/204068/8
Be seeing you...
Re: headless debian 11 to 12 upgrade - no console login
Thank you. I'll try the onboard GPU and then disable it via BIOS. Hopefully that works. If it doesn't, I'll just live with jot being able to login to the console.
-
- Posts: 263
- Joined: 2023-03-02 05:26
- Location: USA
- Has thanked: 50 times
- Been thanked: 60 times
- Contact:
Re: headless debian 11 to 12 upgrade - no console login
@debian1
Will you let us know if it worked please :).
Will you let us know if it worked please :).
Be seeing you...
Re: headless debian 11 to 12 upgrade - no console login
@CynicalDebian Thank you for the help. You pointed me in the right direction.
In the BIOS I disabled the onboard video and the TTY1 worked. I could see the console to login. To make sure this was the cause, I enabled the onboard video and exact same issue. Disabling it again, and I could see the console.
If anyone else has this issue, try disabling the onboard video via the BIOS and see if it helped.
In the BIOS I disabled the onboard video and the TTY1 worked. I could see the console to login. To make sure this was the cause, I enabled the onboard video and exact same issue. Disabling it again, and I could see the console.
If anyone else has this issue, try disabling the onboard video via the BIOS and see if it helped.
-
- Posts: 263
- Joined: 2023-03-02 05:26
- Location: USA
- Has thanked: 50 times
- Been thanked: 60 times
- Contact:
Re: headless debian 11 to 12 upgrade - no console login
@debian1
Glad I could help. ^_^
Please prefix the title of the post post [Solved] to help others find the post.
Glad I could help. ^_^
Please prefix the title of the post post [Solved] to help others find the post.
Be seeing you...