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

Issues starting alf.io #872

Closed
FelixBuehler opened this issue Feb 19, 2020 · 1 comment
Closed

Issues starting alf.io #872

FelixBuehler opened this issue Feb 19, 2020 · 1 comment
Labels

Comments

@FelixBuehler
Copy link

Hello everybody,

I'm trying to start an instance of alf.io. I either fail via docker or gradlew. Steps and results below:

gradlew:

  1. git clone the M1 branch
  2. set up a pgsql instance with the demanded db, user and pw
  3. ./gradlew clean
  4. ./gradlew -Pprofile=dev :bootRun

It runs up to 80% and then gets stuck. It is accessible via browser, but when I cancel the SSH connection or abort it, then it's shutting down. This is my logfile:

    _    _  __  _
   / \  | |/ _|(_) ___
  / _ \ | | |_ | |/ _ \
 / ___ \| |  _|| | (_) |
/_/   \_\_|_|(_)_|\___/

>> powered by Spring Boot

10:12:14.173 [main] INFO  alfio.config.SpringBootLauncher - Starting SpringBootLauncher on spielwiese with PID 23198 (/home/ubuntu/alf.io/build/classes/java/main started by ubuntu in /home/ubuntu/alf.io)
10:12:14.179 [main] INFO  alfio.config.SpringBootLauncher - The following profiles are active: spring-boot,dev
10:12:16.111 [main] WARN  alfio.config.DataSourceConfiguration - You're accessing the database using a superuser. This is highly discouraged since it will disable the row security policy checks.
Warning: Nashorn engine is planned to be removed from a future JDK release
10:12:19.503 [main] INFO  alfio.config.ConfigurationStatusChecker - performing migration from previous version, if any
10:12:19.540 [main] INFO  alfio.config.ConfigurationStatusChecker - done.
10:12:19.541 [main] INFO  alfio.config.ConfigurationStatusChecker - initialized alf.io version 2.0-M2-SNAPSHOT
10:12:19.594 [main] INFO  alfio.config.SpringBootLauncher - Started SpringBootLauncher in 5.903 seconds (JVM running for 6.764)
10:12:19.609 [main] INFO  alfio.config.SpringBootLauncher - profiles: requested dev, active spring-boot, dev
<==========---> 80% EXECUTING [3m 11s]

Docker:

I removed the dev variable and ran docker-compose up -d. It starts up completely but is not accessible via browser on 8080. When I wget localhost:8080 it redirects me to 8443. It probably has to do with the port mapping, but I'm not quite sure, on which I should map it.

@cbellone
Copy link
Member

Hi @FelixBuehler,

thank you for using alf.io!

If you want to deploy alf.io in production, please either check our documentation, or have a look at #834

back to your points:

gradle
1. git clone the M1 branch

please have a look at our releases for pre-built binaries.
Please also note that M1 is not an active branch anymore, as stated in our README

It runs up to 80% and then gets stuck. It is accessible via browser, but when I cancel the SSH connection or abort it, then it's shutting down.

this is totally expected, as gradle is a build tool, and is not meant to help you run alf.io as application

Docker:

I removed the dev variable and ran docker-compose up -d. It starts up completely but is not accessible via browser on 8080. When I wget localhost:8080 it redirects me to 8443. It probably has to do with the port mapping, but I'm not quite sure, on which I should map it.

Alf.io requires an SSL channel open for serving production requests. Please see #363 for more info

I am closing this since it's not an issue. If you have other questions, please head to our mailing list

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants