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 }}
Repository navigation
Return or log exception if publishednodes.json file is not writable #2195
Is your feature request related to a problem? Please describe.
The logs are not providing any warning nor error when json containing published nodes from opc publisher is not writable and only indicator is response 500 with null payload. This could lead in long debugging time to find source of problem.
Describe the solution you'd like
Logs should raise that published nodes file is not writable or at least 500 return payload should clearly state the problem.
Additional context
-> Additionally no warning and errors inside logs of OPC publisher module. Logs were stating that everything went fine. Log level of OPC publisher was debug.
In our case the file was owned by Root (read and write for root but readable for all users) while module was running asp app user.
Thanks 👍. Surprising that file write errors are not logged. I will make sure that errors are logged. What we can do about response code I need to see since the service is decoupled from persisting.
Activity
marcschier commentedon Feb 24, 2024
Thanks 👍. Surprising that file write errors are not logged. I will make sure that errors are logged. What we can do about response code I need to see since the service is decoupled from persisting.
marcschier commentedon Jun 18, 2024
This is now fixed. The exception message is now the payload returned plus a status code.