-
Notifications
You must be signed in to change notification settings - Fork 2
Getting error in Frontend when running locally #5
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
Comments
Hi @bummzack , that's nice to have you around here! OO_localRun.mp4Please, let me know of you have any other difficulty |
Hi @mcmpp. When listing the images using openolitor-docker-compose_client-admin_1 /docker-entrypoint.sh ngin ... Up 80/tcp
openolitor-docker-compose_client-kundenportal_1 /docker-entrypoint.sh ngin ... Up 80/tcp
openolitor-docker-compose_db_1 docker-entrypoint.sh mysqld Up 0.0.0.0:3306->3306/tcp
openolitor-docker-compose_nginx_1 /docker-entrypoint.sh ngin ... Up 80/tcp, 0.0.0.0:8080->9000/tcp
openolitor-docker-compose_pdf-tool_1 /docker-entrypoint.sh --sp ... Up 0.0.0.0:9040->8080/tcp
openolitor-docker-compose_s3_1 /usr/bin/docker-entrypoint ... Up (healthy) 0.0.0.0:9050->9000/tcp
openolitor-docker-compose_server_1 /opt/docker/bin/openolitor ... Up (unhealthy) 0.0.0.0:9003->9003/tcp
openolitor-docker-compose_smtp-proxy_1 MailHog Up 0.0.0.0:1025->1025/tcp, 0.0.0.0:8025->8025/tcp Here are two screenshots of the login screens, displaying the error message. I've also checked different browsers, but it happens in all browsers I tested: |
Hi @bummzack great, that means that the issue is while starting the server. You can try to stop and start the server again. The server depends on some other components as the db and the s3. In case the server tries to connect to these components and they are not available, it will fail. This is we tried to avoid making the startup in 2 steps but sometimes it can still have troubles. Could you try docker-compose stop server in case this does not work, you can get the logs doing this: You can share the result here. |
Yeah no luck with stopping and starting the server.
Here's the server-log.txt. |
Hi @bummzack, I was trying to reproduce your issue but I was not able. According to the log, there was an issue trying to apply the db scripts (but only some of them). It seems that there was some interruption on the startup phase. When you restart the server, you still go to this unstable state and it cannot start correctly. Could you try this? |
I've tried the whole procedure again, based on a fresh I think this is an issue with Mac OS X and using bind mounts for the DB data. I also found this issue, which is probably what I'm facing here: docker-library/mysql#99 Using a docker-volume instead of a bind mount solves the problems. version: '2.4'
services:
db:
image: mariadb
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=ofCourseThisIsTrueForTheRootPasswordToo
volumes:
# Using a docker volume
- db-data:/var/lib/mysql
- ./config/db/db_schema.sql:/docker-entrypoint-initdb.d/db_schema.sql
ports:
- "3306:3306"
# … Rest of services omitted
volumes:
db-data: This solves the issue for me, so feel free to close this! |
Hi @bummzack , Nice that you found a way to make it work and share it with us! Please, let us know if you have questions or we can assist somehow |
I've just run the software as described here: https://github.com/OpenOlitor/openolitor-docker-compose#run-on-localhost
When trying to log in to the Client or Admin-Interface, the request to
http://localhost:8080/api-csa1/auth/login
fails with a405
Error.In the frontend I get the following error message:
This happens on both http://localhost:8080/#/login and http://localhost:8080/admin/#/login
Could this be a CORS configuration error?
The text was updated successfully, but these errors were encountered: