Web browsers logging me out every time I reboot/shutdown my laptop

I use Brave browser and Firefox, I am facing an issue that whenever I am turning off or rebooting my laptop all web browsers are logging me out of all my accounts which is very troublesome for me. Please help.

System:
Kernel: 6.7.8-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
clocksource: tsc avail: hpet,acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=cd91162f-2636-4eed-ae3d-288a3fbc2000 rw rootflags=subvol=@
quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0
resume=UUID=f195304e-a978-4f67-85e4-377a74796bd3 loglevel=3 ibt=off
Desktop: KDE Plasma v: 6.0.1 tk: Qt v: N/A info: frameworks v: 6.0.0
wm: kwin_wayland vt: 1 dm: SDDM Distro: Garuda base: Arch Linux
Machine:
Type: Laptop System: Acer product: Aspire A515-51G v: V2.02
serial: <superuser required>
Mobo: KBL model: Charmander_KL v: V2.02 serial: <superuser required>
part-nu: 0000000000000000 uuid: <superuser required> UEFI-[Legacy]: Insyde
v: 2.02 date: 01/03/2019
Battery:
ID-1: BAT1 charge: 36.1 Wh (98.4%) condition: 36.7/48.9 Wh (74.9%)
volts: 17.0 min: 15.2 model: LG 004B384234314341 type: Li-ion
serial: <filter> status: charging
CPU:
Info: model: Intel Core i5-8250U bits: 64 type: MT MCP arch: Coffee Lake
gen: core 8 level: v3 note: check built: 2017 process: Intel 14nm family: 6
model-id: 0x8E (142) stepping: 0xA (10) microcode: 0xF4
Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
L3: 6 MiB desc: 1x6 MiB
Speed (MHz): avg: 500 high: 800 min/max: 400/3400 scaling:
driver: intel_pstate governor: powersave cores: 1: 800 2: 400 3: 400 4: 400
5: 400 6: 400 7: 800 8: 400 bogomips: 28800
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities: <filter>
Graphics:
Device-1: Intel UHD Graphics 620 vendor: Acer Incorporated ALI driver: i915
v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports:
active: eDP-1 empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:5917
class-ID: 0300
Device-2: NVIDIA GP108M [GeForce MX150] vendor: Acer Incorporated ALI
driver: nvidia v: 550.54.14 alternate: nouveau,nvidia_drm non-free: 545.xx+
status: current (as of 2024-02; EOL~2026-12-xx) arch: Maxwell code: GMxxx
process: TSMC 28nm built: 2014-2019 pcie: gen: 1 speed: 2.5 GT/s lanes: 4
link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.0 chip-ID: 10de:1d10
class-ID: 0302
Device-3: Chicony Integrated HD WebCam driver: uvcvideo type: USB rev: 2.0
speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-7:4 chip-ID: 04f2:b5f7
class-ID: 0e02
Display: wayland server: X.org v: 1.21.1.11 with: Xwayland v: 23.2.4
compositor: kwin_wayland driver: X: loaded: modesetting,nvidia
unloaded: nouveau alternate: fbdev,intel,nv,vesa dri: iris
gpu: i915,nvidia display-ID: 0
Monitor-1: eDP-1 res: 1366x768 size: N/A modes: N/A
API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
drv: nvidia device: 2 drv: iris device: 3 drv: swrast gbm: drv: nvidia
surfaceless: drv: nvidia wayland: drv: iris x11: drv: iris
inactive: device-1
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 24.0.2-arch1.1
glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics 620 (KBL
GT2) device-ID: 8086:5917 memory: 7.45 GiB unified: yes display-ID: :1.0
API: Vulkan v: 1.3.279 layers: 8 device: 0 type: integrated-gpu name: Intel
UHD Graphics 620 (KBL GT2) driver: mesa intel v: 24.0.2-arch1.1
device-ID: 8086:5917 surfaces: xcb,xlib,wayland device: 1
type: discrete-gpu name: NVIDIA GeForce MX150 driver: nvidia v: 550.54.14
device-ID: 10de:1d10 surfaces: xcb,xlib,wayland device: 2 type: cpu
name: llvmpipe (LLVM 16.0.6 256 bits) driver: mesa llvmpipe
v: 24.0.2-arch1.1 (LLVM 16.0.6) device-ID: 10005:0000
surfaces: xcb,xlib,wayland
Audio:
Device-1: Intel Sunrise Point-LP HD Audio vendor: Acer Incorporated ALI
driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_soc_avs
bus-ID: 00:1f.3 chip-ID: 8086:9d71 class-ID: 0403
API: ALSA v: k6.7.8-zen1-1-zen status: kernel-api tools: N/A
Server-1: PipeWire v: 1.0.3 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
vendor: Acer Incorporated ALI RTL8111/8168/8411 driver: r8169 v: kernel
pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 02:00.1
chip-ID: 10ec:8168 class-ID: 0200
IF: enp2s0f1 state: down mac: <filter>
Device-2: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi
v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0
chip-ID: 8086:24fb class-ID: 0280
IF: wlp3s0 state: up mac: <filter>
Info: services: NetworkManager, systemd-timesyncd, wpa_supplicant
Bluetooth:
Device-1: Intel Wireless-AC 3168 Bluetooth driver: btusb v: 0.8 type: USB
rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-5:3 chip-ID: 8087:0aa7
class-ID: e001
Report: btmgmt ID: hci0 rfk-id: 2 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: <filter> bt-v: 4.2 lmp-v: 8
status: discoverable: no pairing: no
Drives:
Local Storage: total: 1.14 TiB used: 154.35 GiB (13.3%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Kingston model: SA2000M8250G
size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: S5Z42105 temp: 30.9 C
scheme: MBR
ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital
model: WD10SPZX-21Z10T0 size: 931.51 GiB block-size: physical: 4096 B
logical: 512 B speed: 6.0 Gb/s tech: HDD rpm: 5400 serial: <filter>
fw-rev: 1A02 scheme: MBR
Partition:
ID-1: / raw-size: 224.08 GiB size: 224.08 GiB (100.00%)
used: 66.61 GiB (29.7%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
ID-2: /home raw-size: 224.08 GiB size: 224.08 GiB (100.00%)
used: 66.61 GiB (29.7%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /var/log raw-size: 224.08 GiB size: 224.08 GiB (100.00%)
used: 66.61 GiB (29.7%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
ID-4: /var/tmp raw-size: 224.08 GiB size: 224.08 GiB (100.00%)
used: 66.61 GiB (29.7%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 7.63 GiB used: 0 KiB (0.0%) priority: 100
comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 8 dev: /dev/zram0
ID-2: swap-2 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/nvme0n1p2 maj-min: 259:2
Sensors:
System Temperatures: cpu: 49.0 C mobo: N/A
Fan Speeds (rpm): N/A
Info:
Memory: total: 8 GiB available: 7.63 GiB used: 3.16 GiB (41.5%)
Processes: 246 Power: uptime: 13m states: freeze,mem,disk suspend: deep
avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
suspend, test_resume image: 2.99 GiB services: org_kde_powerdevil,
power-profiles-daemon, upowerd Init: systemd v: 255 default: graphical
tool: systemctl
Packages: pm: pacman pkgs: 1566 libs: 427 tools: octopi,paru,yay
Compilers: clang: 16.0.6 gcc: 13.2.1 Shell: garuda-inxi default: Bash
v: 5.2.26 running-in: konsole inxi: 3.3.33
Garuda (2.6.23-1):
System install date:     2023-10-22
Last full system update: 2024-03-07
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut nvidia-dkms
Windows dual boot:       <superuser required>
Failed units:

1 Like

It’s just a guess, but I think it’s this Fix PSD (profile-sync-daemon occasionally) failing to sync the browser profile due to a rather short systemd default timeout
Does it also throw away last opened tabs and last added bookmarks?

3 Likes

Another but remote possibility, since the problem occurs on two browsers, is that they both have a security option such as ‘Delete cookies and website data when Firefox is closed’.

4 Likes

I don’t have this happening exactly, but after every restart firefox has lost all of my history and open tabs-- once it even lost all my bookmarks and cookies. Yes, I have it set to save my history and psd seems to be working fine. Is the daemon technically incompatible with firefox’s sync? I do use that to, well, keep my laptop and desktop synced.

No, it’s not incompatible (to the best of my knowledge, which isn’t much).
It works by copying the browser profiles to RAM and periodically persisting them to disk (every one hour by default, if I remember correctly).
Of course, it also copies back to disk on shutdown/reboot (and optionally, suspend).
If the machine crashes before the profile is written back to disk, the last backup (it also keeps backups) is restored.
If the daemon gets killed by timeout, same thing.
If every restart implies loss of recently added bookmarks/settings/logins/whatever, it’s a hint that it’s getting killed by time out.
This should only happen on somewhat slow machines like mine (spinning disk) but may also happen if some other process is slowing things down.
Extending the timeout should work around the problem.

1 Like

i checked the journal and it reports everything was synced successfully during my last shutdown. Note, it only took 10s to get back to login from clicking shutdown so the time limit is definitely not an issue

Mar 08 11:59:07 hap-IP5 systemd[1429]: Stopped Profile-sync-daemon.
Mar 08 11:59:07 hap-IP5 profile-sync-daemon[432993]: firefox unsync successful
Mar 08 11:59:07 hap-IP5 profile-sync-daemon[432993]: firefox unsync successful
Mar 08 11:59:07 hap-IP5 profile-sync-daemon[432993]: firedragon unsync successful
Mar 08 11:59:07 hap-IP5 profile-sync-daemon[432993]: firedragon unsync successful
Mar 08 11:59:07 hap-IP5 profile-sync-daemon[432993]: firefox resync successful
Mar 08 11:59:07 hap-IP5 profile-sync-daemon[432993]: firefox resync successful
Mar 08 11:59:07 hap-IP5 profile-sync-daemon[432993]: firedragon resync successful

from my last reboot

1 Like

Hm, it looks like it’s something else then. :thinking:
The “verify integrity” in about:support says anything suspicious?

Nope, it says everything is fine. I will say that I noticed that there are two different profiles; one is my normal one and the other is what seems to be a default garuda one (I assume the doubled messages is due to thins). Could that somehow be f!cking with things, like it’s swapping the two somehow? Also, what’s the safest way to remove psd? I certainly have no need for it and if theres the possibility it’s messing up i want to kill it.

Try “masking” it first (I think it’s systemctl --user --now mask psd) and see if the problem persists (undo with unmask).
Of course, close browsers first and make sure the process actually stopped (reboot if unsure).
The fast reboot time makes me think it could be something else but it’s worth trying just to see if it has anything to do with the problem.
The double profile… I forgot but I recall reading something about it. I think it’s harmless.

1 Like

after KDE 6 update firefox is holding all the details perfectly not logging me out from any website but brave is a different story so I stopped using brave in this laptop.

No I have checked them this option is not enabled in both the browsers.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.