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

I can't start the deamon in ARCH #77

Closed KingYes closed 10 years ago

KingYes commented 10 years ago

Hey @graysky2, you did nice work here :)

But I can't start the deamon in Arch. I installed from the AUR, and I try to start like this:

yakir@localhost ~ $ sudo systemctl start psd psd-resync
Job for psd.service failed. See 'systemctl status psd.service' and 'journalctl -xn' for details.

And this the details:

yakir@localhost ~ $ sudo systemctl status psd.service
● psd.service - Profile-sync-daemon
   Loaded: loaded (/usr/lib/systemd/system/psd.service; disabled)
   Active: failed (Result: exit-code) since Sat 2014-04-12 22:37:55 GMT; 2s ago
     Docs: man:psd(1)
           man:profile-sync-daemon(1)
           https://wiki.archlinux.org/index.php/Profile-sync-daemon
  Process: 19036 ExecStart=/usr/bin/profile-sync-daemon sync (code=exited, status=1/FAILURE)
 Main PID: 19036 (code=exited, status=1/FAILURE)

Apr 12 22:37:55 localhost profile-sync-daemon[19036]: Refusing to start; firefox is running by yakir!
Apr 12 22:37:55 localhost systemd[1]: psd.service: main process exited, code=exited, status=1/FAILURE
Apr 12 22:37:55 localhost systemd[1]: Failed to start Profile-sync-daemon.
Apr 12 22:37:55 localhost systemd[1]: Unit psd.service entered failed state.

And one more info for your debug:

yakir@localhost ~ $ psd preview                       
Profile-sync-daemon v5.47.1 on Arch Linux.

 Systemd service is currently failed.
 Systemd resync service is currently unknown.

Psd will manage the following per /etc/psd.conf settings:

 browser/psname:  epiphany/epiphany
 owner/group id:  yakir/100
 sync target:     /home/yakir/.config/epiphany
 tmpfs dir:       /tmp/yakir-epiphany
 profile size:    1.4M

 browser/psname:  firefox/firefox
 owner/group id:  yakir/100
 sync target:     /home/yakir/.mozilla/firefox/aqrnx2r9.default
 tmpfs dir:       /tmp/yakir-firefox-aqrnx2r9.default
 profile size:    245M
graysky2 commented 10 years ago

Look carefully at your output:

Apr 12 22:37:55 localhost profile-sync-daemon[19036]: Refusing to start; firefox is running by yakir!

I cannot sync the profile with open files without fucking up stuff, so psd will not start if any browser it is expected to sync is using the profiles. Just quit your browser and try again. If you have psd start automatically at boot, you shouldn't have this issue.

KingYes commented 10 years ago

Thanks for your fast replay ! It's seen the zombie. I just try to enable this and reboot my machine.

yakir@localhost ~ $ ps xa | grep firefox
  699 ?        Z      3:02 [firefox-nightly] <defunct>
KingYes commented 10 years ago

OK, after the reboot all seen work's good.

yakir@localhost ~ $ psd preview
Profile-sync-daemon v5.47.1 on Arch Linux.

 Systemd service is currently active.
 Systemd resync service is currently active.

Psd will manage the following per /run/psd.conf settings:

 browser/psname:  epiphany/epiphany
 owner/group id:  yakir/100
 sync target:     /home/yakir/.config/epiphany
 tmpfs dir:       /tmp/yakir-epiphany
 profile size:    1.4M

 browser/psname:  firefox/firefox
 owner/group id:  yakir/100
 sync target:     /home/yakir/.mozilla/firefox/aqrnx2r9.default
 tmpfs dir:       /tmp/yakir-firefox-aqrnx2r9.default
 profile size:    242M

Thanks :)

graysky2 commented 10 years ago

Glad it's working for you... as an aside, your firefox profile is kind of large... have you tried profile-cleaner? Might reduce it by some...

https://aur.archlinux.org/packages/profile-cleaner/

KingYes commented 10 years ago

I'm using with this, sure. By the way, I can use with this when your deamon is running or I need to do other one?

graysky2 commented 10 years ago

Yes, it works MUCH faster if you do since it's all in tmpfs. See the man page of profile-cleaner:

% man pc
...
DESCRIPTION
       Profile-cleaner  is  a very simple shell script that will invoke sqlite3 to vacuum
       and reindex databases belonging to supported browsers and email clients.
       It is compatible with profile-sync-daemon so users need  not  stop  psd  before
       calling profile-cleaner. In fact, profiles will clean much faster when they are
       synced to tmpfs via psd.
...