You are not logged in.

#376 2013-05-29 07:30:34

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,926
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

I run a separate partition for /home and have not had a problem with psd. Will try out latest version....


Mr Green

Offline

#377 2013-05-29 09:01:51

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,719
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

Mr Green wrote:

I run a separate partition for /home and have not had a problem with psd. Will try out latest version....

As do I and nor have I.  Two users reported that on occasion, psd would fail silently so this modification (minor really) should safeguard against that.

Offline

#378 2013-05-29 09:04:46

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,926
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

Updated this morning and psd is working fine.


Mr Green

Offline

#379 2013-06-04 21:55:51

UnsolvedCypher
Member
Registered: 2012-04-28
Posts: 201

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

My psd takes 25 seconds to load at startup. Is there a way to delay it a little, so that it isn't copying stuff at the same time as everyone else?

Offline

#380 2013-06-04 23:19:14

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,719
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

@Unsolved - This is how systemd works.  The psd.service will start as soon as /home is accessible.  One strategy to minimizing start times is to minimize browser profiles.  For example, post the output of `psd p` which shows you how larger your profile(s) are.  A companion util called profile-cleaner which can help.  Moving your cache to tmpfs (not using psd) can help as well.  See the man page of psd for a link.

Offline

#381 2013-06-05 00:36:58

UnsolvedCypher
Member
Registered: 2012-04-28
Posts: 201

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

I have already made my profile smaller. But is there no way to ask the service to wait a few seconds or at least let the gui start first?
  Thank you!

Offline

#382 2013-06-05 00:52:50

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,719
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

I don't know about delay starting a service... you should google it.

Offline

#383 2013-06-28 05:49:53

jose1711
Member
Registered: 2006-07-08
Posts: 147

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

any idea why i am getting this?

Jun 28 07:33:47 olivia profile-sync-daemon[399]: mv: cannot move '/home/jose/.config/chromium' 
Jun 28 07:33:54 olivia profile-sync-daemon[399]: cannot delete non-empty directory: chromium
Jun 28 07:33:54 olivia systemd[1]: Started Profile-sync-daemon.

the chromium directory in tmp is empty:

ls -l /tmp/jose-chromium/
total 0

Offline

#384 2013-06-28 08:43:00

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,719
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

Haven't seen that one.  Post the output of:

psd

Offline

#385 2013-06-28 12:16:25

jose1711
Member
Registered: 2006-07-08
Posts: 147

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

[jose@olivia ~]$ psd
Profile-sync-daemon v5.36.3

 /usr/bin/psd [option]
  preview	Parse config file (/etc/psd.conf) to see which profiles will be managed.
  resync	Synchronize the tmpfs and media bound copy. Must be run as root user.
  sync		Force a manual sync. Must be run as root user and NOT recommended.
  unsync	Force a manual unsync. Must be run as root user and NOT recommended.

 It is HIGHLY DISCOURAGED to directly call /usr/bin/psd to sync or to unsync.
 Instead, use systemd to start/stop profile-sync-daemon.

 systemctl [option] psd psd-resync
  start		Turn on daemon; make symlinks and actively manage targets in tmpfs.
  stop		Turn off daemon; remove symlinks and rotate tmpfs data back to disc.
  enable	Autostart daemon when system comes up.
  disable	Remove daemon from the list of autostart daemons.

[jose@olivia ~]$ psd preview
Profile-sync-daemon v5.36.3 on Arch Linux.

Daemon file /run/psd is present.
Service is currently active.

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

 browser/psname:  chromium/chromium
 owner/group:     jose/users
 sync target:     /home/jose/.config/chromium
 tmpfs dir:       /tmp/jose-chromium
 profile size:    33M

Offline

#386 2013-06-28 17:20:32

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,719
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

Sorry, add a p to it:

psd p 

Offline

#387 2013-06-28 17:21:58

jose1711
Member
Registered: 2006-07-08
Posts: 147

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

it's also in the previous post

Offline

#388 2013-06-28 18:32:22

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,719
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

jose1711 wrote:

it's also in the previous post

I must be blind smile

`psd p` will invoke the preview or parse mode which shows more info about which profiles are to be sync'ed.

Offline

#389 2013-06-28 19:29:55

jose1711
Member
Registered: 2006-07-08
Posts: 147

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

on my computer psd preview gives the very same output as psd p. really.. it's there - you might want to scroll though

Offline

#390 2013-06-28 20:07:47

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,719
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

@jose - OK... post the contents of /etc/psd.conf

Calling just psd on my system:

Profile-sync-daemon v5.36.3

 /usr/bin/psd [option]
  preview	Parse config file (/etc/psd.conf) to see which profiles will be managed.
  resync	Synchronize the tmpfs and media bound copy. Must be run as root user.
  sync		Force a manual sync. Must be run as root user and NOT recommended.
  unsync	Force a manual unsync. Must be run as root user and NOT recommended.

 It is HIGHLY DISCOURAGED to directly call /usr/bin/psd to sync or to unsync.
 Instead, use systemd to start/stop profile-sync-daemon.

 systemctl [option] psd psd-resync
  start		Turn on daemon; make symlinks and actively manage targets in tmpfs.
  stop		Turn off daemon; remove symlinks and rotate tmpfs data back to disc.
  enable	Autostart daemon when system comes up.
  disable	Remove daemon from the list of autostart daemons.

Calling `psd p` on my system:

Profile-sync-daemon v5.36.3 on Arch Linux.

Daemon file /run/psd is present.
Service is currently active.

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

 browser/psname:  chromium/chromium
 owner/group:     graysky/users
 sync target:     /home/graysky/.config/chromium
 tmpfs dir:       /tmp/graysky-chromium
 profile size:    84M

Last edited by graysky (2013-06-28 20:08:03)

Offline

#391 2013-06-28 20:11:38

jose1711
Member
Registered: 2006-07-08
Posts: 147

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

i can't help thinking that your browser is playing dirty tricks on you. please search for "33M" in this page - you should see it immediately.

$ grep -v ^# /etc/psd.conf

USERS="jose"

BROWSERS="chromium"

Offline

#392 2013-06-28 20:17:20

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,719
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

@jose - That is spooky.  In firefox, your code output is truncated; in chromium, I can see a scroll bar.  Very odd!

Everything looks fine for your setup.  Do this:

1) Stop psd
2) Post the output of `ls -l ~/.config | grep chrom`
3) Post the output of `ls -la /tmp`

Offline

#393 2013-06-28 20:39:51

jose1711
Member
Registered: 2006-07-08
Posts: 147

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

[jose@olivia ~]$ ls -l ~/.config | grep chrom
drwx------ 4 jose users  4096 jún 28 00:09 chromium
drwx------ 5 jose users 12288 jún 28 00:09 chromium-backup
[jose@olivia ~]$ ls -la /tmp
celkom 36
drwxrwxrwt 20 root root   580 jún 28 22:08 .
drwxr-xr-x 24 root root  4096 jún 26 19:50 ..
drwxrwxrwx  2 jose users   60 jún 28 15:53 dumps
drwx------  2 jose users   60 jún 28 14:05 .esd-1000
-rw-r--r--  1 jose users    4 jún 28 14:05 fluxgui_jose.pid
-rw-r--r--  1 jose users    0 jún 28 14:05 fluxlog.txt
drwxrwxrwt  2 root root    40 jún 28 14:04 .font-unix
-rw-r--r--  1 jose users 4215 jún 28 21:25 gameoverlayrenderer.log
-rw-r--r--  1 jose users 2903 jún 28 18:12 gameoverlayrenderer.log.last
-rw-r--r--  1 jose users 1247 jún 28 21:25 gameoverlayui.log
-rw-r--r--  1 jose users  612 jún 28 18:12 gameoverlayui.log.last
-rw-r--r--  1 jose users    0 jún 28 21:40 .google-talk-plugin-jose.lock
drwxr-xr-x  2 jose users   60 jún 28 21:57 hsperfdata_jose
drwxrwxrwt  2 root root    60 jún 28 14:05 .ICE-unix
drwxr-xr-x  6 jose users  120 jún 28 21:57 JMapViewerTiles_jose
drwxr-xr-x  2 jose users   40 jún 28 14:04 jose-chromium
-rw-------  1 jose users 1401 jún 28 19:29 Kl4s0VPw.wml.part
drwx------  2 jose users   40 jún 28 14:46 mc-jose
drwx------  2 jose users   40 jan  1  1970 orbit-jose
drwx------  2 jose users   40 jún 28 21:42 plugtmp
drwx------  2 jose users   60 jún 28 14:05 ssh-PuzT7hXGz4hz
drwx------  3 root root    60 jún 28 14:04 systemd-private-m9tdme
drwx------  3 root root    60 jún 28 14:05 systemd-private-V9yRIW
drwx------  3 root root    60 jún 28 14:04 systemd-private-y0WTNo
drwxrwxrwt  2 root root    40 jún 28 14:04 .Test-unix
drwxrwxrwt  2 root root    40 jún 28 14:04 .XIM-unix
-r--r--r--  1 root root    11 jún 28 14:04 .X0-lock
drwxrwxrwt  2 root root    60 jún 28 14:04 .X11-unix
drwxr-xr-x  2 jose users   40 jún 28 21:42 yaourt-tmp-jose

Offline

#394 2013-06-28 21:46:21

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,719
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

OK.  Based on your output, you do not have any symlinks in ~/.config but two copies of the profile for some reason.  Do this:

1) Verify that the daemon is stopped, `psd p | grep run` which should return a value of:

Daemon file /run/psd is not present.

If the output says that it is in fact present, you didn't stop psd.

2) `mv ~/.config/chromium-backup ~/.config/chromium-backup-stalled`
3) `mv /tmp/jose-chromium ~/.config/jose-chromium-from-tmp-stalled`

This should effectively return your system to the native state.  Now start psd and again post the output of:
4) Post the output of `ls -l ~/.config | grep chrom`
5) Post the output of `ls -la /tmp`

