-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't find sync services status with systemctl #380
Comments
I usually use something like The above will probably not work because the [email protected] unit is only used to depend on two other units: |
Hi @jankatins, thank you for your answer. I tested another time to modify a simple text file in my local grive folder, and I checked in journalctl a few times in the 20 minutes following the change : I only got few I also tried |
Re status: they need the escaped path behind the @, sumilar to the enable for the main unit I assumed that you restarted grive inbetween: can it be that it is stuck somewhere? E.g check with htop if there is a grive binary running or and since when. I sometimes have it stuck and then it doesn't do anything until i restart it. Eg via "killall grive" (which let systemd restart the service). |
I did this also with the command But the I think for me the issue can be closed, I still can't find status with systemctl, but a workarround is to use journalctl to get informations, and debug with the |
It seems it would be good to add a timeout to the grive script systemd unit itself, so this will be resolved automatically. but why it gets stuck is actually also a bug which seems to exist. |
Most of this thread is over my head, but anecdotally I've noticed that updating my system (I'm using Debian Stable so an apt upgrade) can sometimes cause grive to freeze. I don't have any logs or anything. I don't know if it happens when a dependency is updated or if it happens when grive tries to run mid-upgrade... or what. I thought this information might be helpful for anyone trying to track down why grive freezes so I'm dropping it here. I usually just restart my system. Annoying but simple solution. |
I can confirm the bug. I change files locally, the log is full of messages like this:
But no sync is happening. |
Definitely a workaround, but I have this simple script as a hidden file in my grive directory and set to run at startup. Waits two minutes, assumes that's enough time for network to be fully up, starts a sync grive, wait 30min, kill grive (in case it is hanging), loop. No fancy, not a service, no daemons, 'wonky', bad practice to us CD in a script, etc, but it's been keeping grive on both my PC's synced for over a week now with no issues. |
@pyro12 |
There are a number of ways to do that. Most depend on which Desktop Environment you've chosen. I'm using Plasma and it has an 'autostart' tab in settings where you simply direct it to the script you wish to start on boot. iirc, XFCE has a similar setting. I would be surprised if GNOME didn't have one as well. Never done it, but I'm pretty sure you could make it a CRON job, as well. for any of these to work, you of course have to |
#389 runs grive with a timeout of 20min so in theory a stuck grive should not lead to (too much) lost data in case you rely on syncing it out as a backup solution... The number was chosen because I hope that noone would ever upload a file big enough to take 20+min... |
My google-drive folder is located in
~/google-drive
. For now I use to sync it manually with thegrive
command in this folder and it works.But I am not sure how to properly set the partial auto sync feature : after installing inotify-tools, I enter the following command as written in the readme.md file :
which returns the following :
But this does not seem to work : when I try to modify a simple text file in the local google-drive folder, it is not synced to the remote. So I try to check the systemctl status of the service, and I could not find it :
systemctl status grive@$(systemd-escape google-drive).service
returnsUnit grive@google\x2ddrive.service could not be found.
,and
systemctl status grive@
returnsFailed to get properties: Unit name [email protected] is neither a valid invocation ID nor unit name.
I also tried to manually activate changes and timer sync with
but I add the same result.
I am quite sure I am wrong somewhere. How should I get it to work ?
By the way thank you for this amazing tool !
The text was updated successfully, but these errors were encountered: