Closed jcookin closed 2 years ago
Hi!
I do not entirely understand what you mean by:
After running run_jottad and then running jottad the jottad daemon breaks and run_jottad must be re-run to get functionality back.
Are you trying to respawn jottad
because you did not find any service with systemctl
?
With release 0.12, the service is now being created in user-slice and not system-slice. This means there the systemd-unit is written to /usr/lib/systemd/user/jottad.service
and not /etc/systemd/system/jottad.service
.
When you run run_jottad
you can check the status of the systemd unit with systemctl --user status jottad
as the user you ran run_jottad
with. Please report back if this works for you
@existemi To your first question
Are you trying to respawn jottad because you did not find any service with systemctl?
I did not actually mean to run this command, I accidentally hit enter when trying out some commands and that is when I noticed the behavior. So no, I was not intentionally trying to respawn the jottad daemon.
With release 0.12, the service is now being created in user-slice and not system-slice. This means there the systemd-unit is written to /usr/lib/systemd/user/jottad.service and not /etc/systemd/system/jottad.service
This is exactly what I was looking for, I am not familiar with user-slice setups like is now being run with v0.12. This will allow me to configure permissions differently, so thank you.
When you run run_jottad you can check the status of the systemd unit with systemctl --user status jottad as the user you ran run_jottad with. Please report back if this works for you
This command works for me and am able to see the service status and logs as expected. I have learned something new today, thank you!
My one recommendation would be to update the posting I originally linked (https://docs.jottacloud.com/en/articles/2932989-jottacloud-cli-and-permissions-on-linux) to align better with the the newest release of the CLI toolkit. Thank you!
Make sure you are running the latest version of jotta-cli before reporting an issue.
jotta-cli release (
jotta-cli version
): 0.12.50392Description of problem: Per https://docs.jottacloud.com/en/articles/2932989-jottacloud-cli-and-permissions-on-linux, Installing on debian-based machines (linux mint and Ubuntu specifically) fails to create the
systemd
file in/etc/systemd/system/jottad.service
which is needed to manage the daemon with systemd/systemctl command. I am trying to manage user groups and permissions to allow all files in a particular directory to be read. I am runningjotta-cli
as the user who's group owns all of the directories (different users own some of the directories however). The System Init (service) file should have been created at install time. Note thatjottad
is running and producing logs.After running
run_jottad
and then runningjottad
the jottad daemon breaks andrun_jottad
must be re-run to get functionality back.upstart and sysvinit files should not be created anymore per the version 0.12 release notes
Expected:
jottad
service is created and can be managed by systemctl/systemd.jotta-cli status (
jotta-cli status
): NominalRelevant logs for the issue (
~/.jottad/jottabackup.log or /var/lib/jotta/jottabackup.log
)Traceback
Additional info: additional logs relevant to jottad daemon conflict with commands (cannot capture newer/more precise logs currently since I want to avoid stopping a current backup in progress):