You are not logged in.

#301 2015-09-21 19:26:19

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

Ok, this is weird:
- after starting chromium and loading my starting page

Anything-sync-daemon v5.73 on Arch Linux

 Systemd service is currently active.
 Systemd resync service is currently active.
 Overlayfs v23 is currently active.

Asd will manage the following per /run/asd.conf settings:

 owner/group id:     azure/1000
 target to manage:   /home/azure/.cache/chromium
 sync target:        /home/azure/.cache/.chromium-backup_asd
 tmpfs target:       /tmp/asd-azure/home/azure/.cache/chromium
 dir size:           29M
 overlayfs size:     492K
 recovery dirs:      none

After loading another page:

owner/group id:     azure/1000
 target to manage:   /home/azure/.cache/chromium
 sync target:        /home/azure/.cache/.chromium-backup_asd
 tmpfs target:       /tmp/asd-azure/home/azure/.cache/chromium
 dir size:           30M
 overlayfs size:     1.5M
 recovery dirs:      none

And yet another one:

owner/group id:     azure/1000
 target to manage:   /home/azure/.cache/chromium
 sync target:        /home/azure/.cache/.chromium-backup_asd
 tmpfs target:       /tmp/asd-azure/home/azure/.cache/chromium
 dir size:           33M
 overlayfs size:     4.1M
 recovery dirs:      none

Why is dir size increasing? Shouldn't only the overlay size increase until stuff is flushed to disc? I'm still having this problem of disappearing caches btw.


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

#302 2015-09-21 20:54:39

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

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

As you use the browser data gets written.  Mine changes over time as well... there could be a bug in systemd to blame: https://github.com/systemd/systemd/issu … -129321761


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#303 2015-09-23 10:29:38

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

I expected only overlayfs size to grow until it's synced, if that's wrong, then I guess it's all right.

There is definitely something fishy going on here, though, but for some reason only for chromium. My cache just resetted itself again:

target to manage:   /home/azure/.cache/chromium
 sync target:        /home/azure/.cache/.chromium-backup_asd
 tmpfs target:       /tmp/asd-azure/home/azure/.cache/chromium
 dir size:           30M
 overlayfs size:     392K
 recovery dirs:      none

I just checked and sync target dir size is actually 89M - but it only shows 30M?

Meanwhile, vivaldi cache is working as expected, at least so far.

edit: I tried copying the full cache from the sync target to tmpfs target and starting chromium - it dropped cache. Is there maybe some sort of "corruption" it's detecting?
edit2: disabled syncing for chromium, replaced cache again and it dropped it again. I guess syncing chromium cache is not viable for some reason.

Last edited by Soukyuu (2015-09-23 10:34:33)


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

#304 2015-09-23 19:32:13

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

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

On the initial setup, the overlayfs size should be 0.  As you write data, it will grow but should never exceed the dir size.  I dunno about cache; I just mount ~/.cache to tmpfs in my /etc/fstab and let it get cleared on reboot since it's just temp files anyway.  Does chromium have a cache purge option that does it?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#305 2015-09-23 20:51:32

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

It doesn't seem to have automatic cache purging, only manual. Besides, it shouldn't be purging caches that are only around 80Mb in size. I also don't have RAM errors which would explain why the cache seems to get corrupted in tmpfs but not on hdd. I'll follow the situation a little for now. Clearing cache on reboot is not really an option for me, because of my slow internet connection, there is a real boost in loading speed when keeping the cache. I guess my SSD will have to suffer a bit more for now.


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

#306 2015-09-23 21:14:14

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

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

Well, if you're using psd to manage the profile itself, would muck up things if you created a new dir in that and symlinked the live cache to it?

mkdir ~/.config/chromium/MYCACHE
ln -s ~/.config/chromium/MYCACHE ~/.cache/chromium

I wonder if that would work?  Make sure you stop both psd and asd before you try it and always backup your profile to a nice safe tarball.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#307 2015-11-09 03:40:10

nariox
Member
Registered: 2014-03-19
Posts: 128

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

I'm having some trouble getting asd to work with nginx/php-fpm. For some reason php-fpm can't read the asd'ed scripts. Nginx spits out this:

2015/11/08 22:34:50 [error] 14927#0: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream,
client: 127.0.0.1, server: , request: "GET /info.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "ark.local"

Any idea what this might be?

EDIT:  I've tried adding the temp folders to the basedir, no dice... However, if I run php-fpm as root, it seems to work, which makes me feel it's a permission issue? (I've tested on a simple phpinfo() page and it still won't work, so I don't think I have the same issue as berot.

Last edited by nariox (2015-11-09 04:04:59)

Offline

#308 2015-11-09 09:40:16

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

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

Overlayfs or not?  What are the permissions on the directory and does the user running the webserver have rights to rwx them?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#309 2015-11-09 13:58:38

nariox
Member
Registered: 2014-03-19
Posts: 128

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

@graysky: Overlayfs is enabled (but disabling it does not help), permissions to the directory are rwx for the user running nginx (http - which is also running php-fpm). Static files are being served correctly.

Offline

#310 2015-11-09 19:29:54

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

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

@nariox - If it isn't a permissions issue, I don't know what within that package is angry about the symlink or the overlayfs mount.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#311 2015-11-10 16:41:15

nariox
Member
Registered: 2014-03-19
Posts: 128

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

@graysky: who knows. Executing these php scripts with php as 'http' works just fine. This just adds to the mystery...
I wish I had the time to properly debug it. The logs for php-fpm show nothing. The only log that is showing anything is nginx, and that message is hardly helpful.
Well, I'll keep an eye for a solution, if I find it, I'll post it here.

Offline

#312 2015-11-10 19:32:27

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

graysky wrote:

Well, if you're using psd to manage the profile itself, would muck up things if you created a new dir in that and symlinked the live cache to it?

mkdir ~/.config/chromium/MYCACHE
ln -s ~/.config/chromium/MYCACHE ~/.cache/chromium

I wonder if that would work?  Make sure you stop both psd and asd before you try it and always backup your profile to a nice safe tarball.

An update about this: seems to actually work, I haven't lost any caches so far, so I'd say it's unlikely to happen again. Now I wonder what the difference between the two scripts is. I know it says something about psd having more checks in place or something, wouldn't it make sense to introduces (some of) them into asd as well?


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

#313 2015-11-14 00:43:22

hoangngan82
Member
Registered: 2013-09-21
Posts: 5

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

Hello,
I asd one of my folder that contains Latex files and other symlinks. I use the default configuration file. Recently, I don't know why when I open a file in vim, I cannot save it due to error E212. I can force it to save and after that everything is fine. All other file in that folder cannot be *touch* unless I force it first. Does anyone know the reason why? Thanks.


vimtutorial - VIMperator - vimprobable2 smile

Offline

#314 2015-11-14 01:59:21

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

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

Not sure, almost sounds like a permissions issue... what does output of `stat /foo/bar` look like?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#315 2015-11-14 18:12:34

hoangngan82
Member
Registered: 2013-09-21
Posts: 5

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

Belows are the outputs. Thanks!

stat ~/scratch
  File: ‘/home/hoangngan/scratch’ -> ‘/tmp/asd-hoangngan/home/hoangngan/scratch’
  Size: 41              Blocks: 0          IO Block: 4096   symbolic link
Device: 812h/2066d      Inode: 18223630    Links: 1
Access: (0777/lrwxrwxrwx)  Uid: ( 1000/hoangngan)   Gid: ( 1000/hoangngan)
Access: 2015-11-14 10:09:12.199981254 -0800
Modify: 2015-11-14 10:09:12.196647921 -0800
Change: 2015-11-14 10:09:12.196647921 -0800
 Birth: -
stat ~/scratch/
  File: ‘.’
  Size: 60              Blocks: 0          IO Block: 4096   directory
Device: 2ah/42d Inode: 339582      Links: 1
Access: (0755/drwxr-xr-x)  Uid: ( 1000/hoangngan)   Gid: ( 1000/hoangngan)
Access: 2015-11-14 10:09:43.606647636 -0800
Modify: 2015-11-14 10:09:12.193314587 -0800
Change: 2015-11-14 10:09:12.199981254 -0800
 Birth: -

and

df -h
tmpfs           786M  151M  635M  20% /run/user/1000
overlaid        786M  151M  635M  20% /run/user/1000/hoangngan-firefox-4ze2rv7s.default
overlaid        3.9G  913M  3.0G  24% /tmp/asd-hoangngan/home/hoangngan/.config
overlaid        3.9G  913M  3.0G  24% /tmp/asd-hoangngan/home/hoangngan/scratch

Last edited by hoangngan82 (2015-11-14 18:14:13)


vimtutorial - VIMperator - vimprobable2 smile

Offline

#316 2016-02-02 17:31:38

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,438

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

syncing /var/log creates problem with pacman, (during installing/upgrading), one example below

error: failed to commit transaction (conflicting files)
roundcubemail: /var/log exists in filesystem
Errors occurred, no packages were upgraded.

Offline

#317 2016-02-02 19:31:32

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

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

@Docbroke - Yes, pacman refuses to write to symlinks for quite a while now.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#318 2016-04-29 17:01:51

nmiculinic
Member
Registered: 2015-12-25
Posts: 63

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

I'm looking at wiki page, and I cannot find the answer to my question.

Does asd copies everything from sync targets to tmpfs or only on first usage? I'm asking because I might mount ~8GB folder into asd and pulling everything would be trashing my own PC for no good reason. The folder in question is my google-drive-ocamlfuse and I'd like to be able to move fast on it and not wait too much for sync with google servers.

Offline

#319 2016-04-29 18:38:55

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

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

@nmiculinic - Yes, with USE_OVERLAYFS disabled, everything you define in the WHATTOSYNC array will be copied.  With USE_UVERLAYFS enabled, only changes are written.  See the man or wiki page for more.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#320 2016-04-30 11:19:35

nmiculinic
Member
Registered: 2015-12-25
Posts: 63

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

Ok, thank you for you response. I'm trying to keep some folders in sync with cloud storage and am using grive for sync. I've made following unit file:

[Unit]
Description=Google-disk
Documentation=https://github.com/vitalif/grive2/
After=asd.service

[Service]
Type=simple
ExecStart=/usr/bin/grive -p /home/lpp/gdrive

[Install]
Alias=default.target

Is the After=asd.service enough to ensure that all symbolic links are set up and that are no race conditions in the system?

Offline

#321 2016-04-30 11:23:34

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

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

@nmiculinic - Not sure... I find systemd units to be counter intuitive.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#322 2017-06-24 05:45:07

emphire
Member
From: Canada
Registered: 2007-03-21
Posts: 203

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

Do you know if there's an easy way to get systemd services to start after asd is done the initial syncing?

I have some suggestions if they're not too hard to implement:

1. Add a user systemd service that can be run with systemctl --user start asd (a bit like psd)
2. Add an option to only start/stop specific mounts. ie: systemctl start asd@varlog

Offline

#323 2017-06-30 08:04:20

Mox
Member
Registered: 2012-02-07
Posts: 32

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

And is there a way to get the getty@tty*.service files to wait until has finished syncing?
When I boot up my computer and log in immediately when the login prompt appears, the syncing is not yet complete and most programs relying on the synced data will error out.
I found out that adding

Before=getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service

to asd.service would probably help, but is this the proper way to achieve this or am I overlooking something?

Offline

#324 2017-08-15 23:33:13

haxr4hire
Member
Registered: 2017-08-15
Posts: 1

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

So I have a folder that is synced using ASD, as there is a file in that folder i update every minute. I have set the asd-resync.timer for 5m (eventually want to use 5hr). After I start ASD, the folder is created in tmpfs (/dev/shm). To check if it all works, i use inotifywait to watch that directory. My expectation is that the directory will be "sycned" every 5 minutes; even though it is updated every minute in ram. However my results are that i see that folder/file synced every minute.

For example:
File that is updated every minute: /var/log/syslog
asd.conf:
WHATTOSYNC=('/var/log')
VOLATILE="/dev/shm"
USE_OVERLAYFS="yes"

Output of `inotifywait -m -r -e modify,close_write /var` every minute:
/var/log/.log-backup_asd MODIFY syslog

PS: i am running debian 9 (with overlayfs and systemd)

Last edited by haxr4hire (2017-08-15 23:39:38)

Offline

#325 2017-11-22 08:53:57

timofonic
Member
Registered: 2007-05-15
Posts: 47

Re: anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

Hello.

I have issues with ASD. I need to use environments like Eclipse and it worked a lot faster when putting both  Eclipse, WorkSpace and such in RAM (any other suggestion? I was considering to put more things like the JVM too, but this error happened). But suddenly started to fail.

I also sent this message to AUR, ARCH BBS and as an issue at the GitHub project. I finally edited it with BBCode and converted to Markdown, to avoid wasting more time. Sorry for the redundant links.

#
# /etc/asd.conf
#
# For documentation, refer to the asd man page

## WARNING Do NOT edit anything in this file while asd is running!
## To protect data from corruption, in the event that you do make an edit
## while asd is active, any changes made will be applied the next time
## you start-up asd.

# Define the target(s) directories in the WHATTOSYNC array.
# Do NOT define a file! These MUST be directories with an absolute path.
#
# Note that the target DIRECTORIES and all subdirs under them will be included.
# In other words, this is recursive.
#
# Below is an example to whet your appetite.
#WHATTOSYNC=('/srv/http' '/var/lib/monitorix' '/foo/bar')
WHATTOSYNC=('/usr/lib/eclipse' '/home/timofonic/Documents/Estudios/DAM/PRO/EclipseWorkspace/')

# Define where data will reside in tmpfs.
# This location must be mounted to tmpfs and MUST be writable and executable.
#
# If using bleachbit, do NOT invoke it with the '--clean system.tmp' switch or
# you will remove a key dot file (.foo) from /tmp that asd needs to keep track
# of sync status.
#
# Note that using a value of '/dev/shm' can cause problems with systemd's
# NAMESPACE spawning only when users enable the overlayfs option.
#
VOLATILE="/tmp"

# Uncomment and set to yes to use an overlayfs instead of a full copy to reduce
# the memory costs and to improve sync/unsync operations.
#
# You must modprobe either the 'overlayfs' or 'overlay' module prior to running asd if
# you enable this option. Distros running the linux kernel version >=3.18.0 are likely
# using the 'overlay' module while some distros shipping older kernels, notably Ubuntu
# provide the older version of this technology which is provided in the 'overlayfs'
# module not 'overlay' module.
USE_OVERLAYFS="yes"

# Uncomment and set to no to completely disable the crash recovery feature of asd.
#
# The default is to create crash recovery backups if the system is ungracefully
# powered-down due to a kernel panic, hitting the reset switch, battery going
# dead, etc. Some users keep very diligent backups and don't care to have this
# feature enabled.
USE_BACKUPS="yes"

# Uncomment and set to an integer that is the maximum number of crash recovery
# snapshots to keep (the oldest ones are delete first).
#
# The default is to save the most recent 5 crash recovery snapshots.
BACKUP_LIMIT=20

First error:

Nov 09 12:56:33 timolaptop systemd[1]: asd.service: Main process exited, code=exited, status=1/FAILURE
Nov 09 12:56:33 timolaptop systemd[1]: asd.service: Failed with result 'exit-code'.
Nov 09 12:56:33 timolaptop systemd[1]: Failed to start Anything-sync-daemon.
Nov 09 12:56:33 timolaptop systemd[1]: anbox-container-manager.service: Main process exited, code=exited, status=127
/n/a
Nov 09 12:56:33 timolaptop systemd[1]: asd-resync.service: Main process exited, code=exited, status=1/FAILURE
Nov 09 12:56:33 timolaptop systemd[1]: asd-resync.service: Failed with result 'exit-code'.
Nov 09 12:56:33 timolaptop systemd[1]: Failed to start Timed resync.
Nov 09 12:56:37 timolaptop systemd[1]: tmp.mount: Directory /tmp to mount over is not empty, mounting anyway.

Then some days later...

● asd.service - Anything-sync-daemon
   Loaded: loaded (/usr/lib/systemd/system/asd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2017-11-20 08:22:58 CET; 6min ago
     Docs: man:asd(1)
           man:anything-sync-daemon(1)
           https://wiki.archlinux.org/index.php/Anything-sync-daemon
  Process: 897 ExecStart=/usr/bin/anything-sync-daemon sync (code=exited, status=1/FAILURE)
 Main PID: 897 (code=exited, status=1/FAILURE)
      CPU: 11ms

Nov 20 08:22:56 timolaptop systemd[897]: asd.service: Executing: /usr/bin/anything-sync-daemon sync
Nov 20 08:22:57 timolaptop anything-sync-daemon[897]: /tmp is not tmpsfs so running asd is pointless. Aborting.
Nov 20 08:22:58 timolaptop systemd[1]: asd.service: Child 897 belongs to asd.service
Nov 20 08:22:58 timolaptop systemd[1]: asd.service: Main process exited, code=exited, status=1/FAILURE
Nov 20 08:22:58 timolaptop systemd[1]: asd.service: Failed with result 'exit-code'.
Nov 20 08:22:58 timolaptop systemd[1]: asd.service: Changed start -> failed
Nov 20 08:22:58 timolaptop systemd[1]: asd.service: Job asd.service/start finished, result=failed
Nov 20 08:22:58 timolaptop systemd[1]: Failed to start Anything-sync-daemon.
Nov 20 08:22:58 timolaptop systemd[1]: asd.service: Unit entered failed state.
Nov 20 08:22:58 timolaptop systemd[1]: asd.service: Consumed 11ms CPU time

Here is my entire mount output, tmp seems mounted as tmpfs...


mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=3780952k,nr_inodes=945238,mode=75
5)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relat
ime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmod
e=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (rw,mode=755)
cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,n
sdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xa
ttr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,rela
time)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,re
latime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpu
set)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,de
vices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,fr
eezer)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatim
e,cpu,cpuacct)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime
,perf_event)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blki
o)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,mem
ory)
/dev/sdb7 on / type ext4 (rw,relatime,data=ordered)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=40,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
systemd-1 on /mnt/windoze type autofs (rw,relatime,fd=44,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
systemd-1 on /mnt/peque type autofs (rw,relatime,fd=46,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
systemd-1 on /home type autofs (rw,relatime,fd=47,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
none on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/sdb2 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sdb8 on /home type ext4 (rw,relatime,data=ordered,x-systemd.automount)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=758232k,mode=700,uid=1000,gid=100)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
/dev/sda1 on /mnt/peque type ext4 (rw,relatime,data=ordered,x-systemd.automount)

ASD uses two daemons, one to sync. I didn't remember it. Here's the output of  "systemctl status asd-resync" status log.


● asd-resync.service - Timed resync
   Loaded: loaded (/usr/lib/systemd/system/asd-resync.service; enabled; vendor preset: disabled)
   Active: inactive (dead) since Wed 2017-11-22 08:30:06 CET; 4min 7s ago
     Docs: man:asd(1)
           man:anything-sync-daemon(1)
           https://wiki.archlinux.org/index.php/Anything-sync-daemon
  Process: 7312 ExecStart=/usr/bin/anything-sync-daemon resync (code=exited, status=0/SUCCESS)
 Main PID: 7312 (code=exited, status=0/SUCCESS)
      CPU: 3.994s

Nov 22 08:30:00 timolaptop systemd[1]: Starting Timed resync...
Nov 22 08:30:00 timolaptop systemd[7312]: asd-resync.service: Executing: /usr/bin/anything-sync-daemon resync
Nov 22 08:30:06 timolaptop anything-sync-daemon[7312]: Sync successful
Nov 22 08:30:06 timolaptop systemd[1]: asd-resync.service: cgroup is empty
Nov 22 08:30:06 timolaptop systemd[1]: asd-resync.service: Child 7312 belongs to asd-resync.service
Nov 22 08:30:06 timolaptop systemd[1]: asd-resync.service: Main process exited, code=exited, status=0/SUCCESS
Nov 22 08:30:06 timolaptop systemd[1]: asd-resync.service: Changed start -> dead
Nov 22 08:30:06 timolaptop systemd[1]: asd-resync.service: Job asd-resync.service/start finished, result=done
Nov 22 08:30:06 timolaptop systemd[1]: Started Timed resync.
Nov 22 08:30:06 timolaptop systemd[1]: asd-resync.service: Consumed 3.994s CPU time

I used "systemctl status asd" again and this is the output:

asd.service - Anything-sync-daemon
   Loaded: loaded (/usr/lib/systemd/system/asd.service; enabled; vendor preset: disabled)
   Active: active (exited) since Wed 2017-11-22 08:30:00 CET; 14min ago
     Docs: man:asd(1)
           man:anything-sync-daemon(1)
           https://wiki.archlinux.org/index.php/Anything-sync-daemon
  Process: 894 ExecStart=/usr/bin/anything-sync-daemon sync (code=exited, status=0/SUCCESS)
 Main PID: 894 (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 4915)
   Memory: 0B
      CPU: 0
   CGroup: /system.slice/asd.service

Nov 22 08:25:21 timolaptop systemd[894]: asd.service: Executing: /usr/bin/anything-sync-daemon sync
Nov 22 08:26:11 timolaptop anything-sync-daemon[894]: Ungraceful state detected for /usr/lib/eclipse so fixing
Nov 22 08:26:42 timolaptop anything-sync-daemon[894]: Ungraceful state detected for /home/timofonic/Documents/Estudios/DAM/PRO/EclipseWorkspace s
Nov 22 08:26:51 timolaptop anything-sync-daemon[894]: Sync successful
Nov 22 08:30:00 timolaptop systemd[1]: asd.service: cgroup is empty
Nov 22 08:30:00 timolaptop systemd[1]: asd.service: Child 894 belongs to asd.service
Nov 22 08:30:00 timolaptop systemd[1]: asd.service: Main process exited, code=exited, status=0/SUCCESS
Nov 22 08:30:00 timolaptop systemd[1]: asd.service: Changed start -> exited
Nov 22 08:30:00 timolaptop systemd[1]: asd.service: Job asd.service/start finished, result=done
Nov 22 08:30:00 timolaptop systemd[1]: Started Anything-sync-daemon.

Mysteriously, now ASD works! But Eclipse gave me this error message...
rZPICwh.png

As you can see in the following screenshot, Eclipse is aware of symlinks used in the environment. Might that be part of the issue?

nofPB0d.png

What about using directory binding or any other way? I found some ASD forks and attempted to merge them (I found their features quite interesting), but I have yet not tested the code and not time for it due to exams.

Whats happening? I have no idea. Can someone help me?

Thanks in advance! smile

PS: I did a humble quick & dirty unfork from others of your great project. I'm sure it's full of faults (I'm struggling to learn computer programming), but some implemented ideas were interesting. I have no time to test it, just played a bit with the code. I'm sorry for the aberrations (too stupid errors, etc) in the code.

Offline

Board footer

Powered by FluxBB