Skip to content

"PermissionError: [Errno 13]" Permission denied when Odoo tries to write a file #500

Answered by sgheller
juanpgarza asked this question in Q&A
Discussion options

You must be logged in to vote

Try this in your Dockerfile to create cache folder used by PyAFIPws

USER root

# Creates missing 'cache' folder for PyAFIPws.
RUN mkdir -p /usr/local/lib/python3.8/site-packages/pyafipws/cache
RUN chown -R odoo:odoo /usr/local/lib/python3.8/site-packages/pyafipws/cache

USER odoo

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@juanpgarza
Comment options

@sgheller
Comment options

@juanpgarza
Comment options

Answer selected by juanpgarza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants