Skip to content
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

uic-zigpc.service needs a working directory #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

silabs-johnh
Copy link
Collaborator

Without a working directory specified, uic-zigpc will attempt to create files under root instead of a directory it has permissions for.
This results in the following error:

"
May 20 12:02:04 unify-xg1 zigpc[792]: 2022-May-20 12:02:04.203583 [zigpc_ota_zigbee] Error accessing or creating folder for OTA with error code: -1; errno: 13 (Permission denied)
May 20 12:02:04 unify-xg1 zigpc[792]: 2022-May-20 12:02:04.203754 [uic_component_fixtures] Failed [1]: ZigPC OTA.
May 20 12:02:04 unify-xg1 systemd[1]: uic-zigpc.service: Main process exited, code=exited, status=1/FAILURE
"

Expected behavior - Systemd service has a specified working directory (like /var/lib/uic) in which the 'uic' user has write privileges.

Without a working directory specified, uic-zigpc will attempt to create files under root instead of a directory it has permissions for.
This results in the following error:

"
May 20 12:02:04 unify-xg1 zigpc[792]: 2022-May-20 12:02:04.203583 <W> [zigpc_ota_zigbee] Error accessing or creating folder for OTA with error code: -1; errno: 13 (Permission denied)
May 20 12:02:04 unify-xg1 zigpc[792]: 2022-May-20 12:02:04.203754 <C> [uic_component_fixtures] Failed  [1]: ZigPC OTA.
May 20 12:02:04 unify-xg1 systemd[1]: uic-zigpc.service: Main process exited, code=exited, status=1/FAILURE
"

Expected behavior - Systemd service has a specified working directory (like /var/lib/uic) in which the 'uic' user has write privileges.
@rzr
Copy link
Collaborator

rzr commented Jul 10, 2023

Thanks for reporting this, I suggested to have each protocol process to write into subdirectory to avoid overlaps

@rzr
Copy link
Collaborator

rzr commented Aug 21, 2023

Please confirm latest release is handling this and close issue accordingly

su-shanka pushed a commit to su-shanka/UnifySDK that referenced this pull request Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants