fleetbase / fleetbase

Modular logistics and supply chain operating system (LSOS)
https://fleetbase.io
GNU Affero General Public License v3.0
587 stars 222 forks source link

docker-compose error #11

Closed ddouma closed 1 year ago

ddouma commented 1 year ago

Hello,

If i installed it with docker-compose I get 2 errors and it's stuck then:

=> CANCELED [application internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 3.70kB 0.0s => CANCELED [application internal] load .dockerignore

roncodes commented 1 year ago

Can you add additional error context as well as let me know what OS and specs you're on?

Make sure you're running docker-compose up -d from the base directory, not the docker or api directory.

ddouma commented 1 year ago

Hello,

Thanks for the fast reply.

Installing on Centos 7, stock. With Docker en Docker-composer installed. It keeps in Building mode forever, here is the only output docker-compose gives:

✔ database 11 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]      0B/0B      Pulled                                                                                                                             11.2s
   ✔ 90e2fb2facff Pull complete                                                                                                                                                         1.5s
   ✔ ba60eb20fd5f Pull complete                                                                                                                                                         1.6s
   ✔ 4f509402d469 Pull complete                                                                                                                                                         1.6s
   ✔ 496c2cfa6815 Pull complete                                                                                                                                                         1.7s
   ✔ 8ec1dfa9522c Pull complete                                                                                                                                                         5.8s
   ✔ 6dec7ba896f8 Pull complete                                                                                                                                                         5.8s
   ✔ dc9ff75362b0 Pull complete                                                                                                                                                         7.2s
   ✔ 73e4682f9014 Pull complete                                                                                                                                                         7.2s
   ✔ 9ffdeecd6fb6 Pull complete                                                                                                                                                         9.7s
   ✔ a4346ccfb53f Pull complete                                                                                                                                                         9.8s
   ✔ 434c13bc32de Pull complete                                                                                                                                                         9.8s
 ✔ cache 6 layers [⣿⣿⣿⣿⣿⣿]      0B/0B      Pulled                                                                                                                                      13.8s
   ✔ cbdbe7a5bc2a Pull complete                                                                                                                                                         6.9s
   ✔ dc0373118a0d Pull complete                                                                                                                                                        12.1s
   ✔ cfd369fe6256 Pull complete                                                                                                                                                        12.2s
   ✔ 152ffd6a3b24 Pull complete                                                                                                                                                        12.3s
   ✔ 7c01860f13a3 Pull complete                                                                                                                                                        12.4s
   ✔ aa6ecacd3bee Pull complete                                                                                                                                                        12.4s
[+] Building 99.2s (6/6)
 => [console internal] load build definition from Dockerfile                                                                                                                            0.0s
 => => transferring dockerfile: 2B                                                                                                                                                      0.0s
 => [console internal] load .dockerignore                                                                                                                                               0.0s
 => => transferring context: 467B                                                                                                                                                       0.0s
 => CANCELED [application internal] load build definition from Dockerfile                                                                                                               0.0s
 => => transferring dockerfile: 3.70kB                                                                                                                                                  0.0s
 => [application internal] load .dockerignore                                                                                                                                           0.0s
 => => transferring context: 467B                                                                                                                                                       0.0s
 => CANCELED [socket internal] load build definition from Dockerfile                                                                                                                    0.0s
 => => transferring dockerfile: 2B                                                                                                                                                      0.0s
 => CANCELED [socket internal] load .dockerignore                                                                                                                                       0.0s
 => => transferring context: 
roncodes commented 1 year ago

Some important information was left out of the install step, this is temporary at the moment as this is a very alpha version of Fleetbase.

Please pull the latest from main branch, then inside the repo directory run git submodule update --init --recursive and then run docker-compose up -d

We're in the process of creating build, lints, tests on all packages now and consolidating will eventually make an official docker image on the hub

ddouma commented 1 year ago

Ahh, that worked like a charm! Keep up the work guys!

But, I think there is some info missing and a bug:

What is the default admin login for the console? I can't create a account getting error: Network request failed

roncodes commented 1 year ago

@ddouma Please pull the latest and re-run the install. I've had to make a few updates to some of the api dependencies.

As of now we're working on an official install and configurations page which will make the process smoother, until then with this update you should be able to create your account and skip email verification.

ddouma commented 1 year ago

@roncodes

Still getting the error:

image

roncodes commented 1 year ago

Try again in a few minutes, if you try right after the spin up the migrations might still be running.

This is one reason we're working on an official installer wizard.

ddouma commented 1 year ago

@roncodes

Just tryed again, same error. I deleted the whole directory, that a install from scratch

roncodes commented 1 year ago

Are you able to see what the logs are saying in the browser console or in the application container? This will give me insight to the issue so that I can patch it.

ddouma commented 1 year ago

Hello,

Browser Console is giving some errors / warnings:

image

image

image

is there a way to manual add an admin users into the DB?

ddouma commented 1 year ago

Maybe a follow-up.

Is it not possible to get the website files and database in a download? Now you have to setup docker, which I have to play around with ports. For example docker wants to install a mysql server running on port 3306. But I already run an mysql server on port 3306. Same for the httpd server... etc.

roncodes commented 1 year ago

@ddouma Hey it's totally possible to setup Fleetbase without docker. In the repo you will find everything you need.

The console can be started simply with pnpm install && pnpm start from the console directory. The api directory is just laravel and can be hosted anywhere just composer install

but there is a few dependencies like redis, socketcluster, and php geos extension is required to run Fleetbase.

Alternatively to change the ports you can simply use a docker-compose.override.yml file in the root directory to overwrite the docker settings.

As for language we're working on internationalizing Fleetbase, if you check our other apps repos they're all internationalized so this is a very important goal to have the entire Fleetbase ecosystem internationalized.

ddouma commented 1 year ago

ah nice, thanks. I can help with translate.

Anyway, don't know yet why i get that error.

ddouma commented 1 year ago

BTW, you can test it also you see the ip above so you can see the error ;)

roncodes commented 1 year ago

@ddouma The centos server loads but nothing on port 4200. Can you please consult our discord for assistance setting up. Additionally the installer has been released so you can pull the latest and retry the install.

ddouma commented 1 year ago

Hello,

Somehow the docker was stopped: http://213.163.75.188:4200 . Same error!

I digged a bit, it says:

✔ Network fleetbase_default Created
✔ Container fleetbase-console-1 Started
✔ Container fleetbase-cache-1 Started
✔ Container fleetbase-database-1 Started
✔ Container fleetbase-socket-1 Started
✔ Container fleetbase-application-1 Started
✔ Container fleetbase-httpd-1 Started

However if I look into the running dockers:

56bd39a741f1 fleetbase-httpd "/docker-entrypoint.…" 6 minutes ago Up 6 minutes 80/tcp, 0.0.0.0:8000->82/tcp, :::8000->82/tcp fleetbase-httpd-1 75f323822a29 fleetbase-application "docker-php-entrypoi…" 6 minutes ago Up 6 minutes 9000/tcp fleetbase-application-1 f22e53e6b533 redis:4-alpine "docker-entrypoint.s…" 6 minutes ago Up 6 minutes 6379/tcp fleetbase-cache-1 168bd551705d fleetbase-console "/docker-entrypoint.…" 6 minutes ago Up 6 minutes 80/tcp, 0.0.0.0:4200->4200/tcp, :::4200->4200/tcp fleetbase-console-1 4e21fc70e3c5 fleetbase-socket "docker-entrypoint.s…" 6 minutes ago Up 6 minutes 0.0.0.0:38000->8000/tcp, :::38000->8000/tcp fleetbase-socket-1 dfbe151a1245 mysql:8.0-oracle "docker-entrypoint.s…" 6 minutes ago Up 6 minutes 3306/tcp, 33060/tcp, 0.0.0.0:3307->3307/tcp, :::3307->3307/tcp fleetbase-database-1

Still getting the same error after reinstall.

What ports does Fleetbase use? What docker is handeling the registration request / causes the network error?

If I look into the used ports there is nothing on 6379/tcp but the docker Redis runs on it. So I think thats an internal port.