Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First Setup not running properly in another created admin user. #112

Open
ertaboy356b opened this issue Jan 31, 2023 · 6 comments
Open

First Setup not running properly in another created admin user. #112

ertaboy356b opened this issue Jan 31, 2023 · 6 comments
Assignees

Comments

@ertaboy356b
Copy link

First Setup is not 'installing' when ran on another created admin user.

Steps to reproduce.

  1. After Install, run First Setup on main user.
  2. After the First Setup did its thing, create new admin user.
  3. Login to that admin user.
  4. Since the newly created admin user didn't have apps or a flatpak repository, run First Setup again in that user.
  5. The First Setup will get stuck in Installing.
@mirkobrombin
Copy link
Member

Can you provide some logs?

@ertaboy356b
Copy link
Author

Hi please see terminal entries.

`shacheal@vanilla-thinkpad:~$ vanilla-first-setup
WARNING:FirstSetup::Builder:failed to create log file: /etc/vanilla/first-setup.log
WARNING:root:No log will be stored.
INFO:FirstSetup::Builder:Performing display-condition: lspci | grep -i '.* nvidia .*'
INFO:FirstSetup::Builder:Step nvidia skipped due to display-conditions
INFO:FirstSetup::Builder:Performing display-condition: grep 'hypervisor' /proc/cpuinfo
INFO:FirstSetup::Builder:Step vm skipped due to display-conditions
TypeError: Must be number, not NoneType
INFO:FirstSetup::Processor:processing the following commands:
export DEBIAN_FRONTEND=noninteractive
apt update
apt install -f
apt upgrade -y
apt install -y flatpak gnome-software-plugin-flatpak
!nextBoot flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
apt install -y software-properties-common
add-apt-repository --yes ppa:appimagelauncher-team/stable
apt install -y fuse3 libfuse2 appimagelauncher
!nextBoot flatpak install -y org.gnome.Calendar
!nextBoot flatpak install -y org.gnome.Characters || snap install gnome-characters
!nextBoot flatpak install -y org.gnome.Cheese || snap install cheese
!nextBoot flatpak install -y org.gnome.clocks || snap install gnome-clocks
!nextBoot flatpak install -y org.gnome.Connections
!nextBoot flatpak install -y org.gnome.Contacts || snap install gnome-contacts
!nextBoot flatpak install -y org.gnome.baobab
!nextBoot flatpak install -y org.gnome.Evince || snap install evince
!nextBoot flatpak install -y org.gnome.font-viewer
!nextBoot flatpak install -y org.gnome.eog || snap install eog
!nextBoot flatpak install -y org.gnome.Logs || snap install gnome-logs
!nextBoot flatpak install -y org.gnome.Maps
!nextBoot flatpak install -y org.gnome.TextEditor
!nextBoot flatpak install -y org.gnome.Weather || snap install gnome-weather
!nextBoot flatpak install -y com.usebottles.bottles
!nextBoot flatpak install -y com.heroicgameslauncher.hgl
!nextBoot flatpak install -y net.lutris.Lutris
!nextBoot flatpak install -y org.gnome.Boxes || snap install gnome-boxes
!nextBoot flatpak install -y org.gnome.DejaDup || snap install deja-dup
!nextBoot flatpak install -y com.github.tchx84.Flatseal
!nextBoot flatpak install -y fr.romainvigier.MetadataCleaner
!nextBoot flatpak install -y com.github.flxzt.rnote
!nextBoot flatpak install -y de.haeckerfelix.Shortwave || snap install shortwave
!nextBoot flatpak install -y org.gnome.SoundRecorder
apt install -y timeshift
apt install -y ubuntu-restricted-addons ubuntu-restricted-extras
apt remove -y apport
systemctl disable apport.service || true
apt update
apt install -f
Traceback (most recent call last):
File "/usr/share/org.vanillaos.FirstSetup/vanilla_first_setup/window.py", line 153, in __on_page_changed
res = Processor.get_setup_commands(
File "/usr/share/org.vanillaos.FirstSetup/vanilla_first_setup/utils/processor.py", line 66, in get_setup_commands
with open(next_boot_autostart_path, "w") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/shacheal/.config/autostart/org.vanillaos.FirstSetup.nextBoot.desktop'

(vanilla-first-setup:58289): Adwaita-CRITICAL **: 22:27:19.408: adw_carousel_get_nth_page: assertion 'n < adw_carousel_get_n_pages (self)' failed`

@mirkobrombin mirkobrombin self-assigned this Jan 31, 2023
@mirkobrombin
Copy link
Member

It shouldn't happen in the latest version, I'll check. Are you using the r6 ISO?

@ertaboy356b
Copy link
Author

Yeah, I'm using R6 when I installed it last Sunday.

@PVermeer
Copy link

May 29 15:23:08 vanillaos-vm org.vanillaos.FirstSetup.desktop[7949]: FileNotFoundError: [Errno 2] No such file or directory: '/home/test/.config/autostart/org.vanillaos.FirstSetup.nextBoot.desktop'
May 29 15:23:08 vanillaos-vm org.vanillaos.FirstSetup.desktop[7949]:     with open(next_boot_autostart_path, "w") as f:
May 29 15:23:08 vanillaos-vm org.vanillaos.FirstSetup.desktop[7949]:   File "/usr/share/org.vanillaos.FirstSetup/vanilla_first_setup/utils/processor.py", line 67, in get_setup_commands
May 29 15:23:08 vanillaos-vm org.vanillaos.FirstSetup.desktop[7949]:     res = Processor.get_setup_commands(
May 29 15:23:08 vanillaos-vm org.vanillaos.FirstSetup.desktop[7949]:   File "/usr/share/org.vanillaos.FirstSetup/vanilla_first_setup/window.py", line 153, in __on_page_changed

Seems to be the issue.

Creating this file (empty) runs the installer successful.

@mrkskwsnck
Copy link

May 29 15:23:08 vanillaos-vm org.vanillaos.FirstSetup.desktop[7949]: FileNotFoundError: [Errno 2] No such file or directory: '/home/test/.config/autostart/org.vanillaos.FirstSetup.nextBoot.desktop'
May 29 15:23:08 vanillaos-vm org.vanillaos.FirstSetup.desktop[7949]:     with open(next_boot_autostart_path, "w") as f:
May 29 15:23:08 vanillaos-vm org.vanillaos.FirstSetup.desktop[7949]:   File "/usr/share/org.vanillaos.FirstSetup/vanilla_first_setup/utils/processor.py", line 67, in get_setup_commands
May 29 15:23:08 vanillaos-vm org.vanillaos.FirstSetup.desktop[7949]:     res = Processor.get_setup_commands(
May 29 15:23:08 vanillaos-vm org.vanillaos.FirstSetup.desktop[7949]:   File "/usr/share/org.vanillaos.FirstSetup/vanilla_first_setup/window.py", line 153, in __on_page_changed

Seems to be the issue.

Creating this file (empty) runs the installer successful.

I ran into the same issue creating another unprivileged user on

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	VanillaOS 22.10 all
Release:	22.10
Codename:	kinetic

And I confirm touching the file `` solves this issue. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants