mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #3397] [bug]: Problem using Podman, permission denied because of build.env #1136
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1136
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @felixsanz on GitHub (Sep 27, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3397
Is there an existing issue for this?
Current behavior
When trying to run hoppscortch, both using recommended 3 containers or using the AIO, this error is generated:
Error: EACCES: permission denied, open 'build.env'Generating this build.env inside
/usr/prod_run.mjslooks a bit nonsense. But anyway, if I try to mount this path to a local path/volume, so the permissions are correct, then the error is:/bin/sh: node: not found.I'm at a dead point now. What can be done? I was thinking about replacing
/usr/prod_run.mjswith a local version that doesn't generate thisbuild.envfile, but not sure about how to bypass it.This is the original code:
Why this temporal file needs to be created? Can't the app just read the env variables from
process.env? What workaround can be done here?If someone could help me understand the
-x,-eand-p... I can't find the documentation for it.Steps to reproduce
Execute container with:
Environment
Production
Version
Self-hosted
@felixsanz commented on GitHub (Sep 28, 2023):
my bad. i was messing up the user namespace
@bcoquell commented on GitHub (Oct 10, 2023):
Hi, sorry I actually encounter the same kind of issue when trying to launch hoppscoth-aio in an Openshift context.
What do you mean by "user namespace", how did you fix this @felixsanz ?
Thanks by advance for your answer
BR
@felixsanz commented on GitHub (Oct 10, 2023):
basically the container needs rw permissions to create a file on that folder. if you're using a volume, it has the wrong permissions. I don't know about Openshift but it's probably messing up with
--usernspodman variable