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

0.11.19 SQLite Db Errors #701

Closed
Jiriteach opened this issue Aug 31, 2023 · 81 comments
Closed

0.11.19 SQLite Db Errors #701

Jiriteach opened this issue Aug 31, 2023 · 81 comments
Assignees
Labels
🐛 bug Something isn't working

Comments

@Jiriteach
Copy link

Seeing db errors with the latest release. Since I used Watchtower - it pulled down the latest 0.11.19 and now the container wont come back up. Have multiple deployments effected.

Assuming this is related to the SQLite changes? How does one fix this? Was a working deployment - only update was the container.

#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(272): Illuminate\\Database\\SQLiteConnection->__construct()
#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(76): Illuminate\\Database\\Connectors\\ConnectionFactory->createConnection()
#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(50): Illuminate\\Database\\Connectors\\ConnectionFactory->createSingleConnection()
#7 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(152): Illuminate\\Database\\Connectors\\ConnectionFactory->make()
#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(101): Illuminate\\Database\\DatabaseManager->makeConnection()
#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(210): Illuminate\\Database\\DatabaseManager->connection()
#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(98): Illuminate\\Cache\\CacheManager->createDatabaseDriver()
#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(61): Illuminate\\Cache\\CacheManager->resolve()
#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(72): Illuminate\\Cache\\CacheManager->store()
#13 /var/www/html/vendor/laravel/framework/src/Illuminate/Cache/CacheServiceProvider.php(36): Illuminate\\Cache\\CacheManager->driver()
#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(908): Illuminate\\Cache\\CacheServiceProvider->Illuminate\\Cache\\{closure}()
#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\\Container\\Container->build()
#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(937): Illuminate\\Container\\Container->resolve()
#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate\\Foundation\\Application->resolve()
#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(922): Illuminate\\Container\\Container->make()
#19 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(1454): Illuminate\\Foundation\\Application->make()
#20 /var/www/html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(236): Illuminate\\Container\\Container->offsetGet()
#21 /var/www/html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(207): Illuminate\\Support\\Facades\\Facade::resolveFacadeInstance()
#22 /var/www/html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(347): Illuminate\\Support\\Facades\\Facade::getFacadeRoot()
#23 /var/www/html/app/Providers/RouteServiceProvider.php(29): Illuminate\\Support\\Facades\\Facade::__callStatic()
#24 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\\Providers\\RouteServiceProvider->boot()
#25 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#26 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure()
#27 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod()
#28 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call()
#29 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1010): Illuminate\\Container\\Container->call()
#30 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(991): Illuminate\\Foundation\\Application->bootProvider()
#31 [internal function]: Illuminate\\Foundation\\Application->Illuminate\\Foundation\\{closure}()
#32 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(992): array_walk()
#33 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate\\Foundation\\Application->boot()
#34 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(261): Illuminate\\Foundation\\Bootstrap\\BootProviders->bootstrap()
#35 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(447): Illuminate\\Foundation\\Application->bootstrapWith()
#36 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(199): Illuminate\\Foundation\\Console\\Kernel->bootstrap()
#37 /var/www/html/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle()
#38 {main}
[previous exception] [object] (Illuminate\\Database\\SQLiteDatabaseDoesNotExistException(code: 0): Database file at path [/var/www/html/database/database.sqlite] does not exist. Ensure this is an absolute path to the database. at /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/SQLiteConnector.php:34)
�
[stacktrace]
#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(221): Illuminate\\Database\\Connectors\\SQLiteConnector->connect()
#1 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1292): call_user_func()
#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(574): Illuminate\\Database\\Connection->getPdo()
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(788): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}()
#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(755): Illuminate\\Database\\Connection->runQueryCallback()
#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(581): Illuminate\\Database\\Connection->run()
#7 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(398): Illuminate\\Database\\Connection->statement()
#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/SQLiteConnection.php(36): Illuminate\\Database\\Schema\\Builder->enableForeignKeyConstraints()
#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(272): Illuminate\\Database\\SQLiteConnection->__construct()
#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(76): Illuminate\\Database\\Connectors\\ConnectionFactory->createConnection()
#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(50): Illuminate\\Database\\Connectors\\ConnectionFactory->createSingleConnection()
#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(152): Illuminate\\Database\\Connectors\\ConnectionFactory->make()
#13 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(101): Illuminate\\Database\\DatabaseManager->makeConnection()
#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(210): Illuminate\\Database\\DatabaseManager->connection()
#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(98): Illuminate\\Cache\\CacheManager->createDatabaseDriver()
#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(61): Illuminate\\Cache\\CacheManager->resolve()
#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(72): Illuminate\\Cache\\CacheManager->store()
#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Cache/CacheServiceProvider.php(36): Illuminate\\Cache\\CacheManager->driver()
#19 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(908): Illuminate\\Cache\\CacheServiceProvider->Illuminate\\Cache\\{closure}()
#20 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\\Container\\Container->build()
#21 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(937): Illuminate\\Container\\Container->resolve()
#22 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate\\Foundation\\Application->resolve()
#23 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(922): Illuminate\\Container\\Container->make()
#24 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(1454): Illuminate\\Foundation\\Application->make()
#25 /var/www/html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(236): Illuminate\\Container\\Container->offsetGet()
#26 /var/www/html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(207): Illuminate\\Support\\Facades\\Facade::resolveFacadeInstance()
#27 /var/www/html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(347): Illuminate\\Support\\Facades\\Facade::getFacadeRoot()
#28 /var/www/html/app/Providers/RouteServiceProvider.php(29): Illuminate\\Support\\Facades\\Facade::__callStatic()
#29 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\\Providers\\RouteServiceProvider->boot()
#30 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#31 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure()
#32 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod()
#33 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call()
#34 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1010): Illuminate\\Container\\Container->call()
#35 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(991): Illuminate\\Foundation\\Application->bootProvider()
#36 [internal function]: Illuminate\\Foundation\\Application->Illuminate\\Foundation\\{closure}()
#37 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(992): array_walk()
#38 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate\\Foundation\\Application->boot()
#39 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(261): Illuminate\\Foundation\\Bootstrap\\BootProviders->bootstrap()
#40 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(447): Illuminate\\Foundation\\Application->bootstrapWith()
#41 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(199): Illuminate\\Foundation\\Console\\Kernel->bootstrap()
#42 /var/www/html/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle()
#43 {main}
"} 
In Connection.php line 801:
                                                                               
  Database file at path [/var/www/html/database/database.sqlite] does not exi  
  st. Ensure this is an absolute path to the database. (Connection: sqlite, S  
  QL: PRAGMA foreign_keys = ON;)                                               
                                                                               
