Solved black screen when x starts after upgrade

Today upgraded FreeBSD with "pkg update && pkg upgrade", and after reboot, when X should start I only see a black screen. The terminal tty appear on the login: screen and just when xfce4 should start it goes black. Can't go to other tty with Control+Alt+Fx like I do with other oses.
Host is Windows 11 64 bits, with Virtualbox 6.1.36
Guest is FreeBSD, i think FreeBSD-CURRENT.

How can I debug this issue? I've made snapshots so I can roll back at any time.
 
same issue happened to me but i had before updated freebsd and then the packages on two VMs on virtualbox freebsd version 13.0 p11 to p12 and freebsd version 13.1 to 13.1 p1 and after rebooted would be fine but after follow softwares update there was blank screen .first VM is with Kde plasma other with gnome during sofware' updates there was an issue with openldap.it's only thing i observed,look didnt deinstall old version and wrote that's a problem with same location of software,but I followed to upgrade after interruped with sudo pkg upgrade again and finalized all updates without others errors,and rebooted.blank screen both VMs.i tried differents ways to resolve without solution.to verify was an vbox issue a updated other VM on vmware player and happened again so it's not vbox guest additions updated problem but something else.freebsd 13.1 p1 enlightenment like DE.
 

Attachments

This issue also once occured to me when I mixed up pkg and ports installations.
I thought it would be a good idea to built graphics-card driver via ports
but installed xorg by pkg.
It works - until you upgrade (pkg only).
Then you've upgraded not both.
Such an inconsistency can lead to something not working anymore, like X.
 
Login from the console, ps ax to see if X is running. Have a look at X logs. Try to run X manually? Do the logs point to anything suspicious?

If X itself starts, try to start a window manager or anything else on it (in bash, DISPLAY=:0 xeyes)
 
Thanks for the suggestions. I can login through ssh by windows terminal. I tried to reinstall packages with sudo pkg upgrade -f but it is the same. I should try disabling display manager aka lightdm, and look if I can use console directly. I can't use startx by remote in windows terminal, if there are some others things to do to obtain infos about this issue in the system I appreciate your smart inputs. Thanks in advance. Anyway I think is useful to know is not strictly concerned about virtualization how I have problem after updates in vmware player using open-vm-tools and vbox with guest additions :-(
 

Attachments

No you didn't. You upgraded your software, not FreeBSD.



uname -a You probably shouldn't be running CURRENT.
This is the version before upgrading:
Code:
% uname -a
FreeBSD freebsd 13.0-RELEASE-p3 FreeBSD 13.0-RELEASE-p3 #0: Tue Jun 29 19:46:20 UTC 2021     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
 
Ran these commands and everything went good, looks like the system was upgraded from 13.0-RELEASE-p3 to 13.0-RELEASE-p12?
Code:
# freebsd-update fetch
# freebsd-update install
# reboot
% uname -a
FreeBSD freebsd 13.0-RELEASE-p12 FreeBSD 13.0-RELEASE-p12 #0: Tue Sep 12 19:33:31 UTC 2023     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
How do I do a proper FreeBSD full upgrade to recommended version, both the system and packages/ports?
 
The same here is more than a week that is broken:


Here my info:
vb00.png


RC.CONF
vb01.png


Try to start non-customized session:
vb02.png


Get a Blank Screen, need to force a restart
vb03.png


Not an issue recorded anywhere...
vb04.png
 
Try again with a custom session
vb05.png


Another black screen (of death)
vb06.png


Still not an hints...
vb07.png


The culprit?
vb08.png


It is difficult to troubleshoot an issue when I don't find or don't know where to looking for!

The virtualbox-ose-additions has bumped to the right version of Xorg and also received an update last week bust still doesn't work on my end, and looks that I am not alone.

Any idea on how to fix it or to file a meaningful bug report?

Thanks!!! ???
 
Login from the console, ps ax to see if X is running. Have a look at X logs. Try to run X manually? Do the logs point to anything suspicious?

If X itself starts, try to start a window manager or anything else on it (in bash, DISPLAY=:0 xeyes)

When I run startx I can't get into any serial consoles, I have to use Vbox UI to run a reboot or poweroff signal... ?
 
Well, I've followed the steps
Code:
# freebsd-update fetch
# freebsd-update install
# pkg update && pkg upgrade
# pkg-static upgrade -f
And still same thing, black screen just when it's meant to load X. Probably the same issue as freezr
How do I debug this?
 
bugzeo This is why I suggested to you at the beginning that you probably shouldn't be running CURRENT. That's the developer's version where changes happen frequently and no guarantee anything will work tomorrow. Most of us run RELEASE or sometimes STABLE.
 
Your original post said you were running CURRENT. I forgot you showed above you were running RELEASE.

You showed above that you ran update and install. However, did you reboot after installing as the Handbook says?
 
drhowarddrfine yes I did reboot.
Code:
# cat /usr/local/etc/pkg/repos/FreeBSD.conf
# $FreeBSD$
#
# To disable this repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file:
#
#   mkdir -p /usr/local/etc/pkg/repos
#   echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#

FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
 
We're on 13.1-RELEASE now but that shouldn't be an issue. You are running FreeBSD on a VM and a window manager I dont' use so I can't help. I'm gone for the day.
 
how to I switch from 13.0-RELEASE-p12 to RELEASE or STABLE? The HandBook doesn't mention anything about that
13.0-RELEASE-p12 is obviously a RELEASE, but not the latest one, and it will be EOL soon. You should upgrade to 13.1-RELEASE, which is the latest.
Tracking STABLE (or CURRENT) requires building the OS from source regularly, that's probably not what you want.

freebsd-update fetch && freebsd-update install applies available patches for your release, but doesn't upgrade to the next release.

The handbook does explain how to upgrade to a more recent release, see https://docs.freebsd.org/en/books/handbook/cutting-edge/#freebsdupdate-upgrade
handbook said:
The following command, when run on a FreeBSD 9.0 system, will upgrade it to FreeBSD 9.1:
# freebsd-update -r 9.1-RELEASE upgrade
 
i found now a partial and temporary solution in Vmware player VM freebsd 13.1-p1, after i'm able to ssh'ing inside VM and launch Xorg :0 -configure i tryed to setting mouse keyboard and videocard ,vmmouse like mouse , keyboard kbd with variant and layout,and 'cos vmware card didn't work ,before i prove with scfb and then modesetting,this one look good ..."sudo cp /root/xorg.conf.new /etc/X11/xorg.conf" i disabled lighdm and gdm working with enlightenment and gnome like DE, and after reboot look i can login with console and launch startx, i wrote .xinitrc with "exec --dbus-launch --exit-with-session enlightenment_start",sure one can also put exec gnome-session or startxfce4 if we need, it's not like use vmware 3D driver but can use resolution 1920x1080 and do my stuff again waiting for a solution... :-/
 

Attachments

  • FreeBSD 13.1 64-bit - VMware Workstation 16 Player (Non-commercial use only) 22_08_2022 23_15_03.png
    FreeBSD 13.1 64-bit - VMware Workstation 16 Player (Non-commercial use only) 22_08_2022 23_15_03.png
    585.5 KB · Views: 171
This is what shows before upgrading:
Code:
# uname -a
FreeBSD freebsd 13.0-RELEASE-p12 FreeBSD 13.0-RELEASE-p12 #0: Tue Sep 12 19:33:31 UTC 2023     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
 
Back
Top