You are not logged in.

#1 2021-09-19 20:19:27

mradermaxlol
Member
Registered: 2016-01-10
Posts: 25

[SOLVED] Firefox bookmarks and history don't work due to file locking

hello world

after a recent update my ff installation got broken: it displays nothing in about:support, it can't access neither history nor bookmarks and, well, it's pretty much unusable in this state
i tried deleting ~/.mozilla and ~/.cache/mozilla altogether to no change at all
i'm also a bit concerned about the file called "lock" in ~/.mozilla/firefox/profiledir/:

lrwxrwxrwx   16 peppermint 19 Sep 23:13 lock -> 127.0.1.1:+11817

i thought this could be related to some updated library issue, but the freshly built firefox-92.0-2 still has the problem
any help would be appreciated

Last edited by mradermaxlol (2021-09-22 20:50:49)

Offline

#2 2021-09-20 10:10:23

robson75
Member
From: Poland
Registered: 2020-06-28
Posts: 144

Re: [SOLVED] Firefox bookmarks and history don't work due to file locking

You must have messed something up with Firefox yourself, because on my site about:support is displayed normally.

Przechwycenie-obrazu-ekranu-2021-09-20-12-05-55.png


Arch Linux Xfce - 64Bit Linux User #621110

Offline

#3 2021-09-20 11:11:15

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,291

Re: [SOLVED] Firefox bookmarks and history don't work due to file locking

Output of

$ pacman -Qkk firefox

?

Create a temporary new user, does that one also have the issue ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2021-09-20 16:31:19

Marc Hef
Member
Registered: 2021-09-20
Posts: 2

Re: [SOLVED] Firefox bookmarks and history don't work due to file locking

Hello,

i have the same problem as mradermaxlol. Since an update my firefox no longer works properly.
It only starts with "The bookmarks and history system will not be functional" alert.
I tried the following:
- Delete all sqlite databases in the profile folder.
- Delete Profile and create new one.
- Delete ~/.mozilla

Each time the sqlite databases were created anew, but they are always empty (no tables)

After a few days I completely rebuilt my Arch Linux. I planned to do that for partition changes anyway.
During the installation I have all "." files deleted from my home directory.

Unfortunately, the problem with Firefox in the freshly installed system still persists.

When setting up my Arch Linux I think I have the same problem with Mozilla Thunderbird. No email accounts can be created.


$ pacman -Qkk firefox
firefox: 99 total files, 0 altered files

$ firefox --full-version
Mozilla Firefox 92.0 20210919160836 20210919160836

$ pacman -Qs firefox
local/firefox 92.0-2
    Standalone web browser from mozilla.org
local/firefox-i18n-de 92.0-1
    German language pack for Firefox

$ pacman -Qkk thunderbird 
thunderbird: 87 total files, 0 altered file


thank you for your help

Last edited by Marc Hef (2021-09-20 16:31:48)

Offline

#5 2021-09-20 18:08:09

mradermaxlol
Member
Registered: 2016-01-10
Posts: 25

Re: [SOLVED] Firefox bookmarks and history don't work due to file locking

Lone_Wolf wrote:

Output of

$ pacman -Qkk firefox

?

Create a temporary new user, does that one also have the issue ?

~ ❯❯❯ pacman -Qkk firefox
firefox: 99 total files, 0 altered files
~ ❯❯❯ firefox --full-version
Mozilla Firefox 92.0 20210919160836 20210919160836

i will test firefox with a temporary user and report back; i'll also run paccheck just in case
btw i have testing repos enabled, but packages there don't seem to be the root cause of the problem

Last edited by mradermaxlol (2021-09-20 18:09:03)

Offline

#6 2021-09-20 18:15:43

mradermaxlol
Member
Registered: 2016-01-10
Posts: 25

Re: [SOLVED] Firefox bookmarks and history don't work due to file locking

apparently

paccheck --sha256sum --quiet (pacman -Qq)

didn't find any checksum issues, and the problem persists with the brand new test user

Offline

#7 2021-09-21 11:17:50

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,291

Re: [SOLVED] Firefox bookmarks and history don't work due to file locking

I looked for the lock file and also have it.

lrwxrwxrwx 1 panoramix panoramix 15 21 sep 10:01 .mozilla/firefox/xxxxxx.default/lock -> 127.0.1.1:+1107

No idea what it is for, but it doesn't seem related to the issue.

Since a new user also has the issue, it must be something systemwide .

- What shell are you using ?
- what filesystem is /home on ?
- X or wayland ?
- which graphics cards & drivers ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#8 2021-09-21 11:36:43

mradermaxlol
Member
Registered: 2016-01-10
Posts: 25

Re: [SOLVED] Firefox bookmarks and history don't work due to file locking

Lone_Wolf wrote:

I looked for the lock file and also have it.

lrwxrwxrwx 1 panoramix panoramix 15 21 sep 10:01 .mozilla/firefox/xxxxxx.default/lock -> 127.0.1.1:+1107

No idea what it is for, but it doesn't seem related to the issue.

Since a new user also has the issue, it must be something systemwide .

- What shell are you using ?
- what filesystem is /home on ?
- X or wayland ?
- which graphics cards & drivers ?

i use fishshell, / and /home are f2fs 1.13 with dm-crypt/LUKS2
wm is sway, radeon rx560m w/ amdgpu/mesa
kernel is linux-xanmod from aur with some config modifications (i also tried linux-zen from repos)
i will post my envvars & ~/.mozilla permissions later today

i have to note that everything worked flawlessly before and i haven't made any fundamental changes to my setup for a while, it seems like some package update caused this mess to happen (glib? gtk? i don't really know)
could zlib-ng usage be related to this problem?

Last edited by mradermaxlol (2021-09-21 11:48:33)

Offline

#9 2021-09-21 12:52:45

mradermaxlol
Member
Registered: 2016-01-10
Posts: 25

Re: [SOLVED] Firefox bookmarks and history don't work due to file locking

~ ❯❯❯ systemctl --user show-environment
CLUTTER_BACKEND=wayland
DESKTOP_APP_I_KNOW_ABOUT_GTK_INCOMPATIBILITY=1
DOTNET_CLI_TELEMETRY_OPTOUT=1
EDITOR=micro
ELECTRON_TRASH=trash-cli
GST_VAAPI_ALL_DRIVERS=1
HOME=/home/peppermint
LANG=en_US.UTF-8
LESS=-RS
LIBVA_DRIVER_NAME=radeonsi
LOGNAME=peppermint
MAIL=/var/spool/mail/peppermint
MOZ_ENABLE_WAYLAND=1
NO_AT_BRIDGE=1
PATH=/usr/local/bin:/usr/bin
QT_LOGGING_RULES=$'*=false'
SHELL=/bin/fish
SYSTEMD_EXEC_PID=810
TDESKTOP_DISABLE_GTK_INTEGRATION=1
USER=peppermint
VDPAU_DRIVER=radeonsi
XDG_DATA_DIRS=/home/peppermint/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/
XDG_RUNTIME_DIR=/run/user/1000
_JAVA_OPTIONS=$'-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dsun.java2d.opengl=true'
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DISPLAY=:0
QT_QPA_PLATFORMTHEME=qt5ct
QT_WAYLAND_DISABLE_WINDOWDECORATION=1
SWAYSOCK=/run/user/1000/sway-ipc.1000.823.sock
WAYLAND_DISPLAY=wayland-1
XDG_CACHE_HOME=/home/peppermint/.cache
XDG_CONFIG_HOME=/home/peppermint/.config
XDG_CURRENT_DESKTOP=sway
XDG_DATA_HOME=/home/peppermint/.local/share
XDG_SESSION_DESKTOP=sway
XDG_SESSION_TYPE=wayland
XDG_STATE_HOME=/home/peppermint/.local/state
_JAVA_AWT_WM_NONREPARENTING=1

maybe the issue is related to file/dir permissions? i haven't changed them manually, though
~/.mozilla (factory new) permissions are:

drwx------

~/.mozilla contents:

~ ❯❯❯ ls -la .mozilla/
drwx------ - peppermint 21 Sep 15:44 extensions
drwx------ - peppermint 21 Sep 15:44 firefox
drwx------ - peppermint 21 Sep 15:44 systemextensionsdev
~ ❯❯❯ ls -la .mozilla/firefox/redacted.default-release/
.rw-r--r--    0 peppermint 21 Sep 15:44 .parentlock
.rw-r--r--   24 peppermint 21 Sep 15:44 addons.json
.rw-r--r-- 4.4k peppermint 21 Sep 15:44 addonStartup.json.lz4
.rw------- 229k peppermint 21 Sep 15:44 cert9.db
.rw-------  160 peppermint 21 Sep 15:44 compatibility.ini
.rw-r--r--  939 peppermint 21 Sep 15:44 containers.json
.rw-r--r-- 229k peppermint 21 Sep 15:44 content-prefs.sqlite
.rw-r--r--  98k peppermint 21 Sep 15:44 cookies.sqlite
drwx------    - peppermint 21 Sep 15:44 crashes
drwxr-xr-x    - peppermint 21 Sep 15:44 datareporting
.rw-r--r-- 1.3k peppermint 21 Sep 15:44 extension-preferences.json
.rw-r--r--  39k peppermint 21 Sep 15:44 extensions.json
.rw-r--r--  33k peppermint 21 Sep 15:44 favicons.sqlite
.rw-r--r--  33k peppermint 21 Sep 15:44 favicons.sqlite-journal
.rw-r--r--  683 peppermint 21 Sep 15:44 handlers.json
.rw------- 229k peppermint 21 Sep 15:44 key4.db
lrwxrwxrwx   15 peppermint 21 Sep 15:44 lock -> 127.0.1.1:+2609
drwx------    - peppermint 21 Sep 15:44 minidumps
.rw-r--r--  98k peppermint 21 Sep 15:44 permissions.sqlite
.rw-------  482 peppermint 21 Sep 15:44 pkcs11.txt
.rw-r--r--  33k peppermint 21 Sep 15:44 places.sqlite
.rw------- 5.8k peppermint 21 Sep 15:44 prefs.js
.rw-r--r--  66k peppermint 21 Sep 15:44 protections.sqlite
.rw-r--r--  33k peppermint 21 Sep 15:44 protections.sqlite-journal
drwx------    - peppermint 21 Sep 15:44 saved-telemetry-pings
.rw-r--r--  190 peppermint 21 Sep 15:44 search.json.mozlz4
drwxr-xr-x    - peppermint 21 Sep 15:44 security_state
.rw-r--r--  288 peppermint 21 Sep 15:44 sessionCheckpoints.json
drwx------    - peppermint 21 Sep 15:44 sessionstore-backups
.rw------- 3.1k peppermint 21 Sep 15:44 sessionstore.jsonlz4
.rw-r--r--  412 peppermint 21 Sep 15:44 SiteSecurityServiceState.txt
drwxr-xr-x    - peppermint 21 Sep 15:44 storage
.rw-r--r-- 1.0k peppermint 21 Sep 15:44 storage.sqlite
.rw-r--r-- 1.6k peppermint 21 Sep 15:44 storage.sqlite-journal
.rwx------   50 peppermint 21 Sep 15:44 times.json
.rw-------  217 peppermint 21 Sep 15:44 xulstore.json

and aur packages, just in case:

~ ❯❯❯ pacman -Qm
7-zip 21.03-4
adwaita-qt 1.4.0-1
airshipper 0.6.0-1
amdgpu-clocks-git r45.66782ca-1
clipman 1.6.0-1
dxvk-mingw-git 1.9.r6.g8a93bbd8-1
foldingathome 7.6.21-1
greetd 0.8.0-1
linux-xanmod 5.13.19-1
linux-xanmod-headers 5.13.19-1
linux-xanmod-rt 5.13.1-1
linux-xanmod-rt-headers 5.13.1-1
mpv-mpris 0.5-4
onlyoffice-bin 6.3.1-2
opencl-amd 21.30.1290604-1
pandoc-bin 2.14.2-1
protontricks 1.6.0-1
python-vdf 3.4-1
qtfm 6.2.1-1
qview 4.0-1
sway-launcher-desktop 1.5.2-1
swayshot 2.6.0-1
ttf-ms-fonts 2.0-12
unflac r60.f06325e-1
wl-clipboard-x11 5-1
wlogout 1.1.1-3
zlib-ng 2.0.5-1

Offline

#10 2021-09-21 16:23:30

Marc Hef
Member
Registered: 2021-09-20
Posts: 2

Re: [SOLVED] Firefox bookmarks and history don't work due to file locking

Hi there,

I also use f2fs for my home partition, too.
Just i read that we have this in common.

I created a new home partition with ext4 and entered it in the fstab.
With it then firefox runs without problems.

UPDATE:

I just found this: https://www.reddit.com/r/archlinux/comm … ernel_513/

I used an arch linux install usb boot stick for:

$ fsck.f2fs -a /dev/<homepartition>

Then i start my normal system and create a new firefox profile.
Now my f2fs home partition with firefox is working fine.

Last edited by Marc Hef (2021-09-21 16:46:12)

Offline

#11 2021-09-21 19:13:28

mradermaxlol
Member
Registered: 2016-01-10
Posts: 25

Re: [SOLVED] Firefox bookmarks and history don't work due to file locking

Marc Hef wrote:

Hi there,

I also use f2fs for my home partition, too.
Just i read that we have this in common.

I created a new home partition with ext4 and entered it in the fstab.
With it then firefox runs without problems.

UPDATE:

I just found this: https://www.reddit.com/r/archlinux/comm … ernel_513/

I used an arch linux install usb boot stick for:

$ fsck.f2fs -a /dev/<homepartition>

Then i start my normal system and create a new firefox profile.
Now my f2fs home partition with firefox is working fine.

that's interesting, thanks for the tip
i'll check it out later this week, we'll see what happens

seems like something in linux-5.14 originally caused this and then it got backported to the 5.13 tree (because everything was fine with earlier 5.13.X releases)

Offline

#12 2021-09-22 20:50:23

mradermaxlol
Member
Registered: 2016-01-10
Posts: 25

Re: [SOLVED] Firefox bookmarks and history don't work due to file locking

yep, the problem is gone after fsck'ing the home partition from 09.2021 archiso
i will mark this thread as solved, huge thanks for everyone involved!

Offline

Board footer

Powered by FluxBB