In SQLiteConnector.php line 34:
                                                                               
  Database file at path [/var/www/html/database/database.sqlite] does not exi  
  st. Ensure this is an absolute path to the database.                         
                                                                               
s6-rc: warning: unable to start service laravel-automations: 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.
prog: fatal: stopping the container.
@Jiriteach Jiriteach changed the title 0.11.19 Db Errors 0.11.19 SQLite Db Errors Aug 31, 2023
@ChaseFreeman17
Copy link

Same issue here, I moved from latest tag back to image: 'ghcr.io/alexjustesen/speedtest-tracker:v0.11.17'

@Jiriteach
Copy link
Author

I've ended up moving back as well to .17 and its working.

@alexdelprete
Copy link
Contributor

I've ended up moving back as well to .17 and its working.

are you using .env file? docker-compose? can you provide more info please? thanks.

in my case, .19 wasn't reading .env correctly, I moved all env variables to docker-compose file, and now everything's working fine. But I use MariaDB, not sqlite.

@Jiriteach
Copy link
Author

version: '3.3'
services:
    speedtest-tracker:
        container_name: updated-speedtest-tracker

        network_mode: "host"

        environment:
            - PUID=1000
            - PGID=1000
            - TZ=Pacific/Auckland
            - 
        volumes:
            - '/home/pi/Docker/updated-speedtest-tracker/config:/config'
        image: 'ghcr.io/alexjustesen/speedtest-tracker:v0.11.17'

        restart: unless-stopped

@paralovosca
Copy link

paralovosca commented Aug 31, 2023

