This repository was archived by the owner on Mar 19, 2025. It is now read-only.
forked from clue/docker-ttrss
-
Notifications
You must be signed in to change notification settings - Fork 38
This repository was archived by the owner on Mar 19, 2025. It is now read-only.
I'm not able to use MySQL instead of PostgreSQL #19
Copy link
Copy link
Open
Description
Hey there,
since I have a MySQL instance running, I wanted to switch my TTRSS Container to this database.
I've configured a Database, a Username and Password and inserted the ENV DB_TYPE=mysql to my Docker-Compose File.
Unfortunately it won't let me use a MySQL Database and ist constantly trying to find a Postgre Database.
Here is the output from starting the container:
ttrss | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
ttrss | [s6-init] ensuring user provided files have correct perms...exited 0.
ttrss | [fix-attrs.d] applying ownership & permissions fixes...
ttrss | [fix-attrs.d] done.
ttrss | [cont-init.d] executing container initialization scripts...
ttrss | [cont-init.d] 50-php: executing...
ttrss | rm: can't remove '/usr/sbin/php-fpm': No such file or directory
ttrss | [cont-init.d] 50-php: exited 0.
ttrss | [cont-init.d] 98-wait-for-db: executing...
ttrss | Checking database responds within 1s on :5432...
ttrss | Error: you need to provide a host and port to test.
ttrss | Usage:
ttrss | host:port [-t timeout] [-- command args]
ttrss | -q | --quiet Do not output any status messages
ttrss | -t TIMEOUT | --timeout=timeout Timeout in seconds, zero for no timeout
ttrss | -- COMMAND ARGS Execute command with args after the test finishes
ttrss | [cont-init.d] 98-wait-for-db: exited 2.
ttrss | [cont-init.d] 99-ttrss: executing...
ttrss | Setup: !!! WARNING - No encryption (TLS) used - WARNING !!!
ttrss | Setup: !!! This is not recommended for a production server !!!
ttrss | Setup: You have been warned.
ttrss | Setup: Setting up Tiny Tiny RSS (latest revision) ...
ttrss | Cloning into '/var/www/ttrss'...
ttrss | Cloning into '/var/www/ttrss/plugins/mobilize'...
ttrss | Cloning into '/var/www/ttrss/plugins/feediron'...
ttrss | Cloning into '/var/www/ttrss/themes/feedly-git'...
ttrss | Setup: URL is: <URL PAth>
ttrss | Setup: Additional plugins:
ttrss | Setup: Database
ttrss | Configuring database for: /var/www/ttrss/config.php
ttrss | Error: The env DB_PORT does not exist. Make sure to run with "--link mypostgresinstance:DB"
ttrss | Error: The env DB_PORT does not exist. Make sure to run with "--link mypostgresinstance:DB"
ttrss | Setup: Applying updates ...
ttrss | Updating: Tiny Tiny RSS
ttrss | fatal: unable to access 'https://git.tt-rss.org/git/tt-rss.git/': The requested URL returned error: 503
ttrss | Updating: Mobilize plugin
[...]
ttrss | PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused
ttrss | Is the server running on host "localhost" (127.0.0.1) and accepting
ttrss | TCP/IP connections on port 5432?
ttrss | could not connect to server: Address not available
ttrss | Is the server running on host "localhost" (::1) and accepting
ttrss | TCP/IP connections on port 5432? in /var/www/ttrss/classes/db/pgsql.php on line 21
ttrss | PHP Warning: pg_last_error(): No PostgreSQL link opened yet in /var/www/ttrss/classes/db/pgsql.php on line 24
ttrss | PHP Warning: pg_last_error(): supplied resource is not a valid PostgreSQL link resource in /var/www/ttrss/classes/db/pgsql.php on line 24
ttrss | Unable to connect to database (as fox to localhost, database fox):[09:01:57/348] Spawn interval: 120 sec
ttrss | Unable to connect to database (as fox to localhost, database fox):PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Con
nection refused
ttrss | Is the server running on host "localhost" (127.0.0.1) and accepting
ttrss | TCP/IP connections on port 5432?
ttrss | could not connect to server: Address not available
ttrss | Is the server running on host "localhost" (::1) and accepting
ttrss | TCP/IP connections on port 5432? in /var/www/ttrss/classes/db/pgsql.php on line 21
ttrss | PHP Warning: pg_last_error(): No PostgreSQL link opened yet in /var/www/ttrss/classes/db/pgsql.php on line 24
ttrss | PHP Warning: pg_last_error(): supplied resource is not a valid PostgreSQL link resource in /var/www/ttrss/classes/db/pgsql.php on line 24
ttrss | [09:01:58/351] Spawn interval: 120 sec
ttrss | Unable to connect to database (as fox to localhost, database fox):PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Con
nection refused
ttrss | Is the server running on host "localhost" (127.0.0.1) and accepting
ttrss | TCP/IP connections on port 5432?
ttrss | could not connect to server: Address not available
ttrss | Is the server running on host "localhost" (::1) and accepting
ttrss | TCP/IP connections on port 5432? in /var/www/ttrss/classes/db/pgsql.php on line 21
ttrss | PHP Warning: pg_last_error(): No PostgreSQL link opened yet in /var/www/ttrss/classes/db/pgsql.php on line 24
ttrss | PHP Warning: pg_last_error(): supplied resource is not a valid PostgreSQL link resource in /var/www/ttrss/classes/db/pgsql.php on line 24
Gracefully stopping... (press Ctrl+C again to force)
My Docker-Compose File looks like this:
version: '2'
services:
ttrss:
image: x86dev/docker-ttrss
container_name: ttrss
ports:
- "<OutsidePort>:8080"
environment:
VIRTUAL_HOST: <VirtualHostName>
VIRTUAL_PORT: 8080
SELF_URL_PATH: <self Url Path>
TTRSS_SELF_URL: <self Url Path>
TTRSS_PROTO: http
TTRSS_URL: <Url Path>
DB_TYPE: mysql
DB_NAME: ttrss
DB_USER: ttrss
DB_PASS: <super secret password>
external_links:
- mysql:db
Is there something wrong with my setup?
Metadata
Metadata
Assignees
Labels
No labels