Closed jaxley closed 6 months ago
Hello,
Would you happen to know what mode user_additions.html
was in before you changed it?
I hadn't run into any mode issues with it before - and checking just gives me 644 - which means it should be good to go.
# latest develop branch (updated ~2wk ago) -> got 644
git clone https://github.com/cisagov/decider.git
stat --format '%a' decider/default_config/user_additions.html
rm -rf decider/
_(from defaultconfig/, as config/* doesn't exist on clone - it must be copied over)
Closing due to inactivity - always happy to re-open if needed.
ls -alcrt default_config
total 24
drwxr-x--- 9 jaxley staff 288 Mar 13 17:35 build_sources
drwxr-x--- 3 jaxley staff 96 Mar 13 17:35 certs
-rw-r----- 1 jaxley staff 970 Mar 13 17:35 frontend.json
-rw-r----- 1 jaxley staff 1575 Mar 13 17:35 logging.json
drwxr-x--- 7 jaxley staff 224 Mar 13 17:35 .
-rw-r----- 1 jaxley staff 1051 Mar 13 17:35 user_additions.html
drwxr-x--- 27 jaxley staff 864 Mar 13 17:38 ..
jaxley@88665a3753dd decider % uname
Darwin
jaxley@88665a3753dd decider % umask
027
My umask may be an issue. The original file mode after checkout is 640.
I'd say that pretty much solves it - mine is 022, which is a common default.
🐛 Summary
Following instructions to start the latest 3.0.0 container in Docker results in a failure at runtime due to a permissions error with user_additions.html
The fix is simple -
chmod 644 config/user_additions.html
and thendocker compose up
To reproduce
Steps to reproduce the behavior:
Expected behavior
The webpage to render without error.
Any helpful log output or screenshots
Paste the results here:
Add any screenshots of the problem here.