floryn90 / docker-hugo

Truly minimal Docker images for Hugo open-source static site generator.
https://hub.docker.com/r/floryn90/hugo
MIT License
38 stars 3 forks source link

0.136.2 yields permission errors #163

Open schwartzman opened 3 weeks ago

schwartzman commented 3 weeks ago

Describe the bug Running on Github Actions, 0.136.2 yields permission errors. Any filesystem action resulting from the command hugo fails, with a "permission denied" error.

To Reproduce Upgrade from 0.136.1 to 0.136.2

floryn90 commented 2 weeks ago

hi @schwartzman,

Could you please specify exactly the tag that you're using ?

rojomisin commented 1 week ago

@floryn90 in hugo:1.38.0-ext-alpine-onbuild still getting

hugo v0.138.0-ad82998d54b3f9f8c2741b67356813b55b3134b9+extended linux/amd64 BuildDate=2024-11-06T11:22:34Z VendorInfo=gohugoio

WARN  deprecated: resources.ToCSS was deprecated in Hugo v0.128.0 and will be removed in a future release. Use css.Sass instead.
WARN  Failed to write jsconfig.json: open /src/assets/jsconfig.json: permission denied
Total in 1265 ms
Error: error building site: mkdir /src/resources/_gen/assets/sass: permission denied
The command '/bin/sh -c if [ -e "$ONBUILD_SCRIPT_VALUE" ]; then exec sh $ONBUILD_SCRIPT_VALUE; else exec hugo $HUGO_CMD; fi' returned a non-zero code: 1
Error: Process completed with exit code 1.
schwartzman commented 1 week ago

Could you please specify exactly the tag that you're using ?

Hey, sorry for the slow response on this.

We use the ext-ubuntu-ci flavor.

Have just tested 0.136.5 and 0.137.1 in our deployment pipeline and the initial permissions error is present with both.

Reverting to 0.136.1-ext-ubuntu-ci yields expected behavior.

floryn90 commented 1 week ago

Could you please specify exactly the tag that you're using ?

Hey, sorry for the slow response on this.

We use the ext-ubuntu-ci flavor.

Have just tested 0.136.5 and 0.137.1 in our deployment pipeline and the initial permissions error is present with both.

Reverting to 0.136.1-ext-ubuntu-ci yields expected behavior.

Could you please try to use the latest image: 0.138.0 and let me know?

schwartzman commented 2 days ago

Same problem persists with 0.138.0.

(Is there a reason this issue has been marked closed when it remains so completely unresolved?)

floryn90 commented 2 days ago

@floryn90 in hugo:1.38.0-ext-alpine-onbuild still getting

hugo v0.138.0-ad82998d54b3f9f8c2741b67356813b55b3134b9+extended linux/amd64 BuildDate=2024-11-06T11:22:34Z VendorInfo=gohugoio

WARN  deprecated: resources.ToCSS was deprecated in Hugo v0.128.0 and will be removed in a future release. Use css.Sass instead.
WARN  Failed to write jsconfig.json: open /src/assets/jsconfig.json: permission denied
Total in 1265 ms
Error: error building site: mkdir /src/resources/_gen/assets/sass: permission denied
The command '/bin/sh -c if [ -e "$ONBUILD_SCRIPT_VALUE" ]; then exec sh $ONBUILD_SCRIPT_VALUE; else exec hugo $HUGO_CMD; fi' returned a non-zero code: 1
Error: Process completed with exit code 1.

could you please provide more details? I just checked to build my website using the ext-alpine-onbuild image and it worked fine without specifying any user, just using the default hugo user.

floryn90 commented 1 day ago

Same problem persists with 0.138.0.

(Is there a reason this issue has been marked closed when it remains so completely unresolved?)

Yesterday I built new docker images with Hugo version 0.138.0 where I put a fix regarding the permission issue. Could you please try with latest 0.138.0 images and let me know if the issue persist?