Status of tt-irc

I was trying to install tt-irc, but I can’t clone the repository. Is this still active? I would love to install this.

I followed these instructions:
https://dev.tt-rss.org/archive/tt-irc/wiki/InstallationAndUsage

and tried to git clone this link:
https://git.tt-rss.org/fox/ttirc-docker-compose

Thank you!

i’m not using it anymore but it should be working and active.

https://dev.tt-rss.org/archive/tt-irc
https://dev.tt-rss.org/archive/ttirc-docker-compose

try these repos.

p.s. if you need help, post here, i still remember how it works (for the most part…)

thank you! was able to clone those. Ill give it a shot setting it up tomorrow.
Was able to get tt-rss running pretty easily w/ docker compose, so I would think this should be similar

it is similar, somewhat, make sure you read through the installation page though.

May I ask you why you’re not using it anymore and/or what you are using instead?

the group of people i’ve been using it with largely broke up over the years, so i’m just using telegram now. :person_shrugging:

1 Like

Oh. Somehow I thought the topic was tt-rss, i.e. that you had stopped using tt-rss, which left me somewhat puzzled.

I realize now I didn’t even know there was a tt-irc ¯_(ツ)_/¯
So I apologize for the unncessary noise!

1 Like

@Fox
Sorry, I got stuck on the install. I basically ran “docker compose up -d” after cloning ttirc-docker-compose and it seemed fine. If I look at the list of running docker containers I can see it running fine. However when I got to the url, I just get an nginx error “bad gateway”. I also tried going to 10.0.0.2:8281/tt-irc and it didnt load.

Note that I changed the port # from 8280 to 8281 since I already have tt-rss running on 8280

post compose file and logs. bad gateway means nginx container can’t access app container.

EDIT: I solved this issue by modifying the start script to delete the directory and always force a git clone.
just doing git pull does not update the git remote directory.

Everything works now!

I’m leaving the stuff below for reference:

ok, its very obvious whats going on from the log, it’s trying to clone a repo it can’t find. I can’t find where its pulling https://git.tt-rss.org/fox/tt-irc.git/ from! I’ve tried changing the variable SRC_REPO in app/startup.sh to https://dev.tt-rss.org/archive/tt-irc. If I try to grep the repo:
grep -R fox *
nothing shows. I dont know much about docker, but i tried clearing the cache with docker system prune -a as well.

edit:
I can’t seem to change that SRC_REPO variable. I changed it to something stupid just to see if it shows in the log, it’s still trying to clone from https://git.tt-rss.org/fox/tt-irc.git/

[+] Running 4/0
 ⠿ Container ttirc-docker-compose-redis-1      Created                                                                                                                         0.0s
 ⠿ Container ttirc-docker-compose-db-1         Created                                                                                                                         0.0s
 ⠿ Container ttirc-docker-compose-app-1        Created                                                                                                                         0.0s
 ⠿ Container ttirc-docker-compose-web-nginx-1  Created                                                                                                                         0.0s
Attaching to ttirc-docker-compose-app-1, ttirc-docker-compose-db-1, ttirc-docker-compose-redis-1, ttirc-docker-compose-web-nginx-1
ttirc-docker-compose-redis-1      | 1:C 25 Feb 2023 06:17:37.623 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
ttirc-docker-compose-redis-1      | 1:C 25 Feb 2023 06:17:37.623 # Redis version=5.0.14, bits=64, commit=00000000, modified=0, pid=1, just started
ttirc-docker-compose-redis-1      | 1:C 25 Feb 2023 06:17:37.623 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
ttirc-docker-compose-redis-1      | 1:M 25 Feb 2023 06:17:37.624 * Running mode=standalone, port=6379.
ttirc-docker-compose-redis-1      | 1:M 25 Feb 2023 06:17:37.625 # Server initialized
ttirc-docker-compose-redis-1      | 1:M 25 Feb 2023 06:17:37.625 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
ttirc-docker-compose-redis-1      | 1:M 25 Feb 2023 06:17:37.625 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
ttirc-docker-compose-redis-1      | 1:M 25 Feb 2023 06:17:37.625 * DB loaded from disk: 0.000 seconds
ttirc-docker-compose-redis-1      | 1:M 25 Feb 2023 06:17:37.625 * Ready to accept connections
ttirc-docker-compose-db-1         | 
ttirc-docker-compose-db-1         | PostgreSQL Database directory appears to contain a database; Skipping initialization
ttirc-docker-compose-db-1         | 
ttirc-docker-compose-db-1         | 2023-02-25 06:17:37.660 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
ttirc-docker-compose-db-1         | 2023-02-25 06:17:37.660 UTC [1] LOG:  listening on IPv6 address "::", port 5432
ttirc-docker-compose-db-1         | 2023-02-25 06:17:37.665 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
ttirc-docker-compose-db-1         | 2023-02-25 06:17:37.682 UTC [22] LOG:  database system was shut down at 2023-02-25 06:13:05 UTC
ttirc-docker-compose-db-1         | 2023-02-25 06:17:37.694 UTC [1] LOG:  database system is ready to accept connections
ttirc-docker-compose-app-1        | db:5432 - accepting connections
ttirc-docker-compose-app-1        | updating tt-irc source in /var/www/html/tt-irc from https://dev.tt-rss.org/archive/tt-irc...
ttirc-docker-compose-web-nginx-1  | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
ttirc-docker-compose-web-nginx-1  | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
ttirc-docker-compose-web-nginx-1  | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
ttirc-docker-compose-web-nginx-1  | 10-listen-on-ipv6-by-default.sh: info: IPv6 listen already enabled
ttirc-docker-compose-web-nginx-1  | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
ttirc-docker-compose-web-nginx-1  | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
ttirc-docker-compose-web-nginx-1  | /docker-entrypoint.sh: Configuration complete; ready for start up
ttirc-docker-compose-app-1        | fatal: repository 'https://git.tt-rss.org/fox/tt-irc.git/' not found
ttirc-docker-compose-app-1        | error: unable to update master repository.
ttirc-docker-compose-app-1        | error: tt-irc index.php missing (git clone failed?), unable to continue.
ttirc-docker-compose-app-1 exited with code 0
ttirc-docker-compose-app-1        | fatal: repository 'https://git.tt-rss.org/fox/tt-irc.git/' not found
ttirc-docker-compose-app-1        | error: unable to update master repository.
ttirc-docker-compose-app-1        | error: tt-irc index.php missing (git clone failed?), unable to continue.
ttirc-docker-compose-app-1 exited with code 1
^CGracefully stopping... (press Ctrl+C again to force)
Aborting on container exit...
[+] Running 4/4
 ⠿ Container ttirc-docker-compose-web-nginx-1  Stopped                                                                                                                         0.3s
 ⠿ Container ttirc-docker-compose-redis-1      Stopped                                                                                                                         0.4s
 ⠿ Container ttirc-docker-compose-app-1        Stopped                                                                                                                         0.3s
 ⠿ Container ttirc-docker-compose-db-1         Stopped                                                                                                                         0.2s
canceled

Heres the docker compose file and .env file for extra info anyways:

----------------------- docker-compose.yml --------------------------

version: '3'

# set database password in .env
# please don't use quote (') or (") symbols in variables

services:
  db:
    image: postgres:11-alpine
    restart: unless-stopped
    volumes:
      - db:/var/lib/postgresql/data
    environment:    
      - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
      - POSTGRES_USER=${POSTGRES_USER}
    ports:
      - ${POSTGRES_PORT}:5432

  redis:
    image: redis:5.0-alpine
    restart: unless-stopped
    ports:
      - ${REDIS_PORT}:6379

  app:
    build: 
      context:
        ./app
    restart: unless-stopped
    environment:
      - DB_TYPE=pgsql
      - DB_HOST=db
      - REDIS_SERVER=redis
      - DB_NAME=${POSTGRES_USER}
      - DB_USER=${POSTGRES_USER}
      - DB_PASS=${POSTGRES_PASSWORD}
      - OWNER_UID=${OWNER_UID}
      - OWNER_GID=${OWNER_GID}
    volumes:
      - app:/var/www/html
    depends_on:
      - db
 
  web-nginx:
    build: ./web-nginx
    restart: unless-stopped
    ports:
      - ${HTTP_PORT}:80
    volumes:
      - app:/var/www/html:ro
    depends_on:
      - app

volumes:
  db:
  app:  
  certs:

---------------------- .env ------------------------

# Copy this file to .env before building the container.
# Put any local modifications here.

POSTGRES_USER=postgres
POSTGRES_PASSWORD=password

OWNER_UID=1000
OWNER_GID=1000

# exposed redis port
REDIS_PORT=127.0.0.1:6379

# exposed pg port
POSTGRES_PORT=127.0.0.1:15432

# bind exposed port to 127.0.0.1 by default in case reverse proxy is used.
# if you plan to run the container standalone and need origin port exposed
# use next HTTP_PORT definition (or remove "127.0.0.1:").
#HTTP_PORT=127.0.0.1:8280
HTTP_PORT=10.0.0.2:8281

ah, oops. i guess this is entirely my fault. i moved a lot of repos around several months months ago when i was reorganizing gitea CI, i guess i never thought anyone would ever try to deploy tt-irc. :slight_smile:

https://dev.tt-rss.org/archive/ttirc-docker-compose/commit/030b4179f2b74fee773a5ce7562eb47be1e30c96

i’ve updated SRC_REPO to point at correct repository URL but you will need to rebuild everything before it would apply, i.e. do docker-compose build --no-cache and docker-compose down/up so that old containers are removed.

i’ve verified that it works by building it myself and then logging (admin:password) in so you shouldn’t have any trouble either.

ahh, --no-cache was exactly what i was looking for! this is basically my first time using docker.
and no worries! thanks for putting up this great software for free :grinning:

Extra info for anyone reading this:
Make sure to run the background connection daemon, or you wont be able to connect to IRC servers:
https://dev.tt-rss.org/archive/tt-irc/wiki/RunningConnectionDaemon
It can run outside docker, just make sure you put the right variables in (check the .env file)

@fox
How can I donate? I saw on another thread patreon is suspended? Having trouble finding a straight forward way to donate some money

oh yeah connection daemon is not part of default compose file because we were using instance (i.e. local) chat exclusively and nobody needed outbound irc protocol connections.

it shouldn’t be hard to add another container to the compose which would run it. anything with java would do.

you can’t. i appreciate the gesture nonetheless. :slight_smile: