[GH-ISSUE #46] v2.0.1 AmneziaVPN-service fails to start with error 1053 #18

Closed
opened 2026-10-13 20:10:58 +00:00 by bsakaguchi · 13 comments
Owner

Originally created by @boscogh on GitHub (Dec 8, 2021).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/46

Works fine if started as a console app with admin privileges
Have tried to install/remove several times, also increased "ServicesPipeTimeout" registry key - no help

Originally created by @boscogh on GitHub (Dec 8, 2021). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/46 Works fine if started as a console app with admin privileges Have tried to install/remove several times, also increased "ServicesPipeTimeout" registry key - no help
Author
Owner

@boscogh commented on GitHub (Dec 21, 2021):

issue remains on 2.0.6

<!-- gh-comment-id:998798217 --> @boscogh commented on GitHub (Dec 21, 2021): issue remains on 2.0.6
Author
Owner

@pokamest commented on GitHub (Jan 24, 2022):

Please attach logs or send directly via telegram https://t.me/amnezia_vpn_en

<!-- gh-comment-id:1020573131 --> @pokamest commented on GitHub (Jan 24, 2022): Please attach logs or send directly via telegram https://t.me/amnezia_vpn_en
Author
Owner

@boscogh commented on GitHub (Jan 25, 2022):

the problem is that service does not create any logs, it just fails to start

<!-- gh-comment-id:1021037045 --> @boscogh commented on GitHub (Jan 25, 2022): the problem is that service does not create any logs, it just fails to start
Author
Owner

@pokamest commented on GitHub (Jan 25, 2022):

What is Windows version? You can try to start service by hands from cmd (with admin privil) by passing argument "-s", service will be launched as regular process, and then you can check if it crashed, or something else.

<!-- gh-comment-id:1021100963 --> @pokamest commented on GitHub (Jan 25, 2022): What is Windows version? You can try to start service by hands from cmd (with admin privil) by passing argument "-s", service will be launched as regular process, and then you can check if it crashed, or something else.
Author
Owner

@boscogh commented on GitHub (Jan 26, 2022):

C:\WINDOWS\system32>ver
Microsoft Windows [Version 10.0.19044.1466]

C:\Program Files\AmneziaVPN>AmneziaVPN-service.exe -s
2022-01-26 07:41:49 info Started as console application
--started normally as console app--

C:\Program Files\AmneziaVPN>AmneziaVPN-service.exe
2022-01-26 07:55:00 info Started as system service
The service AmneziaVPN-service could not start
--no other logs--

<!-- gh-comment-id:1021860179 --> @boscogh commented on GitHub (Jan 26, 2022): C:\WINDOWS\system32>ver Microsoft Windows [Version 10.0.19044.1466] C:\Program Files\AmneziaVPN>AmneziaVPN-service.exe -s 2022-01-26 07:41:49 info Started as console application --started normally as console app-- C:\Program Files\AmneziaVPN>AmneziaVPN-service.exe 2022-01-26 07:55:00 info Started as system service The service AmneziaVPN-service could not start --no other logs--
Author
Owner

@boscogh commented on GitHub (Jan 26, 2022):

I use the process as console app, it works just fine (as I said at the beginning). But it's not convinient to run it manually, and
as service it just won't start at all. the errors from event viewer:

  • код 7000 Превышение времени ожидания (10000 мс) при ожидании подключения службы "AmneziaVPN-service".
  • код 7009 Сбой при запуске службы "AmneziaVPN-service" из-за ошибки
    Служба не ответила на запрос своевременно.

same error on 2.0.7

<!-- gh-comment-id:1021862115 --> @boscogh commented on GitHub (Jan 26, 2022): I use the process as console app, it works just fine (as I said at the beginning). But it's not convinient to run it manually, and as service it just won't start at all. the errors from event viewer: - код 7000 Превышение времени ожидания (10000 мс) при ожидании подключения службы "AmneziaVPN-service". - код 7009 Сбой при запуске службы "AmneziaVPN-service" из-за ошибки Служба не ответила на запрос своевременно. same error on 2.0.7
Author
Owner

@pokamest commented on GitHub (Jan 26, 2022):

Btw, it's not possible to start AmneziaVPN-service.exe (without -s arg) as a service from cmd, only system able to launch service.
Another question is why service crashing on your Windows.
You can try to stop and remove service from admin cmd, reboot, and then reinstall app:

sc stop AmneziaVPN-service
sc delete AmneziaVPN-service
<!-- gh-comment-id:1022240484 --> @pokamest commented on GitHub (Jan 26, 2022): Btw, it's not possible to start AmneziaVPN-service.exe (without -s arg) as a service from cmd, only system able to launch service. Another question is why service crashing on your Windows. You can try to stop and remove service from admin cmd, reboot, and then reinstall app: ``` sc stop AmneziaVPN-service sc delete AmneziaVPN-service ```
Author
Owner

@boscogh commented on GitHub (Jan 28, 2022):

I reinstalled it already several times (multiple 2.0.x realeases).
before 2.0 release, it was working fine, so might be just building flags are different

<!-- gh-comment-id:1024275575 --> @boscogh commented on GitHub (Jan 28, 2022): I reinstalled it already several times (multiple 2.0.x realeases). before 2.0 release, it was working fine, so might be just building flags are different
Author
Owner

@boscogh commented on GitHub (Feb 6, 2022):

Tested on 2.0.8, still the same, even again did that you recommend with stop and delete, reboot and reinstall - nothing changed. Could you please mb create a debug build of service app, so it at least print some trace messages in the log?
I see on stackexchange they say this could be the problem with unhandled exception, so mb make some more catch sections and trace the error too?

<!-- gh-comment-id:1030760148 --> @boscogh commented on GitHub (Feb 6, 2022): Tested on 2.0.8, still the same, even again did that you recommend with stop and delete, reboot and reinstall - nothing changed. Could you please mb create a debug build of service app, so it at least print some trace messages in the log? I see on stackexchange they say this could be the problem with unhandled exception, so mb make some more catch sections and trace the error too?
Author
Owner

@boscogh commented on GitHub (Feb 6, 2022):

I finally got it. Sorry for taking your time, it was a dll conflict on my side. I reinstalled VC runtime libs from there
https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170
reordered file paths (this may be a no-op), rebooted and now service works just fine, right after windows start.
You probably may consider to distribute the required MSVC libs with your code too :)

