garethgeorge / backrest

Backrest is a web UI and orchestrator for restic backup.
GNU General Public License v3.0
1.66k stars 46 forks source link

Looks like the MacOS system is upgraded to Sequoia, Restic cannot get Local Network permissions #494

Open huazhaozhe opened 1 month ago

huazhaozhe commented 1 month ago

My English is very bad, so I used the translation software, I hope to understand my report.

Describe the bug I use REST Server to back up my MacBook data, repo like rest:http://10.x.x.x:8000, everything is normal before MacOS 14. But after I recently upgraded the system to MacOS 15.0, restic backup cannot work. The error message is as follows:

Fatal: unable to open config file: Head "http://*:***@10.x.x.x:8000/config": dial tcp 10.x.x.x:8000: connect: no route to host
Is there a repository at the following location?
rest:http://10.x.x.x:8000/

I guess because MacOS 15.0 has added Local Network permissions. I manually executed the command restic -r rest:http://*:***@10.x.x.x:8000 snapshots in iterm2 and listed the snapshots of the server very well. When iterm2 first connects to the local network, an authorization window will pop up, but restic does not pop up any authorization window, and MacOS 15.0 cannot manually give restic local network access at present.

Platform Info

Thanks~

garethgeorge commented 1 month ago

Thanks for the report -- I'm curious if you had any success with adding backrest to local network permissions? I believe the allowlist should propagate to binaries forked by backrest as well --

I think you may also need to restart the backrest daemon (e.g. brew services restart backrest) after allowlisting it. I don't have access to a macOS system to test on at the moment, so I'm also very interested to hear any reports re: what works to restore network access.

huazhaozhe commented 1 month ago

Thanks for the report -- I'm curious if you had any success with adding backrest to local network permissions? I believe the allowlist should propagate to binaries forked by backrest as well --

I think you may also need to restart the backrest daemon (e.g. brew services restart backrest) after allowlisting it. I don't have access to a macOS system to test on at the moment, so I'm also very interested to hear any reports re: what works to restore network access.

I have retried this command several times to trigger the system authorization pop-up window but nothing happens. Maybe this is a bug in macos 15 itself. I searched Google and found that other people's non-gui programs have similar problems and they have reported it to the Apple community, but don't expect too much from Apple. Cook, you should go home and cook.