Open HRNPH opened 1 year ago
Great tool, but same problem here. I used the Heroku setup link from the readme. The permission issue doesn't occur in docker image heartexlabs/label-studio:1.7.3
, so it seems to be related to 1.8.0
. Any suggestions from the maintainers?
Hey all — thanks for the heads up on this and flagging for internal review here!
Appreciate the patience @davidlinner and @HRNPH :)
@davidlinner I also used the Heroku setup link and am running into the same problem. How were you able to specify the other docker image to get around it?
Hi Suzanne, I forked the repo and set the image version number manually. Please have a look into my fork for details. Beag regards, David
From: Suzanne Stathatos @.> Sent: Tuesday, July 25, 2023 11:55:29 AM To: HumanSignal/label-studio @.> Cc: David Linner @.>; Mention @.> Subject: Re: [HumanSignal/label-studio] PermissionError: [Errno 13] Permission denied: while deploy on heroku as a container (Issue #4387)
@davidlinnerhttps://github.com/davidlinner I also used the Heroku setup link and am running into the same problem. How were you able to specify the other docker image to get around it?
— Reply to this email directly, view it on GitHubhttps://github.com/HumanSignal/label-studio/issues/4387#issuecomment-1650368280, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABQJFSRLA4642YWXNOOGVGLXSAJCDANCNFSM6AAAAAAZHTYB4M. You are receiving this because you were mentioned.Message ID: @.***>
We're having the same issue when attempting to update our fork to 1.8.1. I tried manually changing our version number to 1.7.3 as suggested by davidlinnner, but this didn't work for us. @erinmikailstaples do you know if this is being worked on by HumanSignal at the moment?
One-click installation: https://heroku.com/deploy?template=https://github.com/upunaprosk/label-studio/tree/heroku-persistent-pg
Fixed Dockerfile.heroku:
FROM heartexlabs/label-studio:1.7.3
ENV LABEL_STUDIO_ONE_CLICK_DEPLOY=1 \
STORAGE_PERSISTENCE=1
COPY deploy/heroku_run.sh /label-studio/deploy/
ENTRYPOINT ["/bin/bash -c"]
Hello, was there an official resolution to this issue? I am facing the permissions issue with the latest version.
Hey there,
I no longer work at HumanSignal, feel free to reach out to @.*** and they'll be happy to help :)
Thanks!
Erin
Erin Mikail Staples (she/her) Dev Advocate | Community Human | Tech Education | Comedian
📧 @.*** 🌐 erinmikailstaples.com ( https://ed515793-d623-44e9-a1d2-ee17f996e35d.mailbutler.link/p2/e5a62510-8d86-4d96-aa30-8968280fefea/02d781a6-c621-4475-aee1-6d43c93ebcdb?contactid=e5ef6ec8-6a4e-3f76-496a-007cce585c54 ) ☎️ let's chat ( https://cal.com/erinmikail )
I’m very online — find me on… 💼 LinkedIn ( https://ed515793-d623-44e9-a1d2-ee17f996e35d.mailbutler.link/p2/e5a62510-8d86-4d96-aa30-8968280fefea/c67554fa-344d-4de2-8121-70ba5820f2fc?contactid=e5ef6ec8-6a4e-3f76-496a-007cce585c54 ) | 🛠️ Polywork ( https://ed515793-d623-44e9-a1d2-ee17f996e35d.mailbutler.link/p2/e5a62510-8d86-4d96-aa30-8968280fefea/ad28b931-5368-48a6-9e26-411f187026e7?contactid=e5ef6ec8-6a4e-3f76-496a-007cce585c54 ) | 👩🏼💻 GitHub ( https://ed515793-d623-44e9-a1d2-ee17f996e35d.mailbutler.link/p2/e5a62510-8d86-4d96-aa30-8968280fefea/7703655c-9d10-4ece-81e2-8cf45437c59f?contactid=e5ef6ec8-6a4e-3f76-496a-007cce585c54 ) 🔗 Mastodon ( https://ed515793-d623-44e9-a1d2-ee17f996e35d.mailbutler.link/p2/e5a62510-8d86-4d96-aa30-8968280fefea/993a3220-3276-40da-9f06-4866a4d5a8e9?contactid=e5ef6ec8-6a4e-3f76-496a-007cce585c54 ) | 📸 Instagram ( https://ed515793-d623-44e9-a1d2-ee17f996e35d.mailbutler.link/p2/e5a62510-8d86-4d96-aa30-8968280fefea/489f4812-bf31-4a35-aa78-43df684b8317?contactid=e5ef6ec8-6a4e-3f76-496a-007cce585c54 ) | 📆 Events ( https://ed515793-d623-44e9-a1d2-ee17f996e35d.mailbutler.link/p2/e5a62510-8d86-4d96-aa30-8968280fefea/502bf7d8-be50-4df9-850e-ed6335dd519b?contactid=e5ef6ec8-6a4e-3f76-496a-007cce585c54 ) 🎥 YouTube ( https://ed515793-d623-44e9-a1d2-ee17f996e35d.mailbutler.link/p2/e5a62510-8d86-4d96-aa30-8968280fefea/e7c3e946-29d1-4501-a6a2-8c98643c71de?contactid=e5ef6ec8-6a4e-3f76-496a-007cce585c54 ) | 📹 Twitch ( https://ed515793-d623-44e9-a1d2-ee17f996e35d.mailbutler.link/p2/e5a62510-8d86-4d96-aa30-8968280fefea/24f75329-b262-4c78-9a1f-0eff0f8e569f?contactid=e5ef6ec8-6a4e-3f76-496a-007cce585c54 ) | 📧 Newsletter ( https://ed515793-d623-44e9-a1d2-ee17f996e35d.mailbutler.link/p2/e5a62510-8d86-4d96-aa30-8968280fefea/a62e540e-eec1-4158-8607-26f783efea9e?contactid=e5ef6ec8-6a4e-3f76-496a-007cce585c54 )
👋🏻 my working hours may not be your working hours, please don’t feel obliged to respond immediately
On Mon, Mar 11, 2024 at 12:37 AM, jwellstx < @.*** > wrote:
Hello, was there an official resolution to this issue? I am facing the permissions issue with the latest version.
— Reply to this email directly, view it on GitHub ( https://github.com/HumanSignal/label-studio/issues/4387#issuecomment-1987620791 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/AM4HJK5ZDKWQH36NTPSP4HLYXU7JRAVCNFSM6AAAAAAZHTYB4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBXGYZDANZZGE ). You are receiving this because you were mentioned. Message ID: <HumanSignal/label-studio/issues/4387/1987620791 @ github. com>
Hi Erin, thanks for responding even though you have moved off the project! Unfortunately, I think GitHub censored the email :(
Thanks, -Justin
Oh no — COMMUNITY at HUMANSIGNAL dot COM or COMMUNITY at LABELSTUD dot IO let me know that helps :)
Erin Mikail Staples (she/her) Dev Advocate | Community Human | Tech Education | Comedian
📧 @.*** 🌐 erinmikailstaples.com ( https://ed515793-d623-44e9-a1d2-ee17f996e35d.mailbutler.link/p2/e5a62510-8d86-4d96-aa30-8968280fefea/02d781a6-c621-4475-aee1-6d43c93ebcdb?contactid=e5ef6ec8-6a4e-3f76-496a-007cce585c54 ) ☎️ let's chat ( https://cal.com/erinmikail )
I’m very online — find me on… 💼 LinkedIn ( https://ed515793-d623-44e9-a1d2-ee17f996e35d.mailbutler.link/p2/e5a62510-8d86-4d96-aa30-8968280fefea/c67554fa-344d-4de2-8121-70ba5820f2fc?contactid=e5ef6ec8-6a4e-3f76-496a-007cce585c54 ) | 🛠️ Polywork ( https://ed515793-d623-44e9-a1d2-ee17f996e35d.mailbutler.link/p2/e5a62510-8d86-4d96-aa30-8968280fefea/ad28b931-5368-48a6-9e26-411f187026e7?contactid=e5ef6ec8-6a4e-3f76-496a-007cce585c54 ) | 👩🏼💻 GitHub ( https://ed515793-d623-44e9-a1d2-ee17f996e35d.mailbutler.link/p2/e5a62510-8d86-4d96-aa30-8968280fefea/7703655c-9d10-4ece-81e2-8cf45437c59f?contactid=e5ef6ec8-6a4e-3f76-496a-007cce585c54 ) 🔗 Mastodon ( https://ed515793-d623-44e9-a1d2-ee17f996e35d.mailbutler.link/p2/e5a62510-8d86-4d96-aa30-8968280fefea/993a3220-3276-40da-9f06-4866a4d5a8e9?contactid=e5ef6ec8-6a4e-3f76-496a-007cce585c54 ) | 📸 Instagram ( https://ed515793-d623-44e9-a1d2-ee17f996e35d.mailbutler.link/p2/e5a62510-8d86-4d96-aa30-8968280fefea/489f4812-bf31-4a35-aa78-43df684b8317?contactid=e5ef6ec8-6a4e-3f76-496a-007cce585c54 ) | 📆 Events ( https://ed515793-d623-44e9-a1d2-ee17f996e35d.mailbutler.link/p2/e5a62510-8d86-4d96-aa30-8968280fefea/502bf7d8-be50-4df9-850e-ed6335dd519b?contactid=e5ef6ec8-6a4e-3f76-496a-007cce585c54 ) 🎥 YouTube ( https://ed515793-d623-44e9-a1d2-ee17f996e35d.mailbutler.link/p2/e5a62510-8d86-4d96-aa30-8968280fefea/e7c3e946-29d1-4501-a6a2-8c98643c71de?contactid=e5ef6ec8-6a4e-3f76-496a-007cce585c54 ) | 📹 Twitch ( https://ed515793-d623-44e9-a1d2-ee17f996e35d.mailbutler.link/p2/e5a62510-8d86-4d96-aa30-8968280fefea/24f75329-b262-4c78-9a1f-0eff0f8e569f?contactid=e5ef6ec8-6a4e-3f76-496a-007cce585c54 ) | 📧 Newsletter ( https://ed515793-d623-44e9-a1d2-ee17f996e35d.mailbutler.link/p2/e5a62510-8d86-4d96-aa30-8968280fefea/a62e540e-eec1-4158-8607-26f783efea9e?contactid=e5ef6ec8-6a4e-3f76-496a-007cce585c54 )
👋🏻 my working hours may not be your working hours, please don’t feel obliged to respond immediately
On Mon, Mar 11, 2024 at 8:08 PM, jwellstx < @.*** > wrote:
Hi Erin, thanks for responding even though you have moved off the project! Unfortunately, I think GitHub censored the email :(
Thanks, -Justin
— Reply to this email directly, view it on GitHub ( https://github.com/HumanSignal/label-studio/issues/4387#issuecomment-1989672737 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/AM4HJK7D4XMF4ORFWWO4QZLYXZIRXAVCNFSM6AAAAAAZHTYB4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBZGY3TENZTG4 ). You are receiving this because you were mentioned. Message ID: <HumanSignal/label-studio/issues/4387/1989672737 @ github. com>
It looks like the error is caused by an old version of wheel
that is getting pulled in as a development dependency. Looking through the poetry.lock
file you can see two versions:
[package.extras]
css = ["tinycss2 (>=1.1.0,<1.2)"]
dev = ["Sphinx (==4.3.2)", "black (==22.3.0)", "build (==0.8.0)", "flake8 (==4.0.1)", "hashin (==0.17.0)", "mypy (==0.961)", "pip-tools (==6.6.2)", "pytest (==7.1.2)", "tox (==3.25.0)", "twine (==4.0.1)", "wheel (==0.37.1)"]
and
[[package]]
name = "wheel"
version = "0.40.0"
description = "A built-package format for Python"
optional = false
python-versions = ">=3.7"
files = [
{file = "wheel-0.40.0-py3-none-any.whl", hash = "sha256:d236b20e7cb522daf2390fa84c55eea81c5c30190f90f29ae2ca1ad8355bf247"},
{file = "wheel-0.40.0.tar.gz", hash = "sha256:cd1196f3faee2b31968d626e1731c94f99cbdb67cf5a46e4f5656cbee7738873"},
]
The latter is expected, and called out explicitly in the pyproject.toml
file (link). It looks like this issue was introduced as part of the migration to Poetry for dependency management (re: PR #4888).
It looks like a fix might be to exclude dev dependencies when installing them in the Dockerfile. E.g., something like the following:
diff --git a/Dockerfile b/Dockerfile
index 11d56ad..cf014f0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -79,7 +79,7 @@ COPY --chown=1001:0 label_studio/__init__.py ./label_studio/__init__.py
# the system python. This includes label-studio itself. For caching purposes,
# do this before copying the rest of the source code.
RUN --mount=type=cache,target=$POETRY_CACHE_DIR \
- poetry check --lock && poetry install
+ poetry check --lock && poetry install --no-dev
COPY --chown=1001:0 LICENSE LICENSE
COPY --chown=1001:0 licenses licenses
Any updates on this issue? It's still happening on our fork for the version 1.13.1
Describe the bug I've got PermissionError: [Errno 13] Permission denied: while deploy on Heroku as a container occur from
instead of using Heroku deploy button, I deployed directly from branch by connecting it to Heroku
To Reproduce Steps to reproduce the behavior:
Expected behavior An app should run and serve normally in the heroku endpoint
Screenshots
Environment (please complete the following information):
Full Stack Traces