Offline

#395 2013-06-28 21:53:48

jose1711
Member
Registered: 2006-07-08
Posts: 147

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

[jose@olivia ~]$ ls -l ~/.config | grep chrom
lrwxrwxrwx 1 jose users    18 jún 28 23:52 chromium -> /tmp/jose-chromium
drwx------ 4 jose users  4096 jún 28 00:09 chromium-backup
drwx------ 5 jose users 12288 jún 28 00:09 chromium-backup-stalled
drwxr-xr-x 2 jose users  4096 jún 28 14:04 jose-chromium-from-tmp-stalled
[jose@olivia ~]$ ls -la /tmp
celkom 40
drwxrwxrwt 20 root root   580 jún 28 23:52 .
drwxr-xr-x 24 root root  4096 jún 26 19:50 ..
drwxrwxrwx  2 jose users   60 jún 28 15:53 dumps
drwx------  2 jose users   60 jún 28 14:05 .esd-1000
-rw-r--r--  1 jose users    4 jún 28 22:52 fluxgui_jose.pid
-rw-r--r--  1 jose users 2020 jún 28 22:53 fluxlog.txt
drwxrwxrwt  2 root root    40 jún 28 14:04 .font-unix
-rw-r--r--  1 jose users 2638 jún 28 23:26 gameoverlayrenderer.log
-rw-r--r--  1 jose users 4389 jún 28 23:17 gameoverlayrenderer.log.last
-rw-r--r--  1 jose users  612 jún 28 23:26 gameoverlayui.log
-rw-r--r--  1 jose users 1767 jún 28 23:17 gameoverlayui.log.last
-rw-r--r--  1 jose users    0 jún 28 21:40 .google-talk-plugin-jose.lock
drwxr-xr-x  2 jose users   40 jún 28 22:40 hsperfdata_jose
drwxrwxrwt  2 root root    60 jún 28 14:05 .ICE-unix
drwxr-xr-x  6 jose users  120 jún 28 21:57 JMapViewerTiles_jose
drwx------  4 jose users  360 jún 28 00:09 jose-chromium
-rw-------  1 jose users 1401 jún 28 19:29 Kl4s0VPw.wml.part
drwx------  2 jose users   40 jún 28 14:46 mc-jose
drwx------  2 jose users   40 jan  1  1970 orbit-jose
drwx------  2 jose users   40 jún 28 22:43 plugtmp
drwx------  2 jose users   60 jún 28 14:05 ssh-PuzT7hXGz4hz
drwx------  3 root root    60 jún 28 14:04 systemd-private-m9tdme
drwx------  3 root root    60 jún 28 14:05 systemd-private-V9yRIW
drwx------  3 root root    60 jún 28 14:04 systemd-private-y0WTNo
drwxrwxrwt  2 root root    40 jún 28 14:04 .Test-unix
drwxrwxrwt  2 root root    40 jún 28 14:04 .XIM-unix
-r--r--r--  1 root root    11 jún 28 14:04 .X0-lock
drwxrwxrwt  2 root root    60 jún 28 14:04 .X11-unix
drwxr-xr-x  2 jose users   40 jún 28 21:42 yaourt-tmp-jose

Offline

#396 2013-06-28 23:08:03

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,719
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

Looks good now.  When you are 100 % sure that everything is good and that your profile is intact, you can delete both the temp dirs:

chromium-backup-stalled
jose-chromium-from-tmp-stalled

Tell me, do you get the error you originally saw now?

Offline

#397 2013-06-29 06:13:42

jose1711
Member
Registered: 2006-07-08
Posts: 147

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

thank you, seems to be working fine. now the only thing which relates to psd is:

Jun 29 08:09:40 olivia systemd[1]: Started Profile-sync-daemon.

Offline

#398 2013-06-29 10:18:21

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,719
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

YW.  That is exactly what you should see.

% status psd  
psd.service - Profile-sync-daemon
   Loaded: loaded (/usr/lib/systemd/system/psd.service; enabled)
   Active: active (exited) since Sat 2013-06-29 06:13:12 EDT; 4min 34s ago
     Docs: man:psd(1)
           man:profile-sync-daemon(1)
           https://wiki.archlinux.org/index.php/Profile-sync-daemon
  Process: 517 ExecStart=/usr/bin/profile-sync-daemon sync (code=exited, status=0/SUCCESS)

Jun 29 06:13:12 ease systemd[1]: Started Profile-sync-daemon.

Offline

#399 2013-06-29 21:38:46

Mindstormscreator
Member
Registered: 2012-07-01
Posts: 186

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

Any plans for dwb support soon? Thought I could get away with using anything-sync-daemon, lost my profile lol

Offline

#400 2013-06-29 22:17:37

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,719
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

Mindstormscreator wrote:

Any plans for dwb support soon?

Never heard of it... how large is its profile dir?  Frankly, I added support for another 'obscure' browser and realized while testing that its profile was tiny and not really worthy of syncing.  Can't remember which one, but it's in there.

Offline

Board footer

Powered by FluxBB