Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] stb_image_resize.h 404 error #359

Open
lifewater opened this issue Mar 6, 2024 · 2 comments
Open

[Bug Report] stb_image_resize.h 404 error #359

lifewater opened this issue Mar 6, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@lifewater
Copy link

Describe the bug
My docker build is failing because it cannot get stb_image.h

To Reproduce

  1. Use standard config/docker file.
  2. docker compose up -d
  3. https://raw.githubusercontent.com/nothings/stb/master/stb_image_resize.h fails to download (404)

Expected behavior
Was expecting the docker image to build

Environment (please complete the following information):
Centos 7.9
Mango 0.27.0

Docker (if you are running Mango in a Docker container)
[lifewater@utilserver Mango]$ cat docker-compose.yml
version: '3'

services:
mango:
container_name: mango
build:
context: .
dockerfile: ./Dockerfile
expose:
- ${PORT}
ports:
- "${PORT}:9000"
volumes:
- ${MAIN_DIRECTORY_PATH}:/root/mango
- ${CONFIG_DIRECTORY_PATH}:/root/.config/mango
[lifewater@laifugameserver Mango]$ cat .env

Port that exposes the HTTP frontend

PORT=9000

Path to the mango main directory

This directory holds the database and the library files

MAIN_DIRECTORY_PATH=/home/lifewater/apps/Mango

Path to the mango config directory

This directory holds the mango configuration path

CONFIG_DIRECTORY_PATH=/home/lifewater/apps/Mango/config
[lifewater@utilserver Mango]$

Additional context
130.1 mkdir -p objects
130.1 mv libwebp.o objects
130.1 cd objects && ar x ../libwebp-1.1.0/src/libwebp.a
130.1 cd objects && ar rcs libwebp.a *.o
130.1 mv objects/libwebp.a .
130.1 make[2]: Leaving directory '/Mango/lib/image_size/ext/libwebp'
130.1 make[2]: Entering directory '/Mango/lib/image_size/ext/stbi'
130.1 wget https://raw.githubusercontent.com/nothings/stb/master/stb_image.h
130.1 Connecting to raw.githubusercontent.com (185.199.108.133:443)
130.1 saving to 'stb_image.h'
130.1 stb_image.h 100% |********************************| 276k 0:00:00 ETA
130.1 'stb_image.h' saved
130.1 wget https://raw.githubusercontent.com/nothings/stb/master/stb_image_resize.h
130.1 Connecting to raw.githubusercontent.com (185.199.108.133:443)
130.1 wget: server returned error: HTTP/1.1 404 Not Found
130.1 make[2]: *** [Makefile:11: stb_image_resize.h] Error 1
130.1 make[2]: Leaving directory '/Mango/lib/image_size/ext/stbi'
130.1 make[1]: *** [Makefile:4: all] Error 2
130.1 make[1]: Leaving directory '/Mango/lib/image_size'
130.1 make: *** [Makefile:21: libs] Error 1

@lifewater lifewater added the bug Something isn't working label Mar 6, 2024
@lifewater
Copy link
Author

lifewater commented Mar 6, 2024

appears that the stb repo changed 3 weeks ago and https://raw.githubusercontent.com/nothings/stb/master/stb_image_resize.h was removed and changed to https://raw.githubusercontent.com/nothings/stb/master/stb_image_resize2.h, while version 1 was moved to a deprecated space. Possibly the cause.

@lifewater lifewater changed the title stb_image_resize.h 404 error [Bug Report] stb_image_resize.h 404 error Mar 6, 2024
@AkkoYK
Copy link

AkkoYK commented Mar 23, 2024

I had fixed this problem in my repo, just replace “hkalexling/image_size.cr” in shard.yml and shard.lock with “akkoyk/image_size.cr”.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants