[GH-ISSUE #1925] Error code 103 background service is not running #827

Closed
opened 2026-10-14 03:29:17 +07:00 by bsakaguchi · 8 comments
Owner

Originally created by @HotarunIchijou on GitHub (Oct 10, 2025).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/1925

Originally assigned to: @Mitternacht822 on GitHub.

● AmneziaVPN.service - AmneziaVPN Service
Loaded: loaded (/etc/systemd/system/AmneziaVPN.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: activating (auto-restart) (Result: exit-code) since Fri 2025-10-10 22:01:20 MSK; 862ms ago
Invocation: 93a4f76b5dea4952b5206eff444c6126
Process: 5178 ExecStart=/opt/AmneziaVPN/service/AmneziaVPN-service.sh (code=exited, status=203/EXEC)
Main PID: 5178 (code=exited, status=203/EXEC)
Mem peak: 1.2M
CPU: 7ms

Oct 10 22:01:21 fedora-laptop systemd[1]: AmneziaVPN.service: Scheduled restart job, restart counter is at 47.
Oct 10 22:01:21 fedora-laptop systemd[1]: Started AmneziaVPN.service - AmneziaVPN Service.
Oct 10 22:01:21 fedora-laptop (rvice.sh)[5206]: AmneziaVPN.service: Unable to locate executable '/opt/AmneziaVPN/service/AmneziaVPN-service.sh': Permission denied
Oct 10 22:01:21 fedora-laptop (rvice.sh)[5206]: AmneziaVPN.service: Failed at step EXEC spawning /opt/AmneziaVPN/service/AmneziaVPN-service.sh: Permission denied
Oct 10 22:01:21 fedora-laptop systemd[1]: AmneziaVPN.service: Main process exited, code=exited, status=203/EXEC
Oct 10 22:01:21 fedora-laptop systemd[1]: AmneziaVPN.service: Failed with result 'exit-code'.
~

Originally created by @HotarunIchijou on GitHub (Oct 10, 2025). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/1925 Originally assigned to: @Mitternacht822 on GitHub. ● AmneziaVPN.service - AmneziaVPN Service Loaded: loaded (/etc/systemd/system/AmneziaVPN.service; enabled; preset: disabled) Drop-In: /usr/lib/systemd/system/service.d └─10-timeout-abort.conf Active: activating (auto-restart) (Result: exit-code) since Fri 2025-10-10 22:01:20 MSK; 862ms ago Invocation: 93a4f76b5dea4952b5206eff444c6126 Process: 5178 ExecStart=/opt/AmneziaVPN/service/AmneziaVPN-service.sh (code=exited, status=203/EXEC) Main PID: 5178 (code=exited, status=203/EXEC) Mem peak: 1.2M CPU: 7ms Oct 10 22:01:21 fedora-laptop systemd[1]: AmneziaVPN.service: Scheduled restart job, restart counter is at 47. Oct 10 22:01:21 fedora-laptop systemd[1]: Started AmneziaVPN.service - AmneziaVPN Service. Oct 10 22:01:21 fedora-laptop (rvice.sh)[5206]: AmneziaVPN.service: Unable to locate executable '/opt/AmneziaVPN/service/AmneziaVPN-service.sh': Permission denied Oct 10 22:01:21 fedora-laptop (rvice.sh)[5206]: AmneziaVPN.service: Failed at step EXEC spawning /opt/AmneziaVPN/service/AmneziaVPN-service.sh: Permission denied Oct 10 22:01:21 fedora-laptop systemd[1]: AmneziaVPN.service: Main process exited, code=exited, status=203/EXEC Oct 10 22:01:21 fedora-laptop systemd[1]: AmneziaVPN.service: Failed with result 'exit-code'. ~
Author
Owner

@HotarunIchijou commented on GitHub (Oct 10, 2025):

Probably could be an issue with selinux, because after changing to bin_t the unit service runs successfully

$ ls -Z /opt/AmneziaVPN/service/AmneziaVPN-service.sh
unconfined_u:object_r:var_t:s0 /opt/AmneziaVPN/service/AmneziaVPN-service.sh
<!-- gh-comment-id:3391940054 --> @HotarunIchijou commented on GitHub (Oct 10, 2025): Probably could be an issue with selinux, because after changing to bin_t the unit service runs successfully ``` $ ls -Z /opt/AmneziaVPN/service/AmneziaVPN-service.sh unconfined_u:object_r:var_t:s0 /opt/AmneziaVPN/service/AmneziaVPN-service.sh ```
Author
Owner

@HotarunIchijou commented on GitHub (Oct 10, 2025):

Probably it has something to do with an immutable OS structure (I'm currently running Fedora Silverblue).
So for now the workaround is to add an SELinux context rule with this command:

sudo semanage fcontext -a -t bin_t /var/opt/AmneziaVPN/service/AmneziaVPN-service.sh

Then, apply the new context with this command:

sudo restorecon -F /var/opt/AmneziaVPN/service/AmneziaVPN-service.sh

And verify changes with the following command:

ls -Z /var/opt/AmneziaVPN/service/AmneziaVPN-service.sh

You should see bin_t instead of var_t

Note that you must specify the exact /var/opt directory, not just /opt, since in Silverblue /opt is a mountpoint redirected to /var/opt, but SELinux recognizes only the real filesystem path

<!-- gh-comment-id:3392023066 --> @HotarunIchijou commented on GitHub (Oct 10, 2025): Probably it has something to do with an immutable OS structure (I'm currently running Fedora Silverblue). So for now the workaround is to add an SELinux context rule with this command: ``` sudo semanage fcontext -a -t bin_t /var/opt/AmneziaVPN/service/AmneziaVPN-service.sh ``` Then, apply the new context with this command: ``` sudo restorecon -F /var/opt/AmneziaVPN/service/AmneziaVPN-service.sh ``` And verify changes with the following command: ``` ls -Z /var/opt/AmneziaVPN/service/AmneziaVPN-service.sh ``` You should see `bin_t` instead of `var_t` Note that you must specify the exact `/var/opt` directory, not just `/opt`, since in Silverblue `/opt` is a mountpoint redirected to `/var/opt`, but SELinux recognizes only the real filesystem path
Author
Owner

@Mitternacht822 commented on GitHub (Oct 20, 2025):

Hello @HotarunIchijou ! Have you resolved the problem for your system?

<!-- gh-comment-id:3422176573 --> @Mitternacht822 commented on GitHub (Oct 20, 2025): Hello @HotarunIchijou ! Have you resolved the problem for your system?
Author
Owner

@HotarunIchijou commented on GitHub (Oct 20, 2025):

Hello @HotarunIchijou ! Have you resolved the problem for your system?

Yes, as I described above, I had to tweak selinux policies a bit

<!-- gh-comment-id:3422184634 --> @HotarunIchijou commented on GitHub (Oct 20, 2025): > Hello [@HotarunIchijou](https://github.com/HotarunIchijou) ! Have you resolved the problem for your system? Yes, as I described above, I had to tweak selinux policies a bit
Author
Owner

@HotarunIchijou commented on GitHub (Oct 20, 2025):

Well, actually you may consider store the program in another directory, since storing this in /opt is kinda unusual tbh

<!-- gh-comment-id:3422222185 --> @HotarunIchijou commented on GitHub (Oct 20, 2025): Well, actually you may consider store the program in another directory, since storing this in `/opt` is kinda unusual tbh
Author
Owner

@ifgeny87 commented on GitHub (Mar 24, 2026):

Hello World!
For more information you need to check this:
https://docs.amnezia.org/troubleshooting/error-codes/

Shorts for Windows:

  1. open Task Manager
  2. open "Services" tab
  3. find "AmneziaVPN-service"
  4. if it's stopped then run it, wait about 10 secs and check the connection again
  5. if OK then enable autostart for "AmneziaVPN-service" service

Shorts for MacOS:

  1. open System Settings
  2. open "Login items" tab
  3. find "Privacy Technologies OU"
  4. if it's disabled then enable it, wait about 10 secs and check the connection again
    OR you can run plist manually with:
sudo launchctl load -w  /Library/LaunchDaemons/AmneziaVPN.plist
<!-- gh-comment-id:4115610713 --> @ifgeny87 commented on GitHub (Mar 24, 2026): Hello World! For more information you need to check this: https://docs.amnezia.org/troubleshooting/error-codes/ **Shorts for Windows:** 1) open Task Manager 2) open "Services" tab 3) find "AmneziaVPN-service" 4) if it's stopped then run it, wait about 10 secs and check the connection again 5) if OK then enable autostart for "AmneziaVPN-service" service **Shorts for MacOS:** 1) open System Settings 2) open "Login items" tab 3) find "Privacy Technologies OU" 4) if it's disabled then enable it, wait about 10 secs and check the connection again OR you can run plist manually with: ```shell sudo launchctl load -w /Library/LaunchDaemons/AmneziaVPN.plist ```
Author
Owner

@mikalauskas commented on GitHub (Nov 3, 2026):

? Still no working solution.. 5.0.3.0 version and yet it doesn't work. Fedora workstation 44. Installed using AmneziaVPN_5.0.3.0_linux_x64.run

<!-- gh-comment-id:6608471854 --> @mikalauskas commented on GitHub (Nov 3, 2026): ? Still no working solution.. 5.0.3.0 version and yet it doesn't work. Fedora workstation 44. Installed using AmneziaVPN_5.0.3.0_linux_x64.run
Author
Owner

@HotarunIchijou commented on GitHub (Nov 3, 2026):

? Still no working solution.. 5.0.3.0 version and yet it doesn't work. Fedora workstation 44. Installed using AmneziaVPN_5.0.3.0_linux_x64.run

See the solution above, though I had Silverblue at that time, on workstation it should work out of the box

<!-- gh-comment-id:6608611170 --> @HotarunIchijou commented on GitHub (Nov 3, 2026): > ? Still no working solution.. 5.0.3.0 version and yet it doesn't work. Fedora workstation 44. Installed using AmneziaVPN_5.0.3.0_linux_x64.run See the solution above, though I had Silverblue at that time, on workstation it should work out of the box
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#827
No description provided.