question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bugfix: OUTPUT_PERMISSIONS environment variable appears to not be fully working.

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cdvv7788commented, Jul 24, 2020

There are some tests related to docker in github action, and the django branch will be merged to master soon too.

0reactions
1n5aN1aCcommented, Jul 24, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found