it works fine with MSVCP140.dll v14.30.30708.0

<!-- gh-comment-id:1030778855 --> @boscogh commented on GitHub (Feb 6, 2022): I finally got it. Sorry for taking your time, it was a dll conflict on my side. I reinstalled VC runtime libs from there https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170 reordered file paths (this may be a no-op), rebooted and now service works just fine, right after windows start. You probably may consider to distribute the required MSVC libs with your code too :) it works fine with MSVCP140.dll v14.30.30708.0
Author
Owner

@pokamest commented on GitHub (Feb 7, 2022):

Actually it's already distributed with app - you can find vc_redist.x64.exe installer in the app folder. The issue is the app can't determine if vcredist reinstall required.

<!-- gh-comment-id:1031100186 --> @pokamest commented on GitHub (Feb 7, 2022): Actually it's already distributed with app - you can find vc_redist.x64.exe installer in the app folder. The issue is the app can't determine if vcredist reinstall required.
Author
Owner

@R12M commented on GitHub (Mar 6, 2022):

Приложение не устанавливается. (AmneziaVPN_2.0,8,3_*64,exe - Системная ошибка. Не удается продолжить выполнение кода, поскольку система не обнаружила MSVCP140,dll. Для устранения этой проблемы попробуйте переустановить программу) - Неоднократно переустанавливал, но всё равно не работает. Что делать?

<!-- gh-comment-id:1059991065 --> @R12M commented on GitHub (Mar 6, 2022): Приложение не устанавливается. (AmneziaVPN_2.0,8,3_*64,exe - Системная ошибка. Не удается продолжить выполнение кода, поскольку система не обнаружила MSVCP140,dll. Для устранения этой проблемы попробуйте переустановить программу) - Неоднократно переустанавливал, но всё равно не работает. Что делать?
Author
Owner

@MikadoAndru commented on GitHub (Nov 15, 2022):

I finally got it. Sorry for taking your time, it was a dll conflict on my side. I reinstalled VC runtime libs from there https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170 reordered file paths (this may be a no-op), rebooted and now service works just fine, right after windows start. You probably may consider to distribute the required MSVC libs with your code too :)

it works fine with MSVCP140.dll v14.30.30708.0

do not choose between the 32bit (x86) or the 64bit (x64), just install both if you have a 64bit (x64) based system.

<!-- gh-comment-id:1315718784 --> @MikadoAndru commented on GitHub (Nov 15, 2022): > I finally got it. Sorry for taking your time, it was a dll conflict on my side. I reinstalled VC runtime libs from there https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170 reordered file paths (this may be a no-op), rebooted and now service works just fine, right after windows start. You probably may consider to distribute the required MSVC libs with your code too :) > > it works fine with MSVCP140.dll v14.30.30708.0 do not choose between the 32bit (x86) or the 64bit (x64), **just install both if you have a 64bit (x64) based system.**
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#18
No description provided.