graysky2 / profile-sync-daemon

Symlinks and syncs browser profile dirs to RAM thus reducing HDD/SDD calls and speeding-up browsers.
https://wiki.archlinux.org/index.php/Profile-sync-daemon
Other
910 stars 88 forks source link

won't clean backup-crashrecovery #153

Closed tukoz closed 8 years ago

tukoz commented 8 years ago

For some times (few weeks) I have to manually delete firefox (stable) and palemoon crashrecovery folders that psd p detects and psd c does not. Arch linux here.

$ psd p
Profile-sync-daemon v6.19 on Arch Linux

 Systemd service is currently unknown.
 Systemd resync-timer is currently unknown.
 Overlayfs v23 is currently active.

Psd will manage the following per /home/USER/.config/psd/psd.conf:

 browser/psname:  firefox/firefox
 owner/group id:  USER/1000
 sync target:     /home/USER/.mozilla/firefox/XXX.Default
 tmpfs dir:       /run/user/1000//USER-firefox-XXX.Default
 profile size:    52M
 overlayfs size:  
 recovery dirs:   1 <- delete with the c option
  dir path/size:  /home/USER/.mozilla/firefox/XXX.Default-backup-crashrecovery-20151115_122922 (52M)
<SNIP>
 browser/psname:  palemoon/palemoon
 owner/group id:  USER/1000
 sync target:     /home/USER/.moonchild productions/pale moon/XXX.TESTin
 tmpfs dir:       /run/user/1000//USER-palemoon-XXX.TESTin
 profile size:    32M
 overlayfs size:  
 recovery dirs:   2 <- delete with the c option
  dir path/size:  /home/USER/.moonchild productions/pale moon/XXX.TESTin-backup-crashrecovery-20151107_000736 (33M)
  dir path/size:  /home/USER/.moonchild productions/pale moon/XXX.TESTin-backup-crashrecovery-20151115_122959 (32M)

 browser/psname:  palemoon/palemoon
 owner/group id:  USER/1000
 sync target:     /home/USER/.moonchild productions/pale moon/XXX.TEMPSYNC
 tmpfs dir:       /run/user/1000//USER-palemoon-XXX.TEMPSYNC
 profile size:    66M
 overlayfs size:  
 recovery dirs:   2 <- delete with the c option
  dir path/size:  /home/USER/.moonchild productions/pale moon/XXX.TEMPSYNC-backup-crashrecovery-20151107_000742 (66M)
  dir path/size:  /home/USER/.moonchild productions/pale moon/XXX.TEMPSYNC-backup-crashrecovery-20151115_123003 (66M)
<SNIP>

Total backup-crashrecovery is 3 for Firefox (have cleaned it some time ago) and 9 for Palemoon.

$ psd c
Profile-sync-daemon v6.19 on Arch Linux

Found no crashrecovery dirs for: /home/USER/.mozilla/firefox/XXX.Default

Found no crashrecovery dirs for: /home/USER/.mozilla/firefox/XXX.TESTin

Found no crashrecovery dirs for: /home/USER/.mozilla/firefox/XXX.Pipol

Found no crashrecovery dirs for: /home/USER/.moonchild productions/palemoon/XXX.default

Found no crashrecovery dirs for: /home/USER/.moonchild productions/pale moon/XXX.TESTin

Found no crashrecovery dirs for: /home/USER/.moonchild productions/palemoon/XXX.TEMPSYNC

Found no crashrecovery dirs for: /home/USER/.moonchild productions/palemoon/XXX.Music
graysky2 commented 8 years ago

Are you defining the browsers in psd.conf? Here I forced a crash with chromium and firefox active, upon rebooting:

% psd p
Ungraceful state detected for /home/facade/.config/chromium so fixing
Ungraceful state detected for /home/facade/.mozilla/firefox/3x39ntb3.default so fixing
Profile-sync-daemon v6.19 on Arch Linux

 Systemd service is currently unknown.
 Systemd resync-timer is currently unknown.
 Overlayfs v23 is currently active.

Psd will manage the following per /home/facade/.config/psd/psd.conf:

 browser/psname:  chromium/chromium
 owner/group id:  facade/100
 sync target:     /home/facade/.config/chromium
 tmpfs dir:       /run/user/1000/facade-chromium
 profile size:    4.8M
 overlayfs size:  
 recovery dirs:   1 <- delete with the c option
  dir path/size:  /home/facade/.config/chromium-backup-crashrecovery-20151115_080953 (4.8M)

 browser/psname:  firefox/firefox
 owner/group id:  facade/100
 sync target:     /home/facade/.mozilla/firefox/3x39ntb3.default
 tmpfs dir:       /run/user/1000/facade-firefox-3x39ntb3.default
 profile size:    13M
 overlayfs size:  
 recovery dirs:   1 <- delete with the c option
  dir path/size:  /home/facade/.mozilla/firefox/3x39ntb3.default-backup-crashrecovery-20151115_080953 (13M)

And then running clean:

% psd c
Profile-sync-daemon v6.19 on Arch Linux

Deleting 1 crashrecovery dir(s) for profile /home/facade/.config/chromium
 /home/facade/.config/chromium-backup-crashrecovery-20151115_080953

Deleting 1 crashrecovery dir(s) for profile /home/facade/.mozilla/firefox/3x39ntb3.default
 /home/facade/.mozilla/firefox/3x39ntb3.default-backup-crashrecovery-20151115_080953

% psd p
Profile-sync-daemon v6.19 on Arch Linux

 Systemd service is currently unknown.
 Systemd resync-timer is currently unknown.
 Overlayfs v23 is currently active.

Psd will manage the following per /home/facade/.config/psd/psd.conf:

 browser/psname:  chromium/chromium
 owner/group id:  facade/100
 sync target:     /home/facade/.config/chromium
 tmpfs dir:       /run/user/1000/facade-chromium
 profile size:    4.8M
 overlayfs size:  
 recovery dirs:   none

 browser/psname:  firefox/firefox
 owner/group id:  facade/100
 sync target:     /home/facade/.mozilla/firefox/3x39ntb3.default
 tmpfs dir:       /run/user/1000/facade-firefox-3x39ntb3.default
 profile size:    13M
 overlayfs size:  
 recovery dirs:   none

I will try again using multiple profiles for firefox as you seem to be

graysky2 commented 8 years ago

Here I have 2 profiles for firefox and cannot reproduce:

% psd p
Ungraceful state detected for /home/facade/.config/chromium so fixing
Ungraceful state detected for /home/facade/.mozilla/firefox/3x39ntb3.default so fixing
Ungraceful state detected for /home/facade/.mozilla/firefox/ry8c6cng.test so fixing
Profile-sync-daemon v6.19 on Arch Linux

 Systemd service is currently unknown.
 Systemd resync-timer is currently unknown.
 Overlayfs v23 is currently active.

Psd will manage the following per /home/facade/.config/psd/psd.conf:

 browser/psname:  chromium/chromium
 owner/group id:  facade/100
 sync target:     /home/facade/.config/chromium
 tmpfs dir:       /run/user/1000/facade-chromium
 profile size:    4.8M
 overlayfs size:  
 recovery dirs:   1 <- delete with the c option
  dir path/size:  /home/facade/.config/chromium-backup-crashrecovery-20151115_081451 (4.8M)

 browser/psname:  firefox/firefox
 owner/group id:  facade/100
 sync target:     /home/facade/.mozilla/firefox/3x39ntb3.default
 tmpfs dir:       /run/user/1000/facade-firefox-3x39ntb3.default
 profile size:    13M
 overlayfs size:  
 recovery dirs:   1 <- delete with the c option
  dir path/size:  /home/facade/.mozilla/firefox/3x39ntb3.default-backup-crashrecovery-20151115_081451 (13M)

 browser/psname:  firefox/firefox
 owner/group id:  facade/100
 sync target:     /home/facade/.mozilla/firefox/ry8c6cng.test
 tmpfs dir:       /run/user/1000/facade-firefox-ry8c6cng.test
 profile size:    13M
 overlayfs size:  
 recovery dirs:   1 <- delete with the c option
  dir path/size:  /home/facade/.mozilla/firefox/ry8c6cng.test-backup-crashrecovery-20151115_081451 (13M)

% psd c
Profile-sync-daemon v6.19 on Arch Linux

Deleting 1 crashrecovery dir(s) for profile /home/facade/.config/chromium
 /home/facade/.config/chromium-backup-crashrecovery-20151115_081451

Deleting 1 crashrecovery dir(s) for profile /home/facade/.mozilla/firefox/3x39ntb3.default
 /home/facade/.mozilla/firefox/3x39ntb3.default-backup-crashrecovery-20151115_081451

Deleting 1 crashrecovery dir(s) for profile /home/facade/.mozilla/firefox/ry8c6cng.test
 /home/facade/.mozilla/firefox/ry8c6cng.test-backup-crashrecovery-20151115_081451
tukoz commented 8 years ago

Thanks for trying to reproduce graysky.

Are you defining the browsers in psd.conf? yeap sure:

6 USE_OVERLAYFS="yes"
7 BROWSERS="firefox palemoon"
8 USE_BACKUPS="yes"

psd with overlayfs runs fine on that box. You think some missing environment var on this box could causes this?

graysky2 commented 8 years ago

I don't know... I would edit /usr/bin/psd and add the set -x for that function, then run it logging the output to sleuth around and see what's not working.