Giter Site home page Giter Site logo

Cannot build backend about domsy HOT 4 CLOSED

uswebk avatar uswebk commented on May 25, 2024 1
Cannot build backend

from domsy.

Comments (4)

uswebk avatar uswebk commented on May 25, 2024

@dzadzakin
Thank you for reporting the build error.
I have indeed confirmed that the error occurs on my end as well😓

We will investigate based on the information you provided and may take some time.
By the way, are you seeing localhost:3000 on the front end?

from domsy.

dzadzakin avatar dzadzakin commented on May 25, 2024

@uswebk thanks for your quick reply!

I can see the port 3000 is opened on the VM:

# netstat -tapn | grep 3000
tcp        0      0 0.0.0.0:3000            0.0.0.0:*               LISTEN      38362/docker-proxy  

But when I try to open it, I receive this:

curl http://127.0.0.1:3000
curl: (52) Empty reply from server

Below is the output of docker ps:

# docker ps
CONTAINER ID   IMAGE                    COMMAND                  CREATED        STATUS        PORTS                               NAMES
670174a81b2f   frontend-nuxt            "docker-entrypoint.s…"   30 hours ago   Up 30 hours   8080/tcp, 0.0.0.0:8080->3000/tcp    frontend-nuxt-1
92555396ab10   mysql                    "docker-entrypoint.s…"   32 hours ago   Up 31 hours   33060/tcp, 0.0.0.0:3307->3306/tcp   domsy-db-test
bc0b88368370   nginx                    "/docker-entrypoint.…"   32 hours ago   Up 31 hours   80/tcp, 0.0.0.0:8000->8000/tcp      domsy-nginx
79a31ee4dce3   schickling/mailcatcher   "sh -c 'mailcatcher …"   32 hours ago   Up 31 hours   1025/tcp, 0.0.0.0:1080->1080/tcp    backend-mailcatcher-1
323c93dcf595   backend-web              "docker-php-entrypoi…"   32 hours ago   Up 31 hours   0.0.0.0:3000->3000/tcp, 9000/tcp    domsy-web

And if for example I call this URL, I receive this exception:

http://127.0.0.1:8000/api/me

Illuminate\Encryption\MissingAppKeyException
No application encryption key has been specified.

I hope you'll find the reason and help me (and others) to fix it.

Thanks a lot

from domsy.

uswebk avatar uswebk commented on May 25, 2024

@dzadzakin

Thanks for the confirmation.
I am sorry for the way I communicated this, but there was an error in the port number for the front end.

localhost:3000 → localhost:8080

There is also something I would like you to try regarding the back end.

cd backend
docker-compose exec web bash
cp -p .env.example .env
cp -p .env.testing.example .env
.env
DB_CONNECTION=mysql
DB_HOST=db
DB_PORT=3306
DB_DATABASE=domsy
DB_USERNAME=root
DB_PASSWORD=root
php artisan key:generate
php artisan migrate:fresh --seed

Also, domsy-db starts up in my environment, but it does not appear to be running in yours.

CONTAINER ID   IMAGE                    COMMAND                  CREATED        STATUS      PORTS                               NAMES
a9ed5d7c1cbf   backend_web              "docker-php-entrypoi…"   2 months ago   Up 4 days   0.0.0.0:3000->3000/tcp, 9000/tcp    domsy-web
09760f98eaf0   frontend_nuxt            "docker-entrypoint.s…"   2 months ago   Up 3 days   8080/tcp, 0.0.0.0:8080->3000/tcp    frontend_nuxt_1
bc5d8e83b22b   mysql                    "docker-entrypoint.s…"   2 months ago   Up 3 days   0.0.0.0:3306->3306/tcp, 33060/tcp   domsy-db
055f417bb1f4   nginx                    "/docker-entrypoint.…"   2 months ago   Up 3 days   80/tcp, 0.0.0.0:8000->8000/tcp      domsy-nginx
e1ee010bc513   mysql                    "docker-entrypoint.s…"   2 months ago   Up 3 days   33060/tcp, 0.0.0.0:3307->3306/tcp   domsy-db-test
935268caf98c   schickling/mailcatcher   "sh -c 'mailcatcher …"   2 months ago   Up 3 days   1025/tcp, 0.0.0.0:1080->1080/tcp    backend_mailcatcher_1

Could you check this, please?

from domsy.

dzadzakin avatar dzadzakin commented on May 25, 2024

@uswebk,

sorry for the late reply.

I tried to execute the commands you suggested me, but the last commands returns this error (about php version):

backend# php artisan key:generate
Composer detected issues in your platform:

Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.33.

PHP Fatal error:  Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.33. in /backend/vendor/composer/platform_check.php on line 24

backend# php artisan migrate:fresh --seed
Composer detected issues in your platform:

Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.33.

PHP Fatal error:  Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.33. in /backend/vendor/composer/platform_check.php on line 24

The Frontend is working but cannot register/login because localhost:8000/api/me returning this:

Illuminate\Encryption\MissingAppKeyException
No application encryption key has been specified.

I see you added a commit which should fix that issue, I'll try from scratch and let you know!

Thank you very much,
Please keep up your work!

from domsy.

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.