# Settings disappeared - arch linux

**URL:** <https://forum.duplicati.com/t/settings-disappeared-arch-linux/11920>\
**Category:** Support\
**Created:** [March 8, 2021, 7:54pm UTC](https://forum.duplicati.com/t/settings-disappeared-arch-linux/11920 "2021-03-08T19:54:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![speckled-snowiness](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@speckled-snowiness](https://forum.duplicati.com/u/speckled-snowiness)\
**Post date:** [March 8, 2021, 7:54pm UTC](https://forum.duplicati.com/t/settings-disappeared-arch-linux/11920/1 "2021-03-08T19:54:47Z")

</div>

New user here.

I’ve been using Duplicati for a few weeks without trouble, but today when I launched the web interface, there were no settings to be seen. My backup setting, schedule, everything was gone. 😱

I ran a system update today `sudo pacman -Syu` ~~and noticed that a new version of Duplicati was included in the update.~~ [Edit: Mis-remembered … Duplicati comes from the AUR and not installed with `pacman`.] After the update, my settings had disappeared. Has this update wiped my settings?

Is this normal behavior? Can I get my backup settings back?

Thanks.

[Edit: TL;DR Because of the way I installed and configured Duplicati, I needed to manually change `User=Duplicati` to `User=root` in the `/usr/lib/systemd/system/duplicati.service’. On reboot, my original settings have returned.]

---

<div class="post-metadata">

**Author:** ![drwtsn32](https://forum.duplicati.com/user_avatar/forum.duplicati.com/drwtsn32/32/2591_2.png) [@drwtsn32](https://forum.duplicati.com/u/drwtsn32)\
**Post date:** [March 8, 2021, 9:44pm UTC](https://forum.duplicati.com/t/settings-disappeared-arch-linux/11920/2 "2021-03-08T21:44:36Z")

</div>

Hello and welcome!

What I hope happened is that you are connecting to Duplicati running in a different context. Many Linux users have it set up as a systemd service, so it runs as root and stores its config files in `/root/.config/Duplicati`. Others run it under their regular user context at logon, so the config files are in `/home/<username>/.config/Duplicati`.

So for now poke around your system in those various folders and see if you can find one with multiple sqlite files. Then we can work on getting Duplicati to run under the context you wish.

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [March 8, 2021, 10:01pm UTC](https://forum.duplicati.com/t/settings-disappeared-arch-linux/11920/3 "2021-03-08T22:01:02Z")

</div>

> [@speckled-snowiness](#):
>
> Is this normal behavior?

Arch Linux does their own package modification which starts Duplicati not as root, but as user duplicati.  
If Arch changed your Duplicati user back, your old config may be in `~root` and your new in `~duplicati`.

> [@drwtsn32](#):
>
> So for now poke around your system in those various folders

Yep.

---

<div class="post-metadata">

**Author:** ![speckled-snowiness](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@speckled-snowiness](https://forum.duplicati.com/u/speckled-snowiness)\
**Post date:** [March 8, 2021, 10:29pm UTC](https://forum.duplicati.com/t/settings-disappeared-arch-linux/11920/4 "2021-03-08T22:29:01Z")

</div>

Thanks for your replies.

Duplicati runs as root, and yes, there is a `/root/.config/Duplicati` folder tree that looks like this:

```
/root/.config/Duplicati
├── control_dir_v2
│ └── lock_v2
├── Duplicati-server.sqlite
└── PBHDHKFWED.sqlite

```

The Duplicati service is enabled and running correctly, according to the output from `sudo systemctl status duplicati.service`:

```
● duplicati.service - Duplicati
     Loaded: loaded (/usr/lib/systemd/system/duplicati.service; enabled; vendor preset: disabled)
     Active: active (running) since Mon 2021-03-08 22:11:58 UTC; 9min ago
   Main PID: 516 (mono)
      Tasks: 12 (limit: 18892)
     Memory: 231.2M
     CGroup: /system.slice/duplicati.service
             └─516 /usr/bin/mono /opt/duplicati-latest/Duplicati.Server.exe --webservice-port=8200

Mar 08 22:11:58 X270 systemd[1]: Started Duplicati.

```

I do not not know what I need to do next to get my settings back. The browser page at `http://localhost:8200/ngax/index.html` just shows “No scheduled tasks”.

---

<div class="post-metadata">

**Author:** ![drwtsn32](https://forum.duplicati.com/user_avatar/forum.duplicati.com/drwtsn32/32/2591_2.png) [@drwtsn32](https://forum.duplicati.com/u/drwtsn32)\
**Post date:** [March 8, 2021, 10:57pm UTC](https://forum.duplicati.com/t/settings-disappeared-arch-linux/11920/5 "2021-03-08T22:57:06Z")

</div>

Can you scan your entire system for any other `Duplicati-server.sqlite` files?

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [March 9, 2021, 2:10am UTC](https://forum.duplicati.com/t/settings-disappeared-arch-linux/11920/6 "2021-03-09T02:10:10Z")

</div>

> [@speckled-snowiness](#):
>
> Duplicati runs as root

How did you confirm that? In GUI, About → System info shows `UserName`, or use `ps -lp` with its PID.  
You must have edited `/usr/lib/systemd/system/duplicati.service` once to make it run as root.  
I want to be sure your update didn’t restore settings as in [Installing Duplicati on Linux (Arch / Manjaro)](https://forum.duplicati.com/t/installing-duplicati-on-linux-arch-manjaro/5529/7).

You can see the path of the database Duplicati uses by taking the child pid and doing `lsof -p <pid>`

```plaintext
mono-sgen 31069 root 5u REG 8,1 57344 531338 /root/.config/Duplicati/Duplicati-server.sqlite
mono-sgen 31069 root 6wW REG 8,1 6 531562 /root/.config/Duplicati/control_dir_v2/lock_v2

```

is from my system. Duplicati runs as root, so it uses the config (and lock file) in root’s home directory.  
The theory everyone is chasing is that your new Duplicati is somehow getting a new configuration file.  
Searching for the file is good, but you can also look directly to see what file your “empty” Duplicati has.

---

<div class="post-metadata">

**Author:** ![warwickmm](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/w/5e9695/32.png) [@warwickmm](https://forum.duplicati.com/u/warwickmm)\
**Post date:** [March 9, 2021, 3:35am UTC](https://forum.duplicati.com/t/settings-disappeared-arch-linux/11920/7 "2021-03-09T03:35:22Z")

</div>

How did you install Duplicati? My understanding is that for Arch it only exists in AUR repositories, so `pacman -Syu` should not update or even mention it.

---

<div class="post-metadata">

**Author:** ![speckled-snowiness](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@speckled-snowiness](https://forum.duplicati.com/u/speckled-snowiness)\
**Post date:** [March 9, 2021, 7:58am UTC](https://forum.duplicati.com/t/settings-disappeared-arch-linux/11920/8 "2021-03-09T07:58:06Z")

</div>

You are correct. I misremembered the sequence and have updated my opening question to reflect this. Of course, Duplicati comes from the AUR. Thanks for the correction.

---

<div class="post-metadata">

**Author:** ![speckled-snowiness](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@speckled-snowiness](https://forum.duplicati.com/u/speckled-snowiness)\
**Post date:** [March 9, 2021, 8:08am UTC](https://forum.duplicati.com/t/settings-disappeared-arch-linux/11920/9 "2021-03-09T08:08:23Z")

</div>

Thanks @tz678 for the tip about checking whether Duplicati was running as `root`. It wasn’t … so I traced back the steps I used to install it in the first place.

TL;DR Because of the way I installed and configured Duplicati, I needed to manually change `User=Duplicati` to `User=root` in the `/usr/lib/systemd/system/duplicati.service’. On reboot, my original settings have returned.

How I installed

```
    $ git clone https://aur.archlinux.org/duplicati-latest.git
    $ cd duplicati-latest
    $ makepkg -si PKGBUILD

    Y to install (with root password)

# Root user power

    $ cd /usr/lib/systemd/system
    $ sudo vim duplicati.service

replace `User=Duplicati` with `User=root`. Save and exit editor

# Reload daemon service

    $ sudo systemctl daemon-reload
    $ sudo systemctl start duplicati.service
    $ sudo systemctl enable duplicati.service

```

In browser, go to `localhost:8200` … previous configuration is used correctly.

Regarding any future updates via the AUR, presumably I will need to repeat this process each time?

Thanks for everyone’s help. Great introduction to the Forum 😄