Same issue here, I moved from latest tag back to image: 'ghcr.io/alexjustesen/speedtest-tracker:v0.11.17', as well.

speedtest-tracker-vpn:
    container_name: speedtest-tracker-vpn
    image: 'ghcr.io/alexjustesen/speedtest-tracker:v0.11.17'
    restart: unless-stopped
    security_opt:
      - no-new-privileges:true
    network_mode: "service:gluetun"
    depends_on:
      gluetun:
        condition: service_healthy
    #ports:
    #  - '8090:80'
    #  - '8443:443'
    environment:
      - 'PUID=${SPEED_PUID}'
      - 'PGID=${PGID}'
      - 'TZ=${TZ}'
      - 'UMASK=${UMASK}'
    volumes:
      #- '/etc/localtime:/etc/localtime:ro'
      - '${DOCKERAPPDATA}/config/speedtest-vpn:/config'
      - '${DOCKERAPPDATA}/config/speedtest-vpn/appdata:/etc/ssl/web'
    healthcheck: # https://github.com/qdm12/gluetun/issues/641#issuecomment-933856220
      test: "curl -sf https://example.com  || exit 1"
      interval: 1m
      timeout: 10s
      retries: 1
    labels:
      - "deunhealth.restart.on.unhealthy=true"
      - "com.centurylinklabs.watchtower.enable=true"
      #- "com.centurylinklabs.watchtower.monitor-only=true"```

```2023-08-31 00:44:14
✅  App key exists
2023-08-31 00:44:14
2023-08-31 00:44:14
🔐  Linking the storage...
2023-08-31 00:44:14
[2023-08-31 04:44:14] production.ERROR: Database file at path [/var/www/html/database/database.sqlite] does not exist. Ensure this is an absolute path to the database. (Connection: sqlite, SQL: PRAGMA foreign_keys = ON;) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 0): Database file at path [/var/www/html/database/database.sqlite] does not exist. Ensure this is an absolute path to the database. (Connection: sqlite, SQL: PRAGMA foreign_keys = ON;) at /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:801)
2023-08-31 00:44:14
[stacktrace]
2023-08-31 00:44:14
#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(755): Illuminate\\Database\\Connection->runQueryCallback()```

@felho001
Copy link

same issue here, watchtower automatic update and I back to v0.11.17 and this is work

@SaltireSoul
Copy link

SaltireSoul commented Aug 31, 2023

Looks like v0.11.18 removed sqlite support

[Chore] Remove support for sqlite by @alexjustesen in #669

Seems this statement wasn't completely true.

Also to note, this impacts new installs not existing.

Originally posted by @alexjustesen in #669 (comment)

@mrxxxxxx
Copy link

mrxxxxxx commented Aug 31, 2023

Same Issue. Use Sqlite. Back to 0.11.17

@felho001
Copy link

Hi how can I set the watchtower not updated speedtest tracking? It is possible? Because my set is 04:00am run all docker compose file updated.

@Jiriteach
Copy link
Author

Hi how can I set the watchtower not updated speedtest tracking? It is possible? Because my set is 04:00am run all docker compose file updated.

Set a label on the container -

com.centurylinklabs.watchtower.enable

With a value of false

@felho001
Copy link

felho001 commented Aug 31, 2023

Hi how can I set the watchtower not updated speedtest tracking? It is possible? Because my set is 04:00am run all docker compose file updated.

Set a label on the container -

com.centurylinklabs.watchtower.enable

With a value of false
I use one compose file and there many docker container where can I set? Speedtest tracker row?
version: "3.2"
services:

Radarr - https://hotio.dev/containers/radarr/

radarr:
container_name: radarr
image: hotio/radarr:latest
restart: unless-stopped
logging:
driver: "json-file"
network_mode: bridge
ports:
- 7878:7878
environment:
- PUID=XX # you must find out your PUID through SSH, type in terminal: id $user
- PGID=XX # you must find out your PGID through SSH, type in terminal: id $user
- TZ=Europe/Budapest # Change to your timezone
volumes:
- /etc/localtime:/etc/localtime:ro
- /volume3/docker/appdata/radarr:/config # Change "/volume3/docker/appdata/radarr" with the path your config will be.
- /volume1/Video/:/Video # Change "/volume1/Video" with the path where your library + torrent/usenet downloads both are.

