-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Strange behavior between .env and config.json for websocket activation #1607
Comments
This is how it works. The json file overrules the env settings. |
|
Hmm indeed. I'm also not sure if it gets saved to the json file, if that is the case, that should be fixed. |
Sorry, indeed I had trouble to really explaining the behavior. This behavior seems logical to me, but what I don't understand its why when I set I suppose there is a part of code where the parameter That I found strange, it's In doubt, I add my dot env in original message |
@sebtiz13:
Best way to check this out is by renaming the If it does change the logging output, then i would suggest to move that variable Same goes for the In any case, you should at least see something like this when it started:
So, could you provide us with this info please? |
Hello I have finally found the cause of this behavior. I have configured my server with systemd like example from wiki page Setup as a systemd service i have declared my
and all env variables are loaded except "WEBSOCKET_ENABLED" it's due to the comment after the variables
It's read, but with systemd not, i supose it's an error to have an comment on same line as a variable in Finally i have remove the comment and it's work normally
So maybe just need to add an comment for this details on wiki Thanks for your help |
@sebtiz13 feel free to update the wiki! |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Subject of the issue
I have strange behavior between .env and config.json for websocket activation.
I need to add
"websocket_enabled": true"
in config.json for websocket synchronisation work with firefox extension (I haven't check other browser extension)Deployment environment
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
In doubt this is my .env
Steps to reproduce
When I have set
WEBSOCKET_ENABLED="true"
in.env
the connection to websocket in web_vault work normally but doesn't have websocket synchronization with my firefox extensionIf i edit the
config.json
file manually to add"websocket_enabled": true"
after restart of service and manually synchronization in firefox extension the websocket synchronization with my firefox extension workExpected behaviour
Work normally with just
.env
variables or when update configuration with admin page don't remove "websocket_enabled" inconfig.json
Actual behaviour
The Firefox extension don't receive websocket synchronization if "websocket_enabled" is not in
config.json
and update on configuration page overwrite theconfig.json
without "websocket_enabled"Troubleshooting data
In my console with webvault
Sorry i don't find how show eventually error of websocket in firefox extension
The text was updated successfully, but these errors were encountered: