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

my cpu is not compatible? #17

Closed
languagemaniac opened this issue Jul 22, 2024 · 10 comments
Closed

my cpu is not compatible? #17

languagemaniac opened this issue Jul 22, 2024 · 10 comments

Comments

@languagemaniac
Copy link

Hi, I changed the port as you told me but I was still geting a 404 error, so I checked logs and saw this

WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that!
see https://jira.mongodb.org/browse/SERVER-54407
see also https://www.mongodb.com/community/forums/t/mongodb-5-0-cpu-intel-g4650-compatibility/116610/2
see also docker-library/mongo#485 (comment)

/usr/local/bin/docker-entrypoint.sh: line 416: 26 Illegal instruction "${mongodHackedArgs[@]}" --fork

So I'm guessing I just can't run this, am I right? or is there any way to make it work? my cpu is an intel n5105

@jaypyles
Copy link
Owner

jaypyles commented Jul 22, 2024

Check the "Troubleshooting" section in the README.

Edit: you could also try downgrading the mongo version in the docker-compose.yml

@languagemaniac
Copy link
Author

Check the "Troubleshooting" section in the README.

Edit: you could also try downgrading the mongo version in the docker-compose.yml

I downgraded to 4.4.7 and I don't get this issue now but still get a 404 error. Logs from scraperr and mongo look fine, traefik outputs port errors for other of my docker containers like this ""service "tvheadend-tvheadend" error: port is missing"" but don't think that could be causing this.

@jaypyles
Copy link
Owner

Send your compose config

@languagemaniac
Copy link
Author

languagemaniac commented Jul 22, 2024

Send your compose config

services:
  scraperr:
    image: jpyles0524/scraperr:latest
    init: True
    build:
      context: ./
    container_name: scraperr
    env_file:
      - ./.env
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.frontend.rule=Host(`${HOSTNAME}`)"
      - "traefik.http.routers.frontend.entrypoints=web" # websecure if using https
      - "traefik.http.services.frontend.loadbalancer.server.port=8000"
      # - "traefik.http.routers.frontend.tls=true"
    networks:
      - web
  traefik:
    image: traefik:latest
    container_name: traefik
    command:
      - "--providers.docker=true"
      - "--entrypoints.web.address=:80"
      - "--entrypoints.websecure.address=:443"
      # - "--providers.file.filename=/etc/traefik/dynamic_conf.yaml"
    ports:
      - 8124:80
      - 443:443
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock:ro"
      # - "./dynamic_conf.yaml:/etc/traefik/dynamic_conf.yaml"
      # - "/etc/letsencrypt/live/domain/fullchain.pem:/etc/certs/ssl-cert.pem"
      # - "/etc/letsencrypt/live/domain/privkey.pem:/etc/certs/ssl-cert.key"
    networks:
      - web
  mongo:
    container_name: webscrape-mongo
    image: mongo:4.4.7
    restart: always
    environment:
      MONGO_INITDB_ROOT_USERNAME: root
      MONGO_INITDB_ROOT_PASSWORD: example
    networks:
      - web
networks:
  web:

@jaypyles
Copy link
Owner

You will need to set the hostname variable in the .env file to be localhost:8124, since that is what you are binding to access traefik.

@languagemaniac
Copy link
Author

You will need to set the hostname variable in the .env file to be localhost:8124, since that is what you are binding to access traefik.

Unfortunately I did that but I still get a 404

HOSTNAME="localhost:8124"
HOSTNAME_DEV="localhost"

Also tried setting HOSTNAME_DEV to 8124 just for trying. Doesn't change anything (of course I'm recreating the container for every change I make but still no luck)

@jaypyles
Copy link
Owner

You will need to set the hostname variable in the .env file to be localhost:8124, since that is what you are binding to access traefik.

Unfortunately I did that but I still get a 404

HOSTNAME="localhost:8124" HOSTNAME_DEV="localhost"

Also tried setting HOSTNAME_DEV to 8124 just for trying. Doesn't change anything (of course I'm recreating the container for every change I make but still no luck)

If you are having such a hard time getting traefik to work in your setup, just bind the ports in the compose and skip that all together.

ports:
      - 9000:8000

@languagemaniac
Copy link
Author

You will need to set the hostname variable in the .env file to be localhost:8124, since that is what you are binding to access traefik.

Unfortunately I did that but I still get a 404

HOSTNAME="localhost:8124" HOSTNAME_DEV="localhost"

Also tried setting HOSTNAME_DEV to 8124 just for trying. Doesn't change anything (of course I'm recreating the container for every change I make but still no luck)

If you are having such a hard time getting traefik to work in your setup, just bind the ports in the compose and skip that all together.

ports:
      - 9000:8000

I tried adding that to the ports section of the compose file and recreating, still a 404. I don't know what I'm doing wrong.

Could you please provide me with the docker compose file with the changes applied? maybe I need to edit some other thing in there?

@jaypyles
Copy link
Owner

scraperr:
    image: jpyles0524/scraperr:latest
    init: True
    build:
      context: ./
    container_name: scraperr
    ports:
      - 9000:8000
    env_file:
      - ./.env
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.frontend.rule=Host(`${HOSTNAME}`)"
      - "traefik.http.routers.frontend.entrypoints=web" # websecure if using https
      - "traefik.http.services.frontend.loadbalancer.server.port=8000"
      # - "traefik.http.routers.frontend.tls=true"
    networks:
      - web

Go to localhost:9000, pulls up the App for me.

@languagemaniac
Copy link
Author

Thanks, working now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants