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.

Issues running docker container & issues getting a response from the API

See original GitHub issue

Good day, after some troubleshooting and reinstalling everything I’ve managed to get the software running and I can make calls to the api however there seems to be some discrepancies and errors that aren’t making much sense.

Discrepency #1 is that the provided API call example is using source_url parameter while the API only knows of a url parameter, trying to run the example CURL request call fails.

185.202.0.18 - - [31/Dec/2020 10:01:25] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00+&�\x0
185.202.0.18 - - [31/Dec/2020 10:01:25] "+&�
  File "app.py", line 61, in process_image
    url = request.json["url"]

Changing the parameter to URL instead of source_url results in the following error message.

Traceback (most recent call last):
  File "app.py", line 77, in process_image
    callback = send_file(output_path, mimetype='image/jpeg')
  File "/home/testing/.local/lib/python3.6/site-packages/flask/helpers.py", line 629, in send_file
    file = open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/home/testing/DeOldify/data/result_images/a4ccf03a-c25b-4e17-aae6-88300a42a7a3.jpeg'

So it appears that the image is not being saved to the result_images folder after processing?

Also attempting to run using ./quick_start.sh image_api fails with this message.

/usr/local/bin/run_image_api: line 2: 29 Illegal instruction (core dumped) python3 app.py

I also tried running the app using docker with the provided documented method but that also fails without any insights.

Starting docker looks like it runs at first

http://2602:ff50:0:56:225:90ff:fedc:37a6:5000
97bf18410d6f0b1097336acc44327d13a0bbe17a326542d810733765766f9bef

Running docker ps shows no running docker images Running docker ps -a shows the docker image started and almost immediately exited

97bf18410d6f   deoldify_api   "python3 app.py"         24 seconds ago   Exited (132) 22 seconds ago             nice_chebyshev

The server has the following specs and is running a fresh install of Ubuntu 18.04 LTS, all drivers are up to date including nvidia drivers and nvidia-docker , followed the readme exactly.

GPU - NVIDIA GeForce GTX 1070Ti GPU CPU - Intel Xeon E5-2650 v2 2.60GHz 8C/16T RAM - 32GB ECC RAM HDD - 250 GB SSD Storage

Python3 version is 3.6.9 Python2 version is 2.7.17

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
janticcommented, Apr 16, 2021

Closing due to inactivity.

0reactions
jqueguinercommented, Jan 29, 2021

@CodeClouds-Guru can you try following the new QuickStart doc in read me and let me know if the problem persist. Sorry for the doc glitch.

also results are not being saved permanently on the API docker it’s a temporary file being saved then served through the API and then removed form the API server in order to avoid disk usage and preserve data privacy.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Workarounds for common problems - Docker Documentation
Workarounds for common problems. Reboot . Restart your PC to stop / discard any vestige of the daemon running from the previously...
Read more >
Docker container having issue communicating to local server ...
docker.internal to the IP dockerd assigns your host machine to try and get the networking all correct, but it doesn't seem to be...
Read more >
How to Debug and Fix Common Docker Issues - DigitalOcean
In this troubleshooting guide aimed at people new to Docker, you'll troubleshoot problems when building Docker images, resolve naming collisions ...
Read more >
Troubleshoot login to registry - Azure Container Registry
Causes · Docker isn't configured properly in your environment - solution · The registry doesn't exist or the name is incorrect - solution...
Read more >
Troubleshooting errors with Docker commands when using ...
In some cases, running a Docker command against Amazon ECR may result in an ... Topics. Error: "Filesystem Verification Failed" or "404: Image...
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