Sonarr - https://hotio.dev/containers/sonarr/

sonarr:
container_name: sonarr
image: hotio/sonarr:nightly
restart: unless-stopped
logging:
driver: "json-file"
network_mode: bridge
ports:
- 8989:8989
environment:
- PUID=xx # you must find out your PUID through SSH, type in terminal: id $user
- PGID=1xx # you must find out your PGID through SSH, type in terminal: id $user
- TZ=Europe/Budapest # Change to your timezone
volumes:
- /etc/localtime:/etc/localtime:ro
- /volume3/docker/appdata/sonarr:/config # Change "/volume1/docker/appdata/sonarr" with the path your config will be.
- /volume1/Video/:/Video # Change "/volume1/data" with the path where your library + torrent/usenet downloads both are.

lidarr -https://hotio.dev/containers/lidarr/

lidarr:
container_name: lidarr
image: hotio/lidarr
ports:
- "8686:8686"
environment:
- PUID=xx
- PGID=xx
- UMASK=002
- TZ=Europe/Budapest
volumes:
- /etc/localtime:/etc/localtime:ro
- /volume3/docker/appdata/lidarr:/config:rw
- /volume3/music/:/music
- /volume1/Video/:/Video

qBittorrent - https://docs.linuxserver.io/images/docker-qbittorrent

qbittorrent:
container_name: qbittorrent
image: linuxserver/qbittorrent
restart: unless-stopped
logging:
driver: json-file
network_mode: bridge
ports:
- 16681:16681
- 16681:16681/udp
- 8880:8880
environment:
- PUID=1xx # you must find out your PUID through SSH, type in terminal: id $user
- PGID=xx # you must find out your PGID through SSH, type in terminal: id $user
- TZ=Europe/Budapest # Change to your timezone
- UMASK_SET=022
- WEBUI_PORT=8880
volumes:
- /etc/localtime:/etc/localtime:ro
- /volume3/docker/appdata/qbittorrent:/config:rw # Change "/volume1/docker/appdata/qbittorrent" with the path your config will be.
- /volume1/Video/Downloads/:/Video/Downloads:rw # Change "/volume1/data/torrents" with the path your usenet data ends up in.

Watchtower (automatic docker container updater) - https://github.com/containrrr/watchtower

watchtower:
container_name: watchtower
image: containrrr/watchtower
restart: unless-stopped
logging:
driver: "json-file"
network_mode: bridge
environment:
- PUID=xx # you must find out your PUID through SSH, type in terminal: id $user
- PGID=xx# you must find out your PGID through SSH, type in terminal: id $user
- TZ=Europe/Budapest # Change to your timezone
- UMASK=022
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_INCLUDE_STOPPED=false
- WATCHTOWER_MONITOR_ONLY=false
- WATCHTOWER_SCHEDULE=0 0 4 * * * # use cron to change update interval set at 4am.
- WATCHTOWER_TIMEOUT=10s
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock

Jackett - https://hotio.dev/containers/jackett/

jackett:
container_name: jackett
image: hotio/jackett
restart: unless-stopped
logging:
driver: "json-file"
network_mode: bridge
ports:
- 9117:9117
environment:
- PUID=xx # you must find out your PUID through SSH, type in terminal: id $user
- PGID=xx # you must find out your PGID through SSH, type in terminal: id $user
- TZ=Europe/Budapest # Change to your timezone
- UMASK=002
- DEBUG=no
volumes:
- /volume3/docker/appdata/jackett:/config:rw # Change "/volume1/docker/appdata/plex" with the path your config will be.

Bazarr - https://hotio.dev/containers/bazarr/

bazarr:
container_name: bazarr
image: hotio/bazarr:nightly
restart: unless-stopped
logging:
driver: "json-file"
network_mode: bridge
ports:
- 6767:6767
environment:
- PUID=xx # you must find out your PUID through SSH, type in terminal: id $user
- PGID=1xx # you must find out your PGID through SSH, type in terminal: id $user
- TZ=Europe/Budapest # Change to your timezone
- UMASK=002
- DEBUG=no
volumes:
- /etc/localtime:/etc/localtime:ro
- /volume3/docker/appdata/bazarr:/config # Change "/volume1/docker/appdata/bazarr" with the path your config will be.
- /volume1/Video/:/Video # Change "/volume1/data/media" with the path where your library are(sonarr+radarr).

onzu/homebride - https://docs.docker.com/compose/install/

homebridge:
image: oznu/homebridge:latest
container_name: homebridge
restart: unless-stopped
network_mode: host
environment:
- HOMEBRIDGE_CONFIG_UI_PORT=8581
- PUID=xx # you must find out your PUID through SSH, type in terminal: id $user
- PGID=xx # you must find out your PGID through SSH, type in terminal: id $user
- TZ=Europe/Budapest # Change to your timezone
- UMASK=002
volumes:
- /volume3/docker/appdata/homebridge:/config

speedtest-track:

container_name: speedtest-track
image: ghcr.io/alexjustesen/speedtest-tracker:v0.11.17
ports:
  - 8766:80
volumes:
  - /volume3/docker/appdata/speedtest-track:/config
environment:
  - TZ=Europe/Budapest
  - PGID=xx
  - PUID=xx
  - OOKLA_EULA_GDPR=true
  - TELEGRAM_BOT_TOKEN=1x
  - TELEGRAM_CHAT_ID=-x
network_mode: bridge
logging:
  driver: "json-file"
  options:
      max-file: "10"
      max-size: "200k"
restart: unless-stopped

@Christophe999s
Copy link

Same issue, went back to 0.11.17, which corrected the issue

@mdepedrof
Copy link

same error. Back to 0.11.17 to solve the error.
Please can tell us how to resolve with the new versions?

@sahara101
Copy link

Same here. I will wait for Alex before going back :)

@sadden3194
Copy link

sadden3194 commented Aug 31, 2023

same issue. I solved it to swtich from sqlite file to mysql database.

@spupuz
Copy link

spupuz commented Aug 31, 2023

Since last upgrade I can't login, don't see errors using Sql too

@Drallas
Copy link

Drallas commented Aug 31, 2023

It's also failing the MariaDB version, also went back to 0.11.17.

@Thunder7ga
Copy link

Same...back to 0.11.17 and all good.

@alexjustesen
Copy link
Owner

Oops... v0.11.20 restores the symlink and is building now: https://github.com/alexjustesen/speedtest-tracker/releases/tag/v0.11.20

@alexjustesen alexjustesen added the 🐛 bug Something isn't working label Aug 31, 2023
@alexjustesen alexjustesen self-assigned this Aug 31, 2023
@SaltireSoul
Copy link

Oops... v0.11.20 restores the symlink and is building now: https://github.com/alexjustesen/speedtest-tracker/releases/tag/v0.11.20

sqlite still not functioning on v0.11.20

In Connection.php line 801:

  SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select *  
   from information_schema.tables where table_schema = speedtest_tracker and   
  table_name = migrations and table_type = 'BASE TABLE')                       

In Connector.php line 65:
                                             
  SQLSTATE[HY000] [2002] Connection refused  

s6-rc: warning: unable to start service laravel-automations: 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.
prog: fatal: stopping the container.

@MarkusMory
Copy link

I get the same error messages but the speedtest-tracker does work normally

@alexjustesen
Copy link
Owner

alexjustesen commented Aug 31, 2023

You'll need to pass an env variable stating the following and remove any other DB_ environment variables you might be passing...

DB_CONNECTION=sqlite

I'll update the docs later today with how to use sqlite as a DB just know going forward its intended for backwards compatibility only and the recommended DBs will be MySQL/MariaDB and Postresql.

Once #676 is done I'll be working on #591 so you can migrate from SQLite to any of the other options.

@StirCwazy
Copy link

My apologies if this is somewhere mixed into this huge gnarly thread, but is 0.11.21 working on unRAID? Default install, no existing appdata, and I'm getting the following.

In Connection.php line 801:

SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select *
from information_schema.tables where table_schema = speedtest_tracker and
table_name = migrations and table_type = 'BASE TABLE')

In Connector.php line 65:

SQLSTATE[HY000] [2002] Connection refused

This is a clean install on a new server, had this on a previous server a while back and wanted to start using it again. I came across this thread and have seen numerous comments about unRAID and it not working.

@chandz05
Copy link

chandz05 commented Sep 4, 2023

@StirCwazy this is what works for me on Unraid. Note that I setup a separate db for speed test:

-d
--name='speedtest-tracker'
--net='bridge'
-e TZ="America/New_York"
-e HOST_OS="Unraid"
-e HOST_HOSTNAME="Tower"
-e HOST_CONTAINERNAME="speedtest-tracker"
-e 'PUID'='1000'
-e 'PGID'='1000'
-e 'APP_KEY'='base64:somstring'
-e 'DB_CONNECTION'='mysql'
-e 'DB_HOST'='db'
-e 'DB_PORT'='3306'
-e 'DB_DATABASE'='speedtest'
-e 'DB_USERNAME'='speedtest'
-e 'DB_PASSWORD'='password'
-l net.unraid.docker.managed=dockerman
-l net.unraid.docker.webui='https://[IP]:[PORT:443]/'
-l net.unraid.docker.icon='https://raw.githubusercontent.com/devzwf/unraid-docker-templates/main/images/speedtest-tracker-icon.png'
-p '9443:443/tcp'
-v '/mnt/user/appdata/speedtest-tracker-1':'/config':'rw' 'ghcr.io/alexjustesen/speedtest-tracker:latest'

To get the APP_KEY value, run the following command for your speedtest-tracker container:
docker exec -it speedtest-tracker php artisan key:generate --show

@holocronology
Copy link

holocronology commented Sep 4, 2023

UNRAID: I had it on v0.11.17. I changed the template back to "latest". Forced an update and it failed to start. Same errors. Stopped and restarted and it works.

I guess the Unraid APP template is going to need to be revised to include mariadb/mysql or postsql databases.

@StirCwazy
Copy link

@StirCwazy this is what works for me on Unraid. Note that I setup a separate db for speed test:

-d
--name='speedtest-tracker'
--net='bridge'
-e TZ="America/New_York"
-e HOST_OS="Unraid"
-e HOST_HOSTNAME="Tower"
-e HOST_CONTAINERNAME="speedtest-tracker"
-e 'PUID'='1000'
-e 'PGID'='1000'
-e 'APP_KEY'='base64:somstring'
-e 'DB_CONNECTION'='mysql'
-e 'DB_HOST'='db'
-e 'DB_PORT'='3306'
-e 'DB_DATABASE'='speedtest'
-e 'DB_USERNAME'='speedtest'
-e 'DB_PASSWORD'='password'
-l net.unraid.docker.managed=dockerman
-l net.unraid.docker.webui='https://[IP]:[PORT:443]/'
-l net.unraid.docker.icon='https://raw.githubusercontent.com/devzwf/unraid-docker-templates/main/images/speedtest-tracker-icon.png'
-p '9443:443/tcp'
-v '/mnt/user/appdata/speedtest-tracker-1':'/config':'rw' 'ghcr.io/alexjustesen/speedtest-tracker:latest'

To get the APP_KEY value, run the following command for your speedtest-tracker container: docker exec -it speedtest-tracker php artisan key:generate --show

Am I understanding then that a sqlite DB is no longer an option?

@alexjustesen
Copy link
Owner

Decided to try 0.11.21 and strangly - its fixed!. Tried this on multiple sites with the 0.11.21 version. Fails on first startup then restarts and fixed so I belive its fixed now. Thanks

I added back the symlink in 0.11.20 so that fixed the connection to the database because it needed to get mounted inside of the app which is why it suddenly started work.

@SaltireSoul
Copy link

Decided to try 0.11.21 and strangly - its fixed!. Tried this on multiple sites with the 0.11.21 version. Fails on first startup then restarts and fixed so I belive its fixed now. Thanks

I added back the symlink in 0.11.20 so that fixed the connection to the database because it needed to get mounted inside of the app which is why it suddenly started work.

It is still kind of bugged, as it requires two runs to start successfully.

@alexjustesen
Copy link
Owner

I guess the Unraid APP template is going to need to be revised to include mariadb/mysql or postsql databases.

I don't own the template but I'll post in the forums for an update.

@alexjustesen
Copy link
Owner

It is still kind of bugged, as it requires two runs to start successfully.

Caching I think has something to do with it

@SaltireSoul
Copy link

I forgot to mention, ZappyZap's Unraid template doesn't use enviroment variables except for /config

@alexjustesen
Copy link
Owner

Maybe not by default but you can add them
image

@StirCwazy
Copy link

@alexjustesen If using unraid, are there any other variables I'd need to use if opting for sqlite?

@SaltireSoul
Copy link

@StirCwazy I'm actually using Unraid for this myself, however I'm using the .env file.

DB_CONNECTION=sqlite
DB_DATABASE=/config/database.sqlite

@alexjustesen sorry I just meant it creates a .env file by default and manually creating enviroment variables might be having a conflict

@alexjustesen
Copy link
Owner

@alexjustesen sorry I just meant it creates a .env file by default and manually creating enviroment variables might be having a conflict

No worries, I'm marching towards getting rid of the the .env file so environment variables passed through are absolutely preferred at this point.

@alexjustesen If using unraid, are there any other variables I'd need to use if opting for sqlite?

What @SaltireSoul is correct, you just need those two vars.

@holocronology
Copy link

holocronology commented Sep 5, 2023

Adding these to Unraid:
image

Resulted in:
image

Removed them. Started and it failed. Restarted and it worked.

@StirCwazy
Copy link

Adding these to Unraid: image

Resulted in: image

Removed them. Started and it failed. Restarted and it worked.

Added both variables, got the same 500 | Server Error. Removed as you said you tried with success, failed.

In Connection.php line 801:

SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select *
from information_schema.tables where table_schema = speedtest_tracker and
table_name = migrations and table_type = 'BASE TABLE')

In Connector.php line 65:

SQLSTATE[HY000] [2002] Connection refused

@alexjustesen
Copy link
Owner

@StirCwazy config looks right, not sure if it was the unraid forums or here but it required a second restart for the container to pickup the env variables.

@holocronology
Copy link

holocronology commented Sep 5, 2023

it required a second restart for the container to pickup the env variables

I did try the second, and third, restart after adding the variables without success. It was only after removing them that it worked.

Okay, I tried it again and it worked.

UPDATE @alexjustesen :

I added the following variables to Unraid and set up a MariaDB (Linuxserver image) container:

DB_CONNECTION=mysql
DB_HOST=db
DB_PORT=3306
DB_DATABASE=speedtest_tracker
DB_USERNAME=speedy
DB_PASSWORD=password
TZ=America/Chicago

I had to do the same start, stop, and restart to clear the 500 error code. Seems to be working.

@alexjustesen alexjustesen unpinned this issue Sep 5, 2023
@devzwf
Copy link

devzwf commented Sep 6, 2023

I will update the template with this

@devzwf
Copy link

devzwf commented Sep 6, 2023

speedtest_tracker

@StirCwazy config looks right, not sure if it was the unraid forums or here but it required a second restart for the container to pickup the env variables.

That's really weird , but yes it is the case.

@StirCwazy
Copy link

speedtest_tracker

@StirCwazy config looks right, not sure if it was the unraid forums or here but it required a second restart for the container to pickup the env variables.

That's really weird , but yes it is the case.

After adding the variables for DB_CONNECTION and DB_DATABASE it worked after a restart. I've been busy and haven't had a chance to reply, so my apologies to all.

@alexjustesen
Copy link
Owner

#746 merged to dynamically generate an APP_KEY should that be missing on start up.

@toxic0berliner
Copy link

Seems it's not creating the db if it doesn't exist. How to start using this image when no preexisting sqlite db exists? Should be documented I believe

@alexjustesen
Copy link
Owner

Using SQLite added to the FAQ

@felho001
Copy link

Using SQLite added to the FAQ

I try this method but not work for me. I back to v0.11.17

@holocronology
Copy link

I moved to MariaDB.

@alexjustesen
Copy link
Owner

Using SQLite added to the FAQ

I try this method but not work for me. I back to v0.11.17

If you're still having problems please open a new issue and we'll get it sorted. I'll be unsubscribing from this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests