Little long… Trying to explain my understanding and make sure I get it…
I understand that things are stored in ~/.config/Duplicati
If I run normal (launching the app myself as a user), it would store my jobs in ~user/.config/Duplicati. If the plists are owned by root, and they launch duplicati at startup, they would look for my jobs in ~root/.config/Duplicati. Obviously, they are not there, so the job list is empty. That makes sense to me.
When I run duplicate as a user, I see the following run:
$ ps aux |grep -i duplica
st 567 0.0 0.5 4189112 39892 ?? S 8:12PM 0:01.04 /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Applications/Duplicati.app/Contents/Resources/OSXTrayHost/osx-trayicon-rumps.py
st 499 0.0 0.6 4310468 47420 ?? S 8:12PM 0:01.72 Duplicati Duplicati.GUI.TrayIcon.exe
st 451 0.0 0.0 4226288 1100 ?? S 8:12PM 0:00.00 /bin/bash /Applications/Duplicati.app/Contents/MacOS/duplicati --hosturl="http://localhost:8200" --no-hosted-server
root 108 0.0 1.1 4498896 92644 ?? S 8:12PM 0:02.63 Duplicati Server Duplicati.Server.exe --webservice-port=8200
root 110 0.0 0.0 4299788 1100 ?? Ss 8:12PM 0:00.01 /bin/bash /Applications/Duplicati.app/Contents/MacOS/duplicati-server --webservice-port=8200
st 1247 0.0 0.0 4278252 872 s000 S+ 8:19PM 0:00.00 grep -i duplica
some of it is run as root and some is run my user (st).
When I run duplicati via plist owned by root at startup, all is run by root. So I’m thinking that the part that looks for the jobs is in the tray icon code <-- speculation, need to confirm. If it was run by the user, so it would look in ~user/.config/Duplicati
So, what I did was move the tray icon plist from /Library/LaunchAgents to ~/Library/LaunchAgent. That way it is run by the user. I restarted, and now I see:
st 529 0.0 0.5 4420112 39892 ?? S 8:35PM 0:01.04 /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Applications/Duplicati.app/Contents/Resources/OSXTrayHost/osx-trayicon-rumps.py
st 487 0.0 0.6 4391568 47420 ?? S 8:35PM 0:01.72 Duplicati Duplicati.GUI.TrayIcon.exe --hosturl="http://localhost:8200" --no-hosted-server
st 483 0.0 0.0 4273588 1100 ?? S 8:35PM 0:00.00 /bin/bash /Applications/Duplicati.app/Contents/MacOS/duplicati --hosturl="http://localhost:8200" --no-hosted-server
root 169 0.0 1.1 4460196 92644 ?? S 8:35PM 0:02.63 Duplicati Server Duplicati.Server.exe --webservice-port=8200
root 100 0.0 0.0 4287788 1100 ?? Ss 8:35PM 0:00.01 /bin/bash /Applications/Duplicati.app/Contents/MacOS/duplicati-server --webservice-port=8200
st 687 0.0 0.0 4267752 872 s000 S+ 8:37PM 0:00.00 grep -i duplica
OK. Tray stuff is running as user, but still no luck.
I notice that when I run via startup, the the tray icon command looks like:
Duplicati Duplicati.GUI.TrayIcon.exe --hosturl="http://localhost:8200" --no-hosted-server
When I run by opening the application, it looks like:
Duplicati Duplicati.GUI.TrayIcon.exe
So i modified the plist file to remove the extra switches, restarted, and IT SORT OF WORKS!
-
The icon doesn’t have the X in it anymore.
-
When i click on the icon and select open it brings up a webpage on port 8300. Hmm-- see below
-
The webpage shows my jobs!! (In my case, I had on outstanding, so it started to run it)
-
The first time it brought up the webpage, it had this popup error-- Missing XSRF Token
-
After click OK to close the error window, I stopped my job and tried editing the configuration. When I got to the last step, clicking OK would do nothing.
-
I closed the webpage, reopened it via the icon, didn’t get the error message and was able to successfully edit the configuration
Questions I currently have:
-
Why port 8300? If I look at the Duplicati jobs running, I only see port 8200:
$ ps aux | grep -i duplica
st 421 0.0 1.5 4526060 127724 ?? S 8:47PM 9:48.28 Duplicati Duplicati.GUI.TrayIcon.exe
st 417 0.0 0.0 4270516 1084 ?? S 8:47PM 0:00.01 /bin/bash /Applications/Duplicati.app/Contents/MacOS/duplicati
root 161 0.0 0.9 4440516 73600 ?? S 8:46PM 0:02.82 Duplicati Server Duplicati.Server.exe --webservice-port=8200
st 778 0.0 0.0 4286184 920 s001 S+ 9:01PM 0:00.01 grep -i duplica
root 100 0.0 0.0 4279596 1100 ?? Ss 8:46PM 0:00.01 /bin/bash /Applications/Duplicati.app/Contents/MacOS/duplicati-server --webservice-port=8200
st 699 0.0 0.5 4427592 40288 ?? S 8:58PM 0:01.05 /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Applications/Duplicati.app/Contents/Resources/OSXTrayHost/osx-trayicon-rumps.py
If I go to 8200, it cannot connect to the server.
I’m not sure if I’m doing thing correctly, or if I’m setting myself up for failure. Backups are kind of important so I want to make sure I’m doing it the right way.
I want to get this working. How are others running? What am i doing different?
Thanks in advance