-
Notifications
You must be signed in to change notification settings - Fork 231
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
The configuration registry key could not be read #878
Comments
I'm not sure what "configuration registry key could not be read" means here. And I don't have access to Windows, so can't really work on the script. It would be great if you'd be able to send PRs with improvements? :) |
Ok. Thanks for the answer. |
Feel free to leave this open. There are multiple ppl who contribute windows related improvements and they may see it if it is open and be able to give some help. |
Reopen issue. |
I'm running into the same issue and yes, delayed startup makes things work. But that sounds like a workaround to me, so I guess the first step should be understanding the actual problem.
Seems erlsrv writes a few things into the registry and for some reason fails to read them when called early during boot, at least on Windows 10, 11 and Windows Server 2019 (earlier Windows versions don't seem to be affected). I don't think this issue is Relx-specific, as projects that use their own scripts ran into it as well (e.g., Distiller, ejabberd, emqx). Might make sense to submit an issue against OTP? |
Looks like emqx was able to fix their script, so that could be incorporated into the relx script: https://github.com/emqx/emqx-rel/pull/378/files |
I guess |
I guess that turned out not to fix the issue as they ended up using delayed start as well. |
Ah, damn, thanks. |
Should we make the default "delayed start" in the start script then? |
Yes, I guess that workaround might be desirable as long as we don't know the actual problem (like, a missing service dependency?). |
The erlsrv manual recommends against using the set rel_name="foo"
set rel_vsn="0.1.0"
setlocal enabledelayedexpansion
for /f "tokens=3" %%i in ('sc getkeyname %rel_name%_%rel_vsn%') do (
set svc_name=%%i
)
sc config %svc_name% start= delayed-auto
endlocal |
Use "Automatic (Delayed Start)" as a workaround for eturnal failing to start up after reboot on Windows. See: erlware/relx#878
Use "Automatic (Delayed Start)" as a workaround for eturnal failing to start up after reboot on Windows. See: erlware/relx#878
Use "Automatic (Delayed Start)" as a workaround for eturnal failing to start up after reboot on Windows. See: erlware/relx#878
It isn't indeed, I've now reproduced the problem with a minimal Reltool example and reported it on the OTP tracker. |
Hello, I have installed Erlang release as Windows Service and after reboot Windows 10 or Windows Server 2019 I see in Windows Event viewer outputs the following error: "The service03f4d9d14dbe2a74 service terminated with the following error: The configuration registry key could not be read.".
In this topik advise to set delayed-auto in service config. On my tests, delayed-auto helped solve the problem. Could you improve on the extended_bin_windows template?
The text was updated successfully, but these errors were encountered: