craigmulligan / clementine

A self-hosted Graphql Analytics and Observability Platform
https://clementine.hobochild.com
MIT License
35 stars 2 forks source link

Main web UI doesn't load.... #19

Open Suleman-Elahi opened 4 years ago

Suleman-Elahi commented 4 years ago
nginx_1     | 172.20.0.1 - - [14/May/2020:05:30:42 +0000] "GET / HTTP/1.1" 200 396 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36"
nginx_1     | 2020/05/14 05:30:43 [error] 6#6: *1 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 172.20.0.1, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "localhost", referrer: "http://localhost/"
nginx_1     | 172.20.0.1 - - [14/May/2020:05:30:43 +0000] "GET /favicon.ico HTTP/1.1" 404 188 "http://localhost/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36"

Platform: Xubuntu 18.04

I installed it via docker-compose and when I access localhost:80 in browser, it shows Nginx page.

Entire terminal log: https://paste.ee/p/b9Gvc

craigmulligan commented 4 years ago

Hey @Suleman-Elahi, looks like you ran docker-compose up, to start the dev server instead run make dev.

Let me know if that works for you.

Suleman-Elahi commented 4 years ago
(base) roy@roy:~/Desktop/clementine$ sudo make dev
[sudo] password for roy:
docker-compose -f docker-compose.yaml -f dev.yaml build
WARNING: The ENGINE_API_KEY variable is not set. Defaulting to a blank string.
postgres uses an image, skipping
redis uses an image, skipping
Building worker
Step 1/7 : FROM node:12.16.3-alpine3.11
---> 7a48db49edbf
Step 2/7 : ARG NODE_ENV=production
---> Using cache
---> 657a70b601a6
Step 3/7 : ENV NODE_ENV $NODE_ENV
---> Running in 530ab4072a01
Removing intermediate container 530ab4072a01
---> 5e8c4cfd482b
Step 4/7 : WORKDIR /app
---> Running in 71f467fd7f6d
Removing intermediate container 71f467fd7f6d
---> 52e57ed9e437
Step 5/7 : COPY ./package.json ./package-lock.json ./
---> 39c241d191d0
Step 6/7 : RUN npm install --no-optional && npm cache clean --force
---> Running in 3ca94096a844

> core-js@3.6.4 postinstall /app/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> @apollo/protobufjs@1.0.3 postinstall /app/node_modules/@apollo/protobufjs
> node scripts/postinstall

> nodemon@2.0.2 postinstall /app/node_modules/nodemon
> node bin/postinstall || exit 0

Love nodemon? You can now support the project via the open collective:
> https://opencollective.com/nodemon/donate

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 959 packages from 594 contributors and audited 965 packages in 72.178s

34 packages are looking for funding
 run `npm fund` for details

found 25 low severity vulnerabilities
 run `npm audit fix` to fix them, or `npm audit` for details
npm WARN using --force I sure hope you know what you are doing.
Removing intermediate container 3ca94096a844
---> 2c3a8a94606b
Step 7/7 : COPY . .
---> ceaf580b05dc
Successfully built ceaf580b05dc
Successfully tagged clementine_worker:latest
Building server
Step 1/7 : FROM node:12.16.3-alpine3.11
---> 7a48db49edbf
Step 2/7 : ARG NODE_ENV=production
---> Using cache
---> 657a70b601a6
Step 3/7 : ENV NODE_ENV $NODE_ENV
---> Using cache
---> 5e8c4cfd482b
Step 4/7 : WORKDIR /app
---> Using cache
---> 52e57ed9e437
Step 5/7 : COPY ./package.json ./package-lock.json ./
---> Using cache
---> 39c241d191d0
Step 6/7 : RUN npm install --no-optional && npm cache clean --force
---> Using cache
---> 2c3a8a94606b
Step 7/7 : COPY . .
---> Using cache
---> ceaf580b05dc
Successfully built ceaf580b05dc
Successfully tagged clementine_server:latest
Building client
Step 1/7 : FROM node:12.16.3-alpine3.11
---> 7a48db49edbf
Step 2/7 : ARG NODE_ENV=production
---> Using cache
---> 657a70b601a6
Step 3/7 : ENV NODE_ENV $NODE_ENV
---> Using cache
---> 5e8c4cfd482b
Step 4/7 : WORKDIR /app
---> Using cache
---> 52e57ed9e437
Step 5/7 : COPY ./package.json ./package-lock.json ./
---> 86081aae6839
Step 6/7 : RUN npm install --no-optional && npm cache clean --force
---> Running in 8b78f24c40a9

> core-js@2.6.11 postinstall /app/node_modules/babel-runtime/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js@3.6.4 postinstall /app/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js-pure@3.6.4 postinstall /app/node_modules/core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

added 1755 packages from 845 contributors and audited 1957 packages in 115.638s

56 packages are looking for funding
 run `npm fund` for details

found 1 low severity vulnerability
 run `npm audit fix` to fix them, or `npm audit` for details
npm WARN using --force I sure hope you know what you are doing.
Removing intermediate container 8b78f24c40a9
---> 77e2ec35033c
Step 7/7 : COPY . .
---> be2d866d6a8b
Successfully built be2d866d6a8b
Successfully tagged clementine_client:latest
nginx uses an image, skipping
docker-compose -f docker-compose.yaml -f dev.yaml up --remove-orphans
WARNING: The ENGINE_API_KEY variable is not set. Defaulting to a blank string.
Recreating clementine_postgres_1 ...
Recreating clementine_postgres_1
Recreating clementine_redis_1 ...
Recreating clementine_redis_1
Recreating clementine_client_1 ...
Recreating clementine_postgres_1 ... done
Recreating clementine_worker_1 ...
Recreating clementine_worker_1
Recreating clementine_server_1 ...
Recreating clementine_server_1 ... done
Recreating clementine_nginx_1 ...
Recreating clementine_nginx_1 ... done
Attaching to clementine_redis_1, clementine_client_1, clementine_postgres_1, clementine_worker_1, clementine_server_1, clementine_nginx_1
redis_1     |  08:36:08.17
client_1    |
client_1    | > client@0.1.0 dev /app
client_1    | > react-scripts start
client_1    |
client_1    | ℹ 「wds」: Project is running at http://172.20.0.4/
client_1    | ℹ 「wds」: webpack output is served from
client_1    | ℹ 「wds」: Content not from webpack is served from /app/public
client_1    | ℹ 「wds」: 404s will fallback to /
client_1    | Starting the development server...
client_1    |
redis_1     |  08:36:08.23 Welcome to the Bitnami redis container
redis_1     |  08:36:08.24 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-redis
redis_1     |  08:36:08.24 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-redis/issues
redis_1     |  08:36:08.25
redis_1     |  08:36:08.25 INFO  ==> ** Starting Redis setup **
redis_1     |  08:36:08.30 WARN  ==> You set the environment variable ALLOW_EMPTY_PASSWORD=yes. For safety reasons, do not use this flag in a production environment.
redis_1     |  08:36:08.54 INFO  ==> Initializing Redis...
redis_1     |  08:36:09.03 INFO  ==> ** Redis setup finished! **
redis_1     |
redis_1     |  08:36:09.09 INFO  ==> ** Starting Redis **
redis_1     | 1:C 14 May 2020 08:36:09.209 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1     | 1:C 14 May 2020 08:36:09.209 # Redis version=6.0.1, bits=64, commit=00000000, modified=0, pid=1, just started
redis_1     | 1:C 14 May 2020 08:36:09.209 # Configuration loaded
redis_1     | 1:M 14 May 2020 08:36:09.211 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
redis_1     | 1:M 14 May 2020 08:36:09.211 # Server can't set maximum open files to 10032 because of OS error: Operation not permitted.
redis_1     | 1:M 14 May 2020 08:36:09.211 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
redis_1     |                 _._                                                  
redis_1     |            _.-``__ ''-._                                            
redis_1     |       _.-``    `.  `_.  ''-._           Redis 6.0.1 (00000000/0) 64 bit
redis_1     |   .-`` .-```.  ```\/    _.,_ ''-._                                  
redis_1     |  (    '      ,       .-`  | `,    )     Running in standalone mode
redis_1     |  |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
redis_1     |  |    `-._   `._    /     _.-'    |     PID: 1
redis_1     |   `-._    `-._  `-./  _.-'    _.-'                                  
redis_1     |  |`-._`-._    `-.__.-'    _.-'_.-'|                                  
redis_1     |  |    `-._`-._        _.-'_.-'    |           http://redis.io        
redis_1     |   `-._    `-._`-.__.-'_.-'    _.-'                                  
redis_1     |  |`-._`-._    `-.__.-'    _.-'_.-'|                                  
redis_1     |  |    `-._`-._        _.-'_.-'    |                                  
redis_1     |   `-._    `-._`-.__.-'_.-'    _.-'                                  
redis_1     |       `-._    `-.__.-'    _.-'                                      
redis_1     |           `-._        _.-'                                          
redis_1     |               `-.__.-'                                              
redis_1     |
postgres_1  | 2020-05-14 08:36:16.742 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres_1  | 2020-05-14 08:36:16.743 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres_1  | 2020-05-14 08:36:16.810 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1  | 2020-05-14 08:36:17.077 UTC [23] LOG:  database system was shut down at 2020-05-14 05:40:47 UTC
postgres_1  | 2020-05-14 08:36:17.955 UTC [1] LOG:  database system is ready to accept connections
worker_1    |
worker_1    | > clementine@1.0.0 dev:worker /app
worker_1    | > nodemon ./bin/worker.js
worker_1    |
worker_1    | [nodemon] 2.0.2
worker_1    | [nodemon] to restart at any time, enter `rs`
worker_1    | [nodemon] watching dir(s): *.*
redis_1     | 1:M 14 May 2020 08:36:09.218 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1     | 1:M 14 May 2020 08:36:09.218 # Server initialized
redis_1     | 1:M 14 May 2020 08:36:09.218 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
postgres_1  | 2020-05-14 08:36:24.126 UTC [30] LOG:  incomplete startup packet
redis_1     | 1:M 14 May 2020 08:36:09.219 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
redis_1     | 1:M 14 May 2020 08:36:09.221 * Ready to accept connections
worker_1    | [nodemon] watching extensions: js,mjs,json
server_1    |
server_1    | > clementine@1.0.0 dev /app
server_1    | > npm run migrate up && nodemon ./bin/start.js
server_1    |
server_1    |
server_1    | > clementine@1.0.0 migrate /app
server_1    | > npm run wait:db && node ./bin/migrate.js "up"
server_1    |
server_1    |
server_1    | > clementine@1.0.0 wait:db /app
server_1    | > wait-on tcp:postgres:5432 && echo 'postgres is up!'
server_1    |
server_1    | postgres is up!
worker_1    | [nodemon] starting `node ./bin/worker.js`
worker_1    | Running workers
server_1    | Cannot read migrations from database. If this is the first time you run migrations, then this is normal.
server_1    | [nodemon] 2.0.2
server_1    | [nodemon] to restart at any time, enter `rs`
server_1    | [nodemon] watching dir(s): *.*
server_1    | [nodemon] watching extensions: js,mjs,json
server_1    | [nodemon] starting `node ./bin/start.js`
client_1    | Compiled successfully!
client_1    |
client_1    | You can now view client in the browser.
client_1    |
client_1    |   Local:            http://localhost:3000
client_1    |   On Your Network:  http://172.20.0.4:3000
client_1    |
client_1    | Note that the development build is not optimized.
client_1    | To create a production build, use npm run build.
client_1    |

No it still doesn' work. Same issue after using make dev command.

craigmulligan commented 4 years ago

huh, that's strange. To confirm you are visiting localhost:80 after running make dev? I realized the client logs maybe misleading.

If you did indeed try it on port 80 then send me you docker + docker-compose version as that's the only difference I can think of between our setups.

Suleman-Elahi commented 4 years ago

Here it is.

craigmulligan commented 4 years ago

To confirm you tried localhost:80 after running make dev?

My compose is a fair bit newer it might be worth upgrading to see if that fixes it? I'm on v 1.25.0.

On Thu, May 14, 2020 at 5:05 PM Suleman notifications@github.com wrote:

https://user-images.githubusercontent.com/24384996/81951098-607bc500-9622-11ea-9497-8e4a8c1c875a.png

Here it is.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hobochild/clementine/issues/19#issuecomment-628695883, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACIPKDJHAOOKOGERKCGPRULRRQCDRANCNFSM4NALWZWA .

Suleman-Elahi commented 4 years ago

Sorry I am still cought up in the same situation. After acessing localhost:80 all I can see is the Nginx page. I better try it on different machine and will let you know.

Thanks.