Closed ovn76g closed 3 months ago
Have you installed Ubuntu in a virtual or a physical environment ?
Hello , on a physical PC (a lenovo mq75 ).
It should work. This piece of code is responsible for installing the autostart of Pandora on getty1 :
# Start Pandora-box on getty1 at boot
mkdir -p /etc/systemd/system/getty@tty1.service.d
echo "[Service]" > /etc/systemd/system/getty@tty1.service.d/override.conf
echo "ExecStart=" >> /etc/systemd/system/getty@tty1.service.d/override.conf
echo "ExecStart=-/sbin/agetty --autologin pandora --noclear %I $TERM" >> /etc/systemd/system/getty@tty1.service.d/override.conf
Could you take a look at /var/log/syslog
and /var/log/dmesg
for errors ?
Hello, there's some related error on the syslog about the getty service being started and stopped. Here's an except
May 17 11:21:40 stationblanche01 systemd[1]: getty@tty1.service: Deactivated successfully.
May 17 11:21:40 stationblanche01 systemd[1]: getty@tty1.service: Scheduled restart job, restart counter is at 1.
May 17 11:21:40 stationblanche01 systemd[1]: Stopped Getty on tty1.
May 17 11:21:40 stationblanche01 systemd[1]: Started Getty on tty1.
May 17 11:21:40 stationblanche01 cloud-init[844]: Cloud-init v. 24.1.3-0ubuntu1~22.04.1 running 'modules:config' at Fri, 17 May 2024 09:21:40 +0000. Up 32.78 seconds.
May 17 11:21:41 stationblanche01 systemd[1]: Finished Apply the settings specified in cloud-config.
May 17 11:21:45 stationblanche01 systemd[1]: getty@tty1.service: Deactivated successfully.
May 17 11:21:45 stationblanche01 systemd[1]: getty@tty1.service: Scheduled restart job, restart counter is at 2.
May 17 11:21:45 stationblanche01 systemd[1]: Stopped Getty on tty1.
May 17 11:21:45 stationblanche01 systemd[1]: Started Getty on tty1.
May 17 11:21:46 stationblanche01 snapd[711]: daemon.go:519: gracefully waiting for running hooks
May 17 11:21:46 stationblanche01 snapd[711]: daemon.go:521: done waiting for running hooks
May 17 11:21:47 stationblanche01 freshclam[696]: Fri May 17 11:21:47 2024 -> Database test passed.
May 17 11:21:47 stationblanche01 freshclam[696]: Fri May 17 11:21:47 2024 -> daily.cld updated (version: 27278, sigs: 2061328, f-level: 90, builder: raynman)
May 17 11:21:47 stationblanche01 freshclam[696]: Fri May 17 11:21:47 2024 -> main.cvd database is up-to-date (version: 62, sigs: 6647427, f-level: 90, builder: sigmgr)
May 17 11:21:47 stationblanche01 freshclam[696]: Fri May 17 11:21:47 2024 -> bytecode.cvd database is up-to-date (version: 335, sigs: 86, f-level: 90, builder: raynman)
May 17 11:21:47 stationblanche01 freshclam[696]: Fri May 17 11:21:47 2024 -> ^Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.ctl: No such file or directory
May 17 11:21:48 stationblanche01 systemd[1]: Started Pandora service.
May 17 11:21:48 stationblanche01 systemd[1]: Reached target Multi-User System.
May 17 11:21:48 stationblanche01 systemd[1]: Reached target Graphical Interface.
May 17 11:21:48 stationblanche01 systemd[1]: Starting Execute cloud user/final scripts...
May 17 11:21:48 stationblanche01 systemd[1]: Starting Record Runlevel Change in UTMP...
May 17 11:21:48 stationblanche01 systemd[1]: systemd-update-utmp-runlevel.service: Deactivated successfully.
May 17 11:21:48 stationblanche01 systemd[1]: Finished Record Runlevel Change in UTMP.
May 17 11:21:48 stationblanche01 cloud-init[977]: Cloud-init v. 24.1.3-0ubuntu1~22.04.1 running 'modules:final' at Fri, 17 May 2024 09:21:48 +0000. Up 40.71 seconds.
May 17 11:21:49 stationblanche01 snapd[711]: overlord.go:515: Released state lock file
May 17 11:21:49 stationblanche01 snapd[711]: daemon stop requested to wait for socket activation
May 17 11:21:49 stationblanche01 systemd[1]: snapd.service: Deactivated successfully.
May 17 11:21:50 stationblanche01 systemd[1]: dmesg.service: Deactivated successfully.
May 17 11:21:50 stationblanche01 systemd[1]: getty@tty1.service: Deactivated successfully.
May 17 11:21:50 stationblanche01 systemd[1]: getty@tty1.service: Scheduled restart job, restart counter is at 3.
May 17 11:21:50 stationblanche01 systemd[1]: Stopped Getty on tty1.
May 17 11:21:50 stationblanche01 systemd[1]: Started Getty on tty1.
May 17 11:21:53 stationblanche01 systemd[1]: systemd-fsckd.service: Deactivated successfully.
May 17 11:21:54 stationblanche01 cloud-init[977]: Cloud-init v. 24.1.3-0ubuntu1~22.04.1 finished at Fri, 17 May 2024 09:21:53 +0000. Datasource DataSourceNone. Up 45.81 seconds
May 17 11:21:54 stationblanche01 cloud-init[977]: 2024-05-17 09:21:54,012 - cc_final_message.py[WARNING]: Used fallback datasource
May 17 11:21:54 stationblanche01 systemd[1]: Finished Execute cloud user/final scripts.
May 17 11:21:54 stationblanche01 systemd[1]: Reached target Cloud-init target.
May 17 11:21:54 stationblanche01 systemd[1]: Startup finished in 7.151s (kernel) + 38.790s (userspace) = 45.941s.
May 17 11:21:54 stationblanche01 systemd[1]: getty@tty1.service: Deactivated successfully.
May 17 11:21:54 stationblanche01 systemd[1]: getty@tty1.service: Scheduled restart job, restart counter is at 4.
May 17 11:21:54 stationblanche01 systemd[1]: Stopped Getty on tty1.
May 17 11:21:54 stationblanche01 systemd[1]: Started Getty on tty1.
May 17 11:21:54 stationblanche01 systemd[1]: getty@tty1.service: Deactivated successfully.
May 17 11:21:54 stationblanche01 systemd[1]: getty@tty1.service: Scheduled restart job, restart counter is at 5.
May 17 11:21:54 stationblanche01 systemd[1]: Stopped Getty on tty1.
May 17 11:21:54 stationblanche01 systemd[1]: Started Getty on tty1.
May 17 11:21:54 stationblanche01 systemd[1]: getty@tty1.service: Deactivated successfully.
May 17 11:21:54 stationblanche01 systemd[1]: getty@tty1.service: Scheduled restart job, restart counter is at 6.
May 17 11:21:54 stationblanche01 systemd[1]: Stopped Getty on tty1.
May 17 11:21:54 stationblanche01 systemd[1]: Started Getty on tty1.
May 17 11:21:54 stationblanche01 systemd[1]: getty@tty1.service: Deactivated successfully.
May 17 11:21:54 stationblanche01 systemd[1]: getty@tty1.service: Scheduled restart job, restart counter is at 7.
May 17 11:21:54 stationblanche01 systemd[1]: Stopped Getty on tty1.
May 17 11:21:54 stationblanche01 systemd[1]: Started Getty on tty1.
May 17 11:21:54 stationblanche01 systemd[1]: getty@tty1.service: Deactivated successfully.
May 17 11:21:54 stationblanche01 systemd[1]: getty@tty1.service: Scheduled restart job, restart counter is at 8.
May 17 11:21:54 stationblanche01 systemd[1]: Stopped Getty on tty1.
May 17 11:21:54 stationblanche01 systemd[1]: getty@tty1.service: Start request repeated too quickly.
May 17 11:21:54 stationblanche01 systemd[1]: getty@tty1.service: Failed with result 'start-limit-hit'.
May 17 11:21:54 stationblanche01 systemd[1]: Failed to start Getty on tty1.
The override.conf file looks fine
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin pandora --noclear %I xterm
So it seems that agetty
is not able to start pandora.
What append if you login with the pandora user ?
Does pandora-box starts ?
It looks like there is no user "pandora" in my system. I've checked on /etc/passwd, /etc/shadow and getent passwd.
This is a mistake in the installation procedure. You have to create a user called "pandora" during the installation of the operating system. To fix this, change the username in the file override.conf to the one you have created.
This is it. My bad, I'm ashamed as it was the fourth line of the installation guide. I don't know how I managed to read but not doing it...
Hello,
I test pandora-box on ubuntu server 22.04 with the ubuntu model for the ini file.
My problem is that the system does not auto start i have a blinking cursor. i have to switch on another console (CTRL ALT F2) sign with the credential, and the application start.
Do i miss something ?
Thank