Git Product home page Git Product logo

Comments (12)

SamR1 avatar SamR1 commented on August 15, 2024

Hi,

what is the value of the environment variable FLASK_APP in the .env file?

from fittrackee.

lukasheinz92 avatar lukasheinz92 commented on August 15, 2024

Hi, it is FLASK_APP=fittrackee/__main__.py.

from fittrackee.

SamR1 avatar SamR1 commented on August 15, 2024

Hi,

Thanks for your answer. The value is correct.

Have any changes been made to the configuration?
The container should start up without having to make any changes to the .env file after copying it from .env.docker.

from fittrackee.

lukasheinz92 avatar lukasheinz92 commented on August 15, 2024

Hi,

No, I haven't changed any configuration in the env file, I only changed the volumes and ports in the docker-compose. Regarding the .env.docker file, I haven't copied it to .env - the docker-compose contains this:

env_file:
  - .env.docker

from fittrackee.

SamR1 avatar SamR1 commented on August 15, 2024

Hi,

can you try with .env instead (see documentation)?
Some shell scripts source the .env file.

from fittrackee.

lukasheinz92 avatar lukasheinz92 commented on August 15, 2024

Hi,

I followed the documentation:

  • git clone https://github.com/SamR1/FitTrackee.git
  • cd FitTrackee
  • cp .env.docker .env
  • make docker-build
  • I updated the docker-compose-dev.yml (the volumes and ports)
  • make docker-init

But I got this error: OCI runtime exec failed: exec failed: unable to start container process: exec: "docker/init-database.sh": stat docker/init-database.sh: no such file or directory: unknown make: *** [Makefile:64: docker-init-db] Error 126 but I can see the init-database.sh file in the docker subdirectory. In the logs in fittrackee container I can still see the error: Error: Failed to find Flask application or factory in module '__main__'. Use '__main__:name' to specify one.

I am trying to run it on Raspberry Pi and I also can see the terminal ...platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)... - not sure if this can be a problem.

from fittrackee.

SamR1 avatar SamR1 commented on August 15, 2024

Hi,

does adding the platform in docker-compose-dev.yml solve the issue?

from fittrackee.

lukasheinz92 avatar lukasheinz92 commented on August 15, 2024

Hi,

I tried this:

  fittrackee:
    container_name: fittrackee
    platform: "linux/arm64"
    build:
      context: "."
      platforms:
        - "linux/arm64"

... but the same issue.

from fittrackee.

SamR1 avatar SamR1 commented on August 15, 2024

Hi,

Is it the same error?
Python image should exist for linux/arm64/v8.

from fittrackee.

lukasheinz92 avatar lukasheinz92 commented on August 15, 2024

Hi,

yes, it was the same error.

from fittrackee.

SamR1 avatar SamR1 commented on August 15, 2024

Hi,

3.10 tag corresponds to 3.10.14-bookworm . Perhaps another python image may work. Or additional modifications may also be required in the Docker file.

I'm sorry I can't find an immediate solution, and I don't have a Raspberry Pi available with Raspbian to investigate the issue :/.
I'll try to find one.

from fittrackee.

lukasheinz92 avatar lukasheinz92 commented on August 15, 2024

I was not able to fix the issue.

from fittrackee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.