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

Is this still working? #7

Open
juanvasquezreyes opened this issue Jul 1, 2020 · 4 comments
Open

Is this still working? #7

juanvasquezreyes opened this issue Jul 1, 2020 · 4 comments

Comments

@juanvasquezreyes
Copy link

I cloned the project and run the following and is not working as it should

[root@x.x.x.x iris-full]# make
install -d logs/iris-{api,relay}/{nginx,uwsgi}
docker-compose up -d
Starting iris-full_db_1 ... done
Starting iris-full_iris-api_1 ... done
Starting iris-full_prometheus_1 ... done
Starting iris-full_iris-relay_1 ... done
[root@x.x.x.x iris-full]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
726bc60359cd prom/prometheus "/bin/prometheus --c…" 2 minutes ago Up 6 seconds 0.0.0.0:9090->9090/tcp iris-full_prometheus_1
00bc68cf5bcb quay.io/iris/iris-relay "sudo -EHu iris-rela…" 2 minutes ago Up 6 seconds 8080/tcp, 0.0.0.0:16648->16648/tcp iris-full_iris-relay_1
eab3a0162760 quay.io/iris/iris "sudo -EHu iris bash…" 2 minutes ago Up 6 seconds 0.0.0.0:16649->16649/tcp iris-full_iris-api_1
485e7994052e mysql:5.7 "docker-entrypoint.s…" 3 minutes ago Up 7 seconds 3306/tcp, 33060/tcp iris-full_db_1

When I tried to go to localhost:16649 is not loading anything

I checked iris-api logs and it doesnt show anything but the mysql logs show the following:
2020-06-30T22:12:29.149913Z 0 [Note] mysqld: ready for connections.
Version: '5.7.30' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server (GPL)
2020-06-30T22:12:29.704040Z 2 [Note] Got an error reading communication packets
2020-06-30T22:12:30.962040Z 3 [Note] Got an error reading communication packets

@BongoEADGC6
Copy link

Got the same issue here.

@sochkasov
Copy link

+1

@hickwillie
Copy link
Contributor

After much debugging/digging, it is a first-run permissions issue on the log directories for nginx. If you look in the logs directory, when you first run make (or docker compose) it initializes the nginx dir as owned by root:root:

ll logs/iris-api/ -a
total 0
drwxr-xr-x 4 root root 32 Jun 27 23:22 .
drwxr-xr-x 4 root root 40 Jun 15 16:29 ..
drwxr-xr-x 2 root root 6 Jun 27 23:22 nginx
drwxr-xr-x 2 root root 6 Jun 15 16:29 uwsgi

But the nginx dir needs to be owned by 1000:1000 (equating to iris:iris within the container) so that the logs can be written (or else nginx will keep failing over and over again - see /var/log/nginx inside the container):

ll logs/iris-api/nginx/ -a
total 48
drwxr-xr-x 2 1000 1000 62 Jun 27 23:25 .
drwxr-xr-x 4 root root 32 Jun 27 23:22 ..
-rw-r--r-- 1 1000 1000 46801 Jun 28 01:33 access.log
-rw-r--r-- 1 1000 1000 0 Jun 27 23:25 error.log
-rw-r--r-- 1 1000 1000 0 Jun 27 23:25 hc_access.log

Been a long while since I messed with make files, but I am guessing it could be mod'd in there. However, if you pre-create the logs/iris-api/nginx dir with 1000:1000 ownership, everything works.

My question is... Does anyone know the default credentials? 😄

@hickwillie
Copy link
Contributor

I dove into the Makefile so this should be fixed with the pull request I made?

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

4 participants