sudo deja-dup --backup fails with --no-sandbox is not supported

Asked by Scott D

Running deja-dup v40.7 on Ubuntu 20.04

Have specified storage location on attached hard drive and folders to save /etc, /opt, /usr/local
When running with GUI get the message that cannot save the following list of files which are owned by root.

Exit the GUI and run from a shell

sudo deja-dup --backup

and attempts to get authorisation from google account even though this option was not set in the GUI.
fails with:

ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180

Went back to the GUI and select the Google drive storage option and get the Google
Access Granted successfully.

reran the shell command, sudo deja-dup --backup, with same failed result.

Where to from here?

Question information

Language:
English Edit question
Status:
Answered
For:
Déjà Dup Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Michael Terry (mterry) said :
#1

Hello! Yes, Deja Dup doesn't work perfectly when run as root. If you need a full system backup (vs personal file backup), another program might serve your needs better. Here's a little FAQ on the stance there:

https://wiki.gnome.org/Apps/DejaDup/Details#Is_D.2BAOk-j.2BAOA_Dup_a_System_Backup.3F

Revision history for this message
Michael Terry (mterry) said :
#2

But also, to answer some of your issues:

"and attempts to get authorisation from google account even though this option was not set in the GUI."

That was because when run under sudo, Deja Dup doesn't see your user preferences. So it was using the default preferences that the root user has set (Google). Nor can root see your user's Google authentication tokens, so it will make you log in again, as root this time.

"ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180"

Ah, that's probably because we tried to launch a browser to log into Google, and it doesn't like running as root, for security reasons.

Revision history for this message
Scott D (wsdodge) said (last edit ):
#3

Hi Michael,

It appears that all the failed writes are on files with mode 600 (rw-------) that are owned by root.

Yes, I am probably trying to backup folders that are root only. Now in search of another Linux download app... :)

Can you help with this problem?

Provide an answer of your own, or ask Scott D for more information if necessary.

To post a message you must log in.