HumanSignal / HumanSignal/label-studio

Can't annotate with docker: $undefined$ value

Open
#5,957 6 comments 1 reaction 0 assignees View on GitHub
Community community:issue community:reviewed
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

**Describe the bug**
Using the docker image I get an error of $undefined$ value

**To Reproduce**
Steps to reproduce the behavior:
1. chmod 777 mydata (this is a workaround otherwise it gives me `PermissionError: [Errno 13] Permission denied: '/label-studio/data/media'` on File "/label-studio/label_studio/core/settings/base.py", line 423, in
os.makedirs(MEDIA_ROOT, exist_ok=True)
2. `docker run -it -p 8080:8080 -v $(pwd)/mydata:/label-studio/data heartexlabs/label-studio:latest`
3. goto http://0.0.0.0:8080
4. Create a new project and upload some images
5. goto Setup and select as a template Object detection with bounding box
6. goto Labeling interface Use image from -> Imported files
7. the error on the page is
```
There was an issue loading URL from $undefined$ value

Things to look out for:

URL is valid
URL scheme matches the service scheme, i.e. https and https
The static server has wide-open CORS, [more on that here](https://labelstud.io/guide/storage.html#Troubleshoot-CORS-and-access-problems)

Technical description:
URL: [undefined$](http://0.0.0.0:8080/projects/1/undefined$)
```
on the log I see:
```
[2024-06-07 17:18:22,433] [django.request::log_response::224] [WARNING] Not Found: /projects/1/undefined$
[2024-06-07 17:18:22,433] [django.request::log_response::224] [WARNING] Not Found: /projects/1/undefined$
[2024-06-07 17:18:22,433] [django.server::log_message::161] [WARNING] "GET /projects/1/undefined$ HTTP/1.1" 404 1462
[2024-06-07 17:18:22,433] [django.server::log_message::161] [WARNING] "GET /projects/1/undefined$ HTTP/1.1" 404 1462

```
![immagine](https://github.com/HumanSignal/label-studio/assets/682046/de1a20d0-48fc-47c8-90c7-8f33fa1b5d10)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.