vorta icon indicating copy to clipboard operation
vorta copied to clipboard

Vorta doesn't start automatically in KDE Neon

Open dariodcr opened this issue 2 years ago • 6 comments
trafficstars

Description

Vorta doesn't start automatically when they system starts. I ticked the option to do so in the preferences. This creates a .desktop configuration file in /home/.config/autostart. In this file the command to be executed is vorta --daemonized. If I remove the --daemonized argument, I log out and in again, Vorta starts automatically and in the background. Unfortunately, the argument "daemonized" is restored the first time that Vorta runs again.

Could you please fix this?

Reproduction

  • [X] I tried to reproduce the issue.
  • [X] I was able to reproduce the issue.

OS

KDE Neon 5.27, KDE Plasma 5.27.9

Version of Vorta

0.8.3

What did you install Vorta with?

Distribution package

Version of Borg

1.2.0

Logs

2023-10-25 18:39:05,902 - vorta.i18n - DEBUG - Loading translation failed for ['en', 'en-US', 'en-Latn-US'].
2023-10-25 18:39:06,367 - root - INFO - Using NetworkManagerMonitor NetworkStatusMonitor implementation.
2023-10-25 18:39:06,377 - vorta.network_status.network_manager - WARNING - Couldn't load settings for /org/freedesktop/NetworkManager/Settings/2
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/vorta/network_status/network_manager.py", line 52, in get_known_wifis
    settings = self._nm.get_settings(connection_path)
  File "/usr/lib/python3/dist-packages/vorta/network_status/network_manager.py", line 139, in get_settings
    return get_result(settings.call('GetSettings'))
  File "/usr/lib/python3/dist-packages/vorta/network_status/network_manager.py", line 163, in get_result
    raise DBusException("DBus call failed: {}".format(msg.arguments()))
vorta.network_status.network_manager.DBusException: DBus call failed: ['uid 1000 has no permission to perform this operation']
2023-10-25 18:39:06,450 - vorta.borg.jobs_manager - DEBUG - Add job for site default
2023-10-25 18:39:06,451 - vorta.borg.jobs_manager - DEBUG - Start job on site: default
2023-10-25 18:39:06,455 - vorta.borg.borg_job - INFO - Running command /usr/bin/borg --version
2023-10-25 18:39:07,210 - vorta.borg.jobs_manager - DEBUG - Finish job for site: default
2023-10-25 18:39:07,210 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: default
2023-10-25 18:39:07,211 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2023-10-25 18:39:07,215 - vorta.scheduler - INFO - Setting timer for profile 1
2023-10-25 18:39:07,217 - vorta.scheduler - DEBUG - Scheduling next run for 2023-10-25 20:00:00

dariodcr avatar Oct 25 '23 17:10 dariodcr

Is this a duplicate of #1397?

real-yfprojects avatar Oct 31 '23 22:10 real-yfprojects

Is this a duplicate of #1397?

Hello. If I run "vorta --daemonize" from terminal it launches correctly Vorta without error messages, differently from #1397. The problem is at system startup. A workaround I found was to modify the name of vorta.desktop in /.config/autostart/ to vorta1.desktop. In this way Vorta does not overwrite this configuration file adding the "--daemonize" argument and it can launch correctly (minimized) at every system startup.

dariodcr avatar Nov 01 '23 09:11 dariodcr

We need further information to fix this. The crash you describe happened before Vorta could load its logger. Can you provide the output of the vorta --daemonize process that is created at startup?

real-yfprojects avatar Nov 03 '23 12:11 real-yfprojects

We need further information to fix this. The crash you describe happened before Vorta could load its logger. Can you provide the output of the vorta --daemonize process that is created at startup?

I put things back as they were: reverted the name to 'vorta.desktop' and re-added the "--daemonize" argument. I took the lines that I think are relevant: 11/4/23 10:43 AM systemd Starting Vorta... 11/4/23 10:43 AM systemd Starting KSplash "ready" Stage... 11/4/23 10:43 AM systemd Starting KDE Session Restoration... 11/4/23 10:43 AM systemd Started Slimbook Battery Autostart. 11/4/23 10:43 AM systemd Started Snap user application autostart helper. 11/4/23 10:43 AM systemd Started KDE Connect. 11/4/23 10:43 AM systemd Started Vorta.

Nevertheless there is no sign of Vorta actually running. Indeed, when I manually open it it starts backing up, which should have happened at system startup already. Full log in attachment. Vorta problem.txt

dariodcr avatar Nov 04 '23 12:11 dariodcr

No real information in there. Searching on the internet I found that you can add the following lines to the desktop file:

StandardOutput=append:/home/user/log1.log
StandardError=append:/home/user/log2.log

Maybe that helps...

real-yfprojects avatar Nov 07 '23 21:11 real-yfprojects

No real information in there. Searching on the internet I found that you can add the following lines to the desktop file:

StandardOutput=append:/home/user/log1.log
StandardError=append:/home/user/log2.log

Maybe that helps...

Thanks. Unfortunately these lines are ignored, according to the log (see attachment).

dariodcr avatar Nov 15 '23 10:11 dariodcr

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Apr 08 '24 02:04 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Apr 15 '24 02:04 github-actions[bot]