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

First run - fails #30

Open
sledzik1984 opened this issue Nov 17, 2023 · 4 comments
Open

First run - fails #30

sledzik1984 opened this issue Nov 17, 2023 · 4 comments

Comments

@sledzik1984
Copy link

sledzik1984 commented Nov 17, 2023

Compose file (for Portainer STACK):

version: "2.0"

volumes:
  #fam_db:
  fam_webapp:

networks:
  flightairmap:

services:
  #flightairmap_db:
  #  image: lscr.io/linuxserver/mariadb:latest
   # tty: true
    #container_name: flightairmap_db
    #restart: always
    #environment:
    #  - PUID=0
    #  - PGID=0
    #  - MYSQL_ROOT_PASSWORD=shai5Eisah7phe0aic5foote
    #  - MYSQL_DATABASE=flightairmap
    #  - MYSQL_USER=flightairmap
    #  - TZ=${FEEDER_TZ}
    #  - MYSQL_PASSWORD=xi6Paig4yeitae3Pah9aew3j
    #volumes:
    #  - fam_db:/config

  flightairmap:
    image: mikenye/flightairmap:latest
    tty: true
    container_name: flightairmap
    restart: always
    ports:
      - 8005:80
    environment:
      - TZ=Europe/Warsaw
      #- BASESTATIONHOST=192.168.254.183
      - FAM_INSTALLPASSWORD="###"
      - MYSQLHOSTNAME=192.168.15.48
      - MYSQLPORT=3306
      - MYSQLDATABASE=fam
      - MYSQLUSERNAME=fam
      - VERBOSE_LOGGING=false
      - MYSQLPASSWORD=###
      - MYSQLROOTPASSWORD=###
    volumes:
      - fam_webapp:/var/www/flightairmap
    #depends_on:
    #  - flightairmap_db

Error (goes in loop):

+ INSTALLERROR='"Unknwon task : "'
++ jq .next
+ INSTALLNEXT='"finish"'
++ jq .install
+ INSTALLPHASE='"finish"'
+ '[' '"Unknwon task : "' = '""' ']'
+ jq .
{
  "error": "Unknwon task : ",
  "done": null,
  "next": "finish",
  "install": "finish"
}
+ echo ''
+ echo -e '\033[1;31m"Unknwon task : "\033[0m'
0=U 1=n 2=k 3=n 4=w 5=o 6=n 7=  8=t 9=a 10=s 11=k 12=  13=: 14=  
+ echo ''
+ exit 1
s6-rc: warning: unable to start service 02-firstrun: command exited 1
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.

Database server works ok (as other services using it work).

@rikgale
Copy link

rikgale commented Nov 18, 2023

Try changing the flightairmap image to

image: ghcr.io/sdr-enthusiasts/docker-flightairmap:latest

You appear to be using the old Mike Nye image and some work have been performed on the container since then

@sledzik1984
Copy link
Author

That's a mistake in bug report. I've tested different images . Actual docker compose I've deployed uses sdr-enthusiasts image:

version: "2.0"

volumes:
  #fam_db:
  fam_webapp:

networks:
  flightairmap:

services:
  #flightairmap_db:
  #  image: lscr.io/linuxserver/mariadb:latest
   # tty: true
    #container_name: flightairmap_db
    #restart: always
    #environment:
    #  - PUID=0
    #  - PGID=0
    #  - MYSQL_ROOT_PASSWORD=shai5Eisah7phe0aic5foote
    #  - MYSQL_DATABASE=flightairmap
    #  - MYSQL_USER=flightairmap
    #  - TZ=${FEEDER_TZ}
    #  - MYSQL_PASSWORD=xi6Paig4yeitae3Pah9aew3j
    #volumes:
    #  - fam_db:/config

  flightairmap:
    image: ghcr.io/sdr-enthusiasts/docker-flightairmap:latest
    tty: true
    container_name: flightairmap
    restart: always
    ports:
      - 8005:80
    environment:
      - TZ=Europe/Warsaw
      #- BASESTATIONHOST=192.168.
      - FAM_INSTALLPASSWORD="###"
      - MYSQLHOSTNAME=192.168.15.48
      - MYSQLPORT=3306
      - MYSQLDATABASE=fam
      - MYSQLUSERNAME=fam
      - VERBOSE_LOGGING=false
      - MYSQLPASSWORD=###
      - MYSQLROOTPASSWORD=###
    volumes:
      - fam_webapp:/var/www/flightairmap
    #depends_on:
    #  - flightairmap_db

Error remains the same

@mikenye
Copy link
Member

mikenye commented Nov 21, 2023

Could you please try:

  • Stop the flightairmap container
  • Delete the fam_webapp volume
  • Remove the MYSQLHOSTNAME and MYSQLPORT env vars (so it uses the internal database only)
  • Try starting the container

Could you please let me know how that goes? If it still fails, please paste the entire container log from start.

@sledzik1984
Copy link
Author

s6-rc: info: service 01-sanitycheck: starting
INFO: MYSQLHOSTNAME not set, using local database
ERROR: local data base is not supported. Please set up an external mariadb instance for use.
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: warning: unable to start service 01-sanitycheck: command exited 1
s6-rc: info: service libseccomp2 successfully started
s6-rc: info: service legacy-cont-init successfully started
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service libseccomp2: stopping
s6-rc: info: service libseccomp2 successfully stopped
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

Well... local database is not supported.

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

3 participants