Bugfix: OUTPUT_PERMISSIONS environment variable appears to not be fully working.
See original GitHub issueDescribe the bug
I am Testing v0.4.3, to resolve https://github.com/pirate/ArchiveBox/issues/376 and noticed that defining OUTPUT_PERMISSIONS does not seem to be applying to all output files. I do not know if this is a regression in v0.4.3, or if it exists before, or if I am doing something wrong.
Steps to reproduce
I built the container using the following commands:
git checkout django
git pull
docker build . -t archivebox:0.4.3
docker run -v "/mnt/data/Archive/ArchiveBox":/data --shm-size 512M --env SUBMIT_ARCHIVE_DOT_ORG=False --env WGET_USER_AGENT="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/73.0.3683.75 Safari/537.36" --env OUTPUT_PERMISSIONS=755 archivebox:0.4.3 init
docker run -v "/mnt/data/Archive/ArchiveBox":/data --shm-size 512M --env SUBMIT_ARCHIVE_DOT_ORG=False --env WGET_USER_AGENT="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/73.0.3683.75 Safari/537.36" --env OUTPUT_PERMISSIONS=755 archivebox:0.4.3 add "https://example.com"
Screenshots or log output
However, the main files that are generated do not have 755 permissions set.
The files inside the sub-dir example.com do appear to have the permission set.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Unsetting of environmental variables is not fully working. #10171
Current Behavior Hi, I set an environment variable via conda env config vars set my_var=value and then unset it via conda env config...
Read more >Problems with Environment Variables
Environment variable is not set · Open a DOS box (or a Command prompt box in Windows NT/2000/XP) · Type the word "Set"...
Read more >Environment variable not updating with current value
Hi,. Within an unmanaged solution I'm trying to update my environment variable from its default to its current value but it does not...
Read more >{ Fixed } : Environment Variable is disabled? Can't ... - YouTube
{ Fixed } : Environment Variable is disabled? Can't edit environment variables in windows.
Read more >Can't appear environment variables editor when edit Path ...
I can't understand what happened. And I don't know how to edit system environment variables using System Variable Editor. Windows 10 laptop show ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There are some tests related to docker in github action, and the django branch will be merged to master soon too.
It does indeed appear to be fixed, thank you very much!
It looks like it even corrected the permissions on the core index files.
As a bit of an aside, would you be willing to add the “django” branch to docker hub’s build system, to make continued testing easier? No big deal if not, I can keep doing it myself if you’d rather not add it.