Skip to content

Unable to upload images Error 500 #698

Discussion options

You must be logged in to vote

Issue was caused by what was described here #506 and here #509. Tl;dr, issue is caused by nginx request being too big and attempts to dump it into /opt/unit/tmp/ temporary directory, but "unit" user being unable to modify contents of that directory, as kubernetes initializes the container and, consequently, that directory, using root:root, and so this causes a permission issue. This issue was fixed in a more recent version of netbox-docker, but since we are running an earlier version of it for now, I have fixed it by having the pod run a small script modifying the /opt/unit/tmp/ owners to unit:root at pod startup.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Eric-CENGN
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Eric-CENGN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants