You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.
Problem:
The situation occurs and is reproducible when using auto_discover_path feature and starting snapteld with incorrect REST API configuration (i.e. on port 8181 when it is taken by another application).
FATA[2017-04-03T12:09:59Z] listen tcp :8181: listen: address already in use
The lack of message makes it impossible for the user to guess what was the actual cause of the panic.
The message about the already taken port reveals itself only after disabling autoload feature.
The text was updated successfully, but these errors were encountered:
Run some application which blocks port 8181 which is used by Snap RESTAPI by default. Of course, you can run snapteld - remember about setting different RPC control port to avoid conflict in two running instance(*): snapteld -l 1 -t 0 --control-listen-port 8084
In another terminal run snapteld without autodiscovery snapteld -l 1 -t 0
You should receive the following error:
FATA[2017-04-18T19:02:17+02:00] listen tcp :8181: bind: address already in use
so IT WORKS CORRECTLY (as expected)
Let's try to do the same with autodiscovery option: snapteld -l 1 -t 0 -a /my/path
This causes a panic:
INFO[2017-04-18T19:05:06+02:00] Starting REST API on :8181 _module=_mgmt-rest
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x57ea6c]
As I user I expect to get an error with appropriate message that port 8181 is already in use, not panic.
[*] FYI: in case when provided RPC port is already in use, handling an error is made properly
Environment:
Problem:
The situation occurs and is reproducible when using
auto_discover_path
feature and startingsnapteld
with incorrect REST API configuration (i.e. on port 8181 when it is taken by another application).Snapteld reports panic:
instead of the explaining the actual reason:
The lack of message makes it impossible for the user to guess what was the actual cause of the panic.
The message about the already taken port reveals itself only after disabling autoload feature.
The text was updated successfully, but these errors were encountered: