Vanilla-OS / desktop-image

Containerfile for the Vanilla OS Desktop image.
https://images.vanillaos.org/#/recipe/desktop
GNU General Public License v3.0
35 stars 22 forks source link

Unable to log in after update #95

Closed DragonHunter274 closed 5 months ago

DragonHunter274 commented 7 months ago

Issue Description

After installing the currently latest update (sha256:85d8f21bd86cec9ab88653db0e5368130ba07936564b6735188a9e91c4eff3f6) I am unable to login both through gdm or through tty Error Message in GDM: Sorry, password authentication didn't work, please try again

Steps to Reproduce

Install latest upgrade, try to log in

On what version of Vanilla OS this happens?

Unreleased

Additional Information

No response

mirkobrombin commented 6 months ago

This should be fixed by latest changes already, assigning to Tau so they can close if actually fixed.


Nvm, just got confirmed by @axtloss

DragonHunter274 commented 6 months ago

I am still facing this issue after the latest upgrade, please let me know if i can provide any logs

taukakao commented 6 months ago

Could you run: host-shell pkexec cat /var/lib/abroot/etc/vos-a/shadow and with (vos-b): host-shell pkexec cat /var/lib/abroot/etc/vos-b/shadow Do not post the contents here since that is sensitive information.

Check if both files have your user in there, followed by a bunch of random symbols. Also check if there is any other obvious problems with the files. (every line should have roughly the same format)

The first and the second file should be pretty much the same.

taukakao commented 6 months ago

Actually could you try this:

Open a Terminal, run:

host-shell pkexec
cd /tmp
wget https://github.com/Vanilla-OS/ABRoot/releases/download/continuous/abrootv2.tar.gz
tar -xvf abrootv2.tar.gz
/tmp/abrootv2 upgrade
DragonHunter274 commented 6 months ago

Upgrading with the new abroot resulted in the system not fully booting at all, it is stuck at the grey background vanilla beta screen

The shadow files are identical

taukakao commented 6 months ago

Could you try pressing Escape before it freezes and see if there is anything that's failing? (Should be red)

DragonHunter274 commented 6 months ago

IMG_20240507_195054

This is what I get

taukakao commented 6 months ago

Huh, could you give me the contents of your fstab with: host-shell cat /etc/fstab

DragonHunter274 commented 6 months ago
# Generated by ABRoot
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
UUID=396daf73-93a9-4f9c-9595-e11a1a1e1fa9  /  btrfs  defaults  0  0
/.system/usr  /.system/usr  none  bind,ro
UUID=3d0951bd-522a-460f-90af-325e2f91ecc8  /var  auto  defaults  0  0

this is my fstab

taukakao commented 6 months ago

Could you run host-shell pkexec ls -Al /var/lib/AccountsService/users host-shell mount | grep "/ " and host-shell pkexec ls -AlR /var/lib/abroot/etc/

I know it's probably gonna be a lot of output. Just put it into the comment and I will format it properly.

DragonHunter274 commented 6 months ago

There you go:

Output AccountsService ``` simon@apx-vso-pico:~$ host-shell pkexec ls -Al /var/lib/AccountsService/users total 4 -rw------- 1 root root 64 Jan 18 16:49 simon ```
Output mount ``` simon@apx-vso-pico:~$ host-shell mount | grep "/ " /dev/nvme0n1p3 on / type btrfs (rw,relatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/) ```
Output ls ``` simon@apx-vso-pico:~$ host-shell pkexec ls -AlR /var/lib/abroot/etc/ /var/lib/abroot/etc/: total 4 drwxr-xr-x 1 root root 674 May 8 16:47 vos-a drwxr-xr-x 1 root root 8 May 7 22:00 vos-a-work drwxr-xr-x 1 root root 686 May 7 19:50 vos-b drwxr-xr-x 1 root root 8 May 7 19:50 vos-b-work /var/lib/abroot/etc/vos-a: total 172 drwxr-xr-x 1 root root 150 Jan 18 19:01 abroot drwxr-xr-x 1 root root 10 Sep 20 2023 apparmor.d drwxr-xr-x 1 root root 236 Apr 11 16:27 console-setup drwxr-xr-x 1 root root 16 Sep 26 2023 containers drwxr-xr-x 1 root lp 144 May 8 11:59 cups drwxr-xr-x 1 root root 16 Sep 20 2023 default drwxr-xr-x 1 root root 20 Sep 20 2023 fwupd drwxr-xr-x 1 root root 22 Sep 20 2023 gdm3 -rw-r--r-- 1 root root 965 Apr 5 12:36 group -rw-r--r-- 1 root root 1005 Sep 26 2023 group- -rw-r----- 1 root shadow 802 Sep 26 2023 gshadow -rw-r----- 1 root shadow 838 Sep 26 2023 gshadow- -rw-r--r-- 1 root root 13 Sep 26 2023 hostname -rw-r--r-- 1 root root 73 Sep 26 2023 hosts -rw-r--r-- 1 root root 67031 Apr 5 12:38 ld.so.cache -rw-r--r-- 1 root root 230 Sep 26 2023 locale.conf -rw-r--r-- 1 root root 9429 Sep 26 2023 locale.gen drwxr-xr-x 1 root root 22 Sep 26 2023 locales lrwxrwxrwx 1 root root 33 Sep 26 2023 localtime -> /usr/share/zoneinfo/Europe/Berlin drwxr-xr-x 1 root root 36 Jan 30 16:30 NetworkManager -rwxr-xr-x 1 1000 1000 6969 Sep 26 2023 org.vanillaos.FirstSetup.commands -rwxr-xr-x 1 root root 1 Sep 26 2023 org.vanillaos.FirstSetup.nextBoot -rw-r--r-- 1 root root 2495 Apr 5 12:36 passwd -rw-r--r-- 1 root root 2550 Sep 26 2023 passwd- drwxr-xr-x 1 root root 14 Jan 30 16:28 polkit-1 -rw------- 1 root root 0 Sep 13 2023 .pwd.lock -rw-r--r-- 1 root root 119 May 8 16:47 resolv.conf -rw-r--r-- 1 root root 1138 Apr 5 12:36 shadow -rw-r--r-- 1 root root 1239 Sep 26 2023 shadow- -rw-r--r-- 1 root root 19 Apr 5 12:36 subgid -rw-r--r-- 1 root root 40 Sep 26 2023 subgid- -rw-r--r-- 1 root root 19 Apr 5 12:36 subuid -rw-r--r-- 1 root root 40 Sep 26 2023 subuid- -r--r----- 1 root root 1757 Oct 11 2023 sudoers -rw-r--r-- 1 root root 13 Sep 26 2023 'timezone'$'\n' drwxr-xr-x 1 root root 14 Apr 4 22:31 udev -rw-r--r-- 1 root root 208 Apr 4 22:31 .updated drwxr-xr-x 1 root root 18 Sep 20 2023 xdg /var/lib/abroot/etc/vos-a/abroot: total 12 -rw-r--r-- 1 root root 54 Jan 18 19:01 ABPkgManager.userAgreement -rw-r--r-- 1 root root 37 Sep 26 2023 kargs -rw-r--r-- 1 root root 188 Apr 17 17:01 packages.add -rw-r--r-- 1 root root 0 Sep 26 2023 packages.remove -rw-r--r-- 1 root root 0 May 5 12:18 packages.unstaged /var/lib/abroot/etc/vos-a/apparmor.d: total 0 drwxr-xr-x 1 root root 22 Jan 18 18:52 samba /var/lib/abroot/etc/vos-a/apparmor.d/samba: total 4 -rw-r--r-- 1 root root 194 Jan 18 18:52 smbd-shares /var/lib/abroot/etc/vos-a/console-setup: total 28 -rwxr-xr-x 1 root root 467 Apr 11 16:27 cached_setup_font.sh -rwxr-xr-x 1 root root 358 Apr 11 16:27 cached_setup_keyboard.sh -rwxr-xr-x 1 root root 73 Apr 11 16:27 cached_setup_terminal.sh -rw-r--r-- 1 root root 4292 Apr 11 16:27 cached_Uni2-Fixed16.psf.gz -rw-r--r-- 1 root root 5241 Apr 11 16:27 cached_UTF-8_del.kmap.gz /var/lib/abroot/etc/vos-a/containers: total 0 drwxr-xr-x 1 root root 26 Oct 11 2023 networks /var/lib/abroot/etc/vos-a/containers/networks: total 4 -rw-r--r-- 1 root root 629 Oct 11 2023 minikube.json /var/lib/abroot/etc/vos-a/cups: total 16 drwxr-xr-x 1 root lp 48 May 8 00:00 ppd -rw------- 1 root lp 1000 May 8 00:00 printers.conf -rw------- 1 root lp 128 May 8 00:00 printers.conf.O drwx------ 1 root lp 42 Apr 11 00:28 ssl -rw-r----- 1 root lp 384 May 8 11:59 subscriptions.conf -rw-r----- 1 root lp 685 May 8 00:01 subscriptions.conf.O /var/lib/abroot/etc/vos-a/cups/ppd: total 16 -rw-r----- 1 root lp 16094 May 8 00:00 EPSON_ET_4800_Series.ppd /var/lib/abroot/etc/vos-a/cups/ssl: total 4 -rw------- 1 root lp 1177 Apr 11 00:28 EPSONED2140.local.crt /var/lib/abroot/etc/vos-a/default: total 4 -rw-r--r-- 1 root root 141 Sep 26 2023 keyboard /var/lib/abroot/etc/vos-a/fwupd: total 4 -rw-r----- 1 root root 119 Sep 4 2023 fwupd.conf /var/lib/abroot/etc/vos-a/gdm3: total 4 -rw-r--r-- 1 root root 9 Sep 26 2023 daemon.conf /var/lib/abroot/etc/vos-a/locales: total 0 drwxr-xr-x 1 root root 250 Sep 26 2023 en_US.UTF-8 /var/lib/abroot/etc/vos-a/locales/en_US.UTF-8: total 2916 -rw-r--r-- 1 root root 167 Sep 26 2023 LC_ADDRESS -rw-r--r-- 1 root root 2586930 Sep 26 2023 LC_COLLATE -rw-r--r-- 1 root root 357584 Sep 26 2023 LC_CTYPE -rw-r--r-- 1 root root 369 Sep 26 2023 LC_IDENTIFICATION -rw-r--r-- 1 root root 23 Sep 26 2023 LC_MEASUREMENT drwxr-xr-x 1 root root 30 Sep 26 2023 LC_MESSAGES -rw-r--r-- 1 root root 286 Sep 26 2023 LC_MONETARY -rw-r--r-- 1 root root 77 Sep 26 2023 LC_NAME -rw-r--r-- 1 root root 54 Sep 26 2023 LC_NUMERIC -rw-r--r-- 1 root root 34 Sep 26 2023 LC_PAPER -rw-r--r-- 1 root root 59 Sep 26 2023 LC_TELEPHONE -rw-r--r-- 1 root root 3284 Sep 26 2023 LC_TIME /var/lib/abroot/etc/vos-a/locales/en_US.UTF-8/LC_MESSAGES: total 4 -rw-r--r-- 1 root root 57 Sep 26 2023 SYS_LC_MESSAGES /var/lib/abroot/etc/vos-a/NetworkManager: total 0 drwxr-xr-x 1 root root 62 Feb 15 20:47 system-connections /var/lib/abroot/etc/vos-a/NetworkManager/system-connections: total 4 -rw------- 1 root root 298 Feb 15 20:47 'Wired connection 1.nmconnection' /var/lib/abroot/etc/vos-a/polkit-1: total 0 drwxr-x--- 1 root polkitd 0 Jan 21 11:42 rules.d /var/lib/abroot/etc/vos-a/polkit-1/rules.d: total 0 /var/lib/abroot/etc/vos-a/udev: total 0 drwxr-xr-x 1 root root 26 Apr 5 14:35 rules.d /var/lib/abroot/etc/vos-a/udev/rules.d: total 4 -rw-r--r-- 1 root root 406 Apr 5 14:35 99-qdmr.rules /var/lib/abroot/etc/vos-a/xdg: total 0 drwxr-xr-x 1 root root 0 Sep 26 2023 autostart /var/lib/abroot/etc/vos-a/xdg/autostart: total 0 /var/lib/abroot/etc/vos-a-work: total 0 d--------- 1 root root 0 May 7 22:00 work /var/lib/abroot/etc/vos-a-work/work: total 0 /var/lib/abroot/etc/vos-b: total 168 drwxr-xr-x 1 root root 150 May 5 12:18 abroot drwxr-xr-x 1 root root 10 May 5 12:18 apparmor.d drwxr-xr-x 1 geoclue nm-openconnect 0 May 7 17:39 colord drwxr-xr-x 1 root root 236 May 7 17:39 console-setup drwxr-xr-x 1 root root 16 May 5 12:18 containers drwxr-xr-x 1 root lp 144 May 7 19:50 cups drwxr-xr-x 1 root root 16 May 5 12:18 default drwxr-xr-x 1 root root 20 May 5 12:18 fwupd drwxr-xr-x 1 root root 22 May 5 12:18 gdm3 -rw-r--r-- 1 root root 1004 May 5 12:18 group -rw-r--r-- 1 root root 1005 May 5 12:18 group- -rw-r----- 1 root root 821 May 5 12:18 gshadow -rw-r----- 1 root root 838 May 5 12:18 gshadow- -rw-r--r-- 1 root root 13 May 5 12:18 hostname -rw-r--r-- 1 root root 73 May 5 12:18 hosts -rw-r--r-- 1 root root 67031 May 5 12:18 ld.so.cache -rw-r--r-- 1 root root 230 May 5 12:18 locale.conf -rw-r--r-- 1 root root 9429 May 5 12:18 locale.gen drwxr-xr-x 1 root root 22 May 5 12:18 locales lrwxrwxrwx 1 root root 33 May 5 12:18 localtime -> /usr/share/zoneinfo/Europe/Berlin drwxr-xr-x 1 root root 36 May 5 12:18 NetworkManager -rwxr-xr-x 1 root root 1 May 7 19:50 org.vanillaos.FirstSetup.commands -rwxr-xr-x 1 root root 1 May 5 12:18 org.vanillaos.FirstSetup.nextBoot -rw-r--r-- 1 root root 3408 May 5 12:18 passwd -rw-r--r-- 1 root root 2550 May 5 12:18 passwd- drwxr-xr-x 1 root root 14 May 5 12:18 polkit-1 -rw------- 1 root root 0 May 5 12:18 .pwd.lock -rw-r--r-- 1 root root 119 May 7 19:50 resolv.conf -rw-r----- 1 root root 2182 May 5 12:18 shadow -rw-r--r-- 1 root root 1239 May 5 12:18 shadow- -rw-r--r-- 1 root root 19 May 5 12:18 subgid -rw-r--r-- 1 root root 40 May 5 12:18 subgid- -rw-r--r-- 1 root root 19 May 5 12:18 subuid -rw-r--r-- 1 root root 40 May 5 12:18 subuid- -r--r----- 1 root root 1757 May 5 12:18 sudoers -rw-r--r-- 1 root root 13 May 5 12:18 'timezone'$'\n' drwxr-xr-x 1 root root 14 May 5 12:18 udev -rw-r--r-- 1 root root 208 May 5 12:18 .updated drwxr-xr-x 1 root root 18 May 5 12:18 xdg /var/lib/abroot/etc/vos-b/abroot: total 12 -rw-r--r-- 1 root root 54 May 5 12:18 ABPkgManager.userAgreement -rw-r--r-- 1 root root 37 May 5 12:18 kargs -rw-r--r-- 1 root root 188 May 5 12:18 packages.add -rw-r--r-- 1 root root 0 May 5 12:18 packages.remove -rw-r--r-- 1 root root 0 May 5 12:18 packages.unstaged /var/lib/abroot/etc/vos-b/apparmor.d: total 0 drwxr-xr-x 1 root root 22 May 5 12:18 samba /var/lib/abroot/etc/vos-b/apparmor.d/samba: total 4 -rw-r--r-- 1 root root 194 May 5 12:18 smbd-shares /var/lib/abroot/etc/vos-b/colord: total 0 /var/lib/abroot/etc/vos-b/console-setup: total 28 -rwxr-xr-x 1 root root 467 May 7 17:39 cached_setup_font.sh -rwxr-xr-x 1 root root 358 May 7 17:39 cached_setup_keyboard.sh -rwxr-xr-x 1 root root 73 May 7 17:39 cached_setup_terminal.sh -rw-r--r-- 1 root root 4292 May 7 17:39 cached_Uni2-Fixed16.psf.gz -rw-r--r-- 1 root root 5252 May 7 17:39 cached_UTF-8_del.kmap.gz /var/lib/abroot/etc/vos-b/containers: total 0 drwxr-xr-x 1 root root 26 May 5 12:18 networks /var/lib/abroot/etc/vos-b/containers/networks: total 4 -rw-r--r-- 1 root root 629 May 5 12:18 minikube.json /var/lib/abroot/etc/vos-b/cups: total 16 drwxr-xr-x 1 root lp 100 May 7 19:50 ppd -rw------- 1 root lp 1000 May 7 19:50 printers.conf -rw------- 1 root lp 1000 May 7 19:35 printers.conf.O drwx------ 1 root lp 42 May 5 12:18 ssl -rw-r----- 1 root lp 678 May 7 19:50 subscriptions.conf -rw-r----- 1 root lp 384 May 7 19:35 subscriptions.conf.O /var/lib/abroot/etc/vos-b/cups/ppd: total 32 -rw-r----- 1 root lp 16094 May 7 19:50 EPSON_ET_4800_Series.ppd -rw-r----- 1 root lp 16094 May 7 19:35 EPSON_ET_4800_Series.ppd.O /var/lib/abroot/etc/vos-b/cups/ssl: total 4 -rw------- 1 root root 1177 May 5 12:18 EPSONED2140.local.crt /var/lib/abroot/etc/vos-b/default: total 4 -rw-r--r-- 1 root root 141 May 5 12:18 keyboard /var/lib/abroot/etc/vos-b/fwupd: total 4 -rw-r----- 1 root root 119 May 5 12:18 fwupd.conf /var/lib/abroot/etc/vos-b/gdm3: total 4 -rw-r--r-- 1 root root 9 May 5 12:18 daemon.conf /var/lib/abroot/etc/vos-b/locales: total 0 drwxr-xr-x 1 root root 250 May 5 12:18 en_US.UTF-8 /var/lib/abroot/etc/vos-b/locales/en_US.UTF-8: total 2916 -rw-r--r-- 1 root root 167 May 5 12:18 LC_ADDRESS -rw-r--r-- 1 root root 2586930 May 5 12:18 LC_COLLATE -rw-r--r-- 1 root root 357584 May 5 12:18 LC_CTYPE -rw-r--r-- 1 root root 369 May 5 12:18 LC_IDENTIFICATION -rw-r--r-- 1 root root 23 May 5 12:18 LC_MEASUREMENT drwxr-xr-x 1 root root 30 May 5 12:18 LC_MESSAGES -rw-r--r-- 1 root root 286 May 5 12:18 LC_MONETARY -rw-r--r-- 1 root root 77 May 5 12:18 LC_NAME -rw-r--r-- 1 root root 54 May 5 12:18 LC_NUMERIC -rw-r--r-- 1 root root 34 May 5 12:18 LC_PAPER -rw-r--r-- 1 root root 59 May 5 12:18 LC_TELEPHONE -rw-r--r-- 1 root root 3284 May 5 12:18 LC_TIME /var/lib/abroot/etc/vos-b/locales/en_US.UTF-8/LC_MESSAGES: total 4 -rw-r--r-- 1 root root 57 May 5 12:18 SYS_LC_MESSAGES /var/lib/abroot/etc/vos-b/NetworkManager: total 0 drwxr-xr-x 1 root root 62 May 5 12:18 system-connections /var/lib/abroot/etc/vos-b/NetworkManager/system-connections: total 4 -rw------- 1 root root 298 May 5 12:18 'Wired connection 1.nmconnection' /var/lib/abroot/etc/vos-b/polkit-1: total 0 drwxr-x--- 1 root polkitd 0 May 5 12:18 rules.d /var/lib/abroot/etc/vos-b/polkit-1/rules.d: total 0 /var/lib/abroot/etc/vos-b/udev: total 0 drwxr-xr-x 1 root root 26 May 5 12:18 rules.d /var/lib/abroot/etc/vos-b/udev/rules.d: total 4 -rw-r--r-- 1 root root 406 May 5 12:18 99-qdmr.rules /var/lib/abroot/etc/vos-b/xdg: total 0 drwxr-xr-x 1 root root 0 May 5 12:18 autostart /var/lib/abroot/etc/vos-b/xdg/autostart: total 0 /var/lib/abroot/etc/vos-b-work: total 0 d--------- 1 root root 0 May 7 19:50 work /var/lib/abroot/etc/vos-b-work/work: total 0 ```
taukakao commented 6 months ago

Ah, you're missing the /etc/abroot/abroot.json file. (Probably caused by a bug in EtcBuilder that affected some installs in the past)

We can try to restore it if you want. We would need the following information:

host-shell lsblk -o NAME,SIZE,TYPE,MOUNTPOINTS,LABEL,PARTLABEL /dev/nvme0n1 host-shell cat /usr/share/abroot/abroot.json

DragonHunter274 commented 6 months ago
simon@apx-vso-pico:~$ host-shell lsblk -o NAME,SIZE,TYPE,MOUNTPOINTS,LABEL,PARTLABEL /dev/nvme0n1
NAME         SIZE TYPE MOUNTPOINTS             LABEL    PARTLABEL
nvme0n1      1.8T disk                                  
├─nvme0n1p1    1G part                         vos-boot vos-boot
├─nvme0n1p2  512M part                         vos-efi  vos-efi
├─nvme0n1p3   12G part /.system/usr            vos-a    vos-a
│                      /                                
├─nvme0n1p4   12G part                         vos-b    vos-b
└─nvme0n1p5  1.8T part /opt                    vos-var  vos-var
                       /home                            
                       /.system/usr/lib/locale          
                       /.system/usr/lib/locale          
                       /var                             
simon@apx-vso-pico:~$ host-shell cat /usr/share/abroot/abroot.json
{
    "autoRepair": true,
    "maxParallelDownloads": 2,

    "registry": "ghcr.io",
    "registryService": "registry.ghcr.io",
    "registryAPIVersion": "v2",
    "name": "vanilla-os/desktop",
    "tag": "main",

    "iPkgMngPre": "lpkg --unlock",
    "iPkgMngPost": "lpkg --lock",
    "iPkgMngAdd": "apt-get install -y",
    "iPkgMngRm": "apt-get remove -y --autoremove",
    "iPkgMngApi": "https://packages.vanillaos.org/api/pkg/{packageName}",
    "iPkgMngStatus": 2,

    "differURL": "https://differ.vanillaos.org",

    "partLabelVar": "vos-var",
    "partLabelA": "vos-a",
    "partLabelB": "vos-b",
    "partLabelBoot": "vos-boot",
    "partLabelEfi": "vos-efi",

    "libPathStates": "/var/lib/abroot/states"
}
taukakao commented 6 months ago

Ignore this, it's probably not relevant:

Hmm, the default configuration should be fine here. It's probably not because of the config after all. You can still try it by editing the abroot config with: host-shell pkexec nano /etc/abroot/abroot.json and setting it to:

{
    "autoRepair": true,
    "maxParallelDownloads": 2,

    "registry": "ghcr.io",
    "registryService": "registry.ghcr.io",
    "registryAPIVersion": "v2",
    "name": "vanilla-os/desktop",
    "tag": "main",

    "iPkgMngPre": "lpkg --unlock",
    "iPkgMngPost": "lpkg --lock",
    "iPkgMngAdd": "apt-get install -y",
    "iPkgMngRm": "apt-get remove -y --autoremove",
    "iPkgMngApi": "https://packages.vanillaos.org/api/pkg/{packageName}",
    "iPkgMngStatus": 2,

    "differURL": "https://differ.vanillaos.org",

    "partLabelVar": "vos-var",
    "partLabelA": "vos-a",
    "partLabelB": "vos-b",
    "partLabelBoot": "vos-boot",
    "partLabelEfi": "vos-efi",

    "libPathStates": "/var/lib/abroot/states",
    "thinProvisioning": false
}

after that run an upgrade again.

The thing is that this shouldn't really make a difference here.

taukakao commented 6 months ago

Wait, what root are you currently booted into?

So which one is the working one?

DragonHunter274 commented 6 months ago

I'm currently booted into vos-a

taukakao commented 6 months ago

The only problem I see is that the groups aren't carried over to the new install. It's not been a problem for anyone else but you could try manually setting them: host-shell pkexec chown root:shadow /var/lib/abroot/etc/vos-b/gshadow

mirkobrombin commented 5 months ago

Any update on this?

DragonHunter274 commented 5 months ago

Issue unchanged, when using system installed ABRoot to upgrade I get the login issue, with newer ABRoot versions the freezing issue

taukakao commented 5 months ago

A workaround would be running an upgrade and after that running: host-shell pkexec cp -a /var/lib/abroot/etc/vos-x/. /var/lib/abroot/etc/vos-y/ (the point is important) Also, x needs to be replaced by the old root (a or b lowercase) and y needs to be replaced by the root that just got upgraded.

The problem is that the issue will probably appear again after the next upgrade.

DragonHunter274 commented 5 months ago

While I think the workaround worked, now everytime I try to run abroot I get this error:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb0 pc=0x1204afb]

goroutine 1 [running]:
main.main()
    /home/[redacted]/ABRoot/main.go:52 +0x33b
taukakao commented 5 months ago

This would suggest a wrong configuration file. Could you run: host-shell cat /etc/abroot/abroot.json

DragonHunter274 commented 5 months ago

It's completely empty /usr/share/abroot/abroot.json has the correct file

EDIT: I deleted it and it's fine now, no idea where the empty file came from

taukakao commented 5 months ago

The empty file is from the image, it's there to mitigate a bug we had. I would recommend copying the /usr/share/abroot/abroot.json file to /etc/abroot/abroot.json to make sure it doesn't randomly break in the future as we might edit it in the image.

DragonHunter274 commented 5 months ago

The issue seems to be fixed, i'll close this