Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not backup to a local NAS when running as macOS Service #644

Open
ErebusBat opened this issue Jan 17, 2025 · 1 comment
Open

Can not backup to a local NAS when running as macOS Service #644

ErebusBat opened this issue Jan 17, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@ErebusBat
Copy link

Describe the bug
If running as a service (LaunchCtl) on macOS then you can not backup to a NAS with a local IP.

I have tried this with the binary and homebrew installs.

To Reproduce
Configure a repo on a server that is on your lan. Try to back up to it and see it will fail.

Expected behavior
That it works :D

Screenshots
From the debug log:

2025/01/17 12:22:36 debug/round_tripper.go:100  debug.loggingRoundTripper.RoundTrip     66      RoundTrip() returned error: dial tcp 192.168.68.80:9000: connect: no route to host
2025/01/17 12:22:36 logger/log.go:54    logger.(*Backend).Stat  1         stat err Stat: Get "http://nas.erebusbat.net:9000/restic/?location=": dial tcp 192.168.68.80:9000: connect: no route to host
2025/01/17 12:22:36 logger/log.go:24    logger.(*Backend).IsNotExist    1       IsNotExist(*errors.withStack, Stat: Get "http://nas.erebusbat.net:9000/restic/?location=": dial tcp 192.168.68.80:9000: connect: no route to host, false)
2025/01/17 12:22:36 restic/cleanup.go:39        main.Exit       1       exiting with status code 1

Platform Info

  • OS and Architecture Darwin arm64. Sequoia 15.1.1
  • Backrest Version 1.7.0

Additional context
I am almost certain this is due to macOS permissions because if I run the binary directly in my terminal then the backup succeeds.

Both /usr/local/bin/backrest AND ~/.local/share/backrest/restic ARE in Full Disk Access.

However only backrest is in Local Network access and you can not manually add items to that list :(

@ErebusBat ErebusBat added the bug Something isn't working label Jan 17, 2025
@garethgeorge
Copy link
Owner

Coincidentally this is fixed in #630

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants