Giter Club home page Giter Club logo

Comments (12)

willnaoosmith avatar willnaoosmith commented on June 1, 2024 1

@meienberger tried the new script using curl -L https://raw.githubusercontent.com/runtipi/runtipi/master/scripts/install.sh | bash

Same error when running docker logs, but the error line numbers have changed:

Error: connect ETIMEDOUT
    at Socket.<anonymous> (/app/index.js:158:27675)
    at Object.onceWrapper (node:events:628:28)
    at Socket.emit (node:events:514:28)
    at Socket.emit (node:domain:488:12)
    at Socket._onTimeout (node:net:589:8)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7) {
  errorno: 'ETIMEDOUT',
  code: 'ETIMEDOUT',
  syscall: 'connect'
}

Something I noticed was that sudo ./runtipi-cli --version returns 2.1.0, instead of the latest 2.3.0, or the older 2.2.0.

sudo ./runtipi-cli start doesn't change anything, there's nothing running on port 80, and changing the port doesn't change anything.
The script actually gets stuck for around 10 minutes on this screen:

root@root:~/runtipi# sudo ./runtipi-cli start
Welcome to Tipi CLI ✨
✓ User allowed to run docker commands
✓ System files copied
✓ System env file generated
✓ Images pulled
⠧ Starting containers...

Which might be because of the timeout.

After the wait, it shows as running, but the shown URL doesnt work:

image

There's also an "Obliterating queue..." message on the logs.

image

from runtipi.

willnaoosmith avatar willnaoosmith commented on June 1, 2024

You should try running: service start docker or systemctl start docker, then run docker ps, and it should show you something like this:

CONTAINER ID   IMAGE                           COMMAND                  CREATED          STATUS                      PORTS                                       NAMES
e6a3bb1810c3   ghcr.io/runtipi/worker:v2.2.1   "docker-entrypoint.s…"   12 minutes ago   Up 12 minutes (unhealthy)                                               tipi-worker
d20954a32595   redis:7.2.0                     "docker-entrypoint.s…"   12 minutes ago   Up 12 minutes (healthy)     0.0.0.0:6379->6379/tcp, :::6379->6379/tcp   tipi-redis
828fa296491f   postgres:14                     "docker-entrypoint.s…"   12 minutes ago   Up 12 minutes (healthy)     0.0.0.0:5432->5432/tcp, :::5432->5432/tcp   tipi-db

IF, this works, and you see unhealthy on the runtipi worker, then run docker logs YOURCONTAINERIDHERE

I'm going thought the same problem, but with this error message when running docker logs:

Error: connect ETIMEDOUT
    at Socket.<anonymous> (/app/index.js:158:27675)
    at Object.onceWrapper (node:events:627:28)
    at Socket.emit (node:events:513:28)
    at Socket._onTimeout (node:net:570:8)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7) {
  errorno: 'ETIMEDOUT',
  code: 'ETIMEDOUT',
  syscall: 'connect'
}

I don't know if I should open another issue of if you're going thought the same issue as me.

from runtipi.

meienberger avatar meienberger commented on June 1, 2024

@willnaoosmith from your state, if you run again sudo ./runtipi-cli start does it change something? It is strange because the error you shared means a timeout occurred while connecting to Redis but Redis is actually running

from runtipi.

meienberger avatar meienberger commented on June 1, 2024

Hello, we have fixed the install script issue and it should work as expected by now

from runtipi.

ashercaulfield avatar ashercaulfield commented on June 1, 2024

@meienberger This same exact thing is happening to me. This issue isn't resolved.

from runtipi.

github-actions avatar github-actions commented on June 1, 2024

This issue is stale because it has been open for 30 days with no activity.

from runtipi.

willnaoosmith avatar willnaoosmith commented on June 1, 2024

I still have the same problem.

from runtipi.

IMJONEZZ avatar IMJONEZZ commented on June 1, 2024

from runtipi.

willnaoosmith avatar willnaoosmith commented on June 1, 2024

I deleted my comment because I was making some tests, and I'm not 100% sure in my case is the ram, but since it works on a Debian 11 with 4gb's of ram, and it doesn't on a Debian 11 with 2 GB's, it looks like it.

I found out the following lines on my app.log:

worker: 2024-02-16T11:59:19.401Z - info > 	Logs flushed
worker: 2024-02-16T11:59:19.509Z - info > 	Running tipi-worker version: v3.0.2
worker: 2024-02-16T11:59:19.511Z - info > 	Generating system env file...
worker: 2024-02-16T11:59:19.731Z - info > 	Copying system files...
worker: 2024-02-16T11:59:19.734Z - info > 	Creating traefik folders
worker: 2024-02-16T11:59:19.737Z - info > 	Copying traefik files
worker: 2024-02-16T11:59:19.742Z - info > 	Creating base folders
worker: 2024-02-16T11:59:19.746Z - info > 	Creating media folders
worker: 2024-02-16T11:59:19.753Z - info > 	Reloading env variables...
worker: 2024-02-16T11:59:19.755Z - info > 	Generating TLS certificates...
worker: 2024-02-16T11:59:19.757Z - info > 	Generating TLS certificate for tipi.local
worker: 2024-02-16T11:59:20.570Z - info > 	Writing txt file for tipi.local
worker: 2024-02-16T11:59:20.582Z - info > 	Cloning repo https://github.com/runtipi/runtipi-appstore to /app/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903
worker: 2024-02-16T11:59:30.723Z - info > 	Executing: chmod -R 777 /app/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903
worker: 2024-02-16T11:59:30.736Z - info > 	Cloned repo https://github.com/runtipi/runtipi-appstore to /app/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903
worker: 2024-02-16T11:59:30.738Z - info > 	Repo https://github.com/runtipi/runtipi-appstore does not exist
worker: 2024-02-16T11:59:30.738Z - error > 	Failed to pull repo https://github.com/runtipi/runtipi-appstore
worker: 2024-02-16T11:59:30.739Z - info > 	Starting queue...
worker: 2024-02-16T11:59:30.747Z - info > 	Obliterating queue...
worker: 2024-02-16T12:09:23.211Z - info > 	Logs flushed

So I went into my repos folder and cloned the repository myself. Still, problem persists.

Here's the log file on my server after cloning the repository:

worker: 2024-02-16T12:22:48.323Z - info > 	Logs flushed
worker: 2024-02-16T12:22:48.424Z - info > 	Running tipi-worker version: v3.0.2
worker: 2024-02-16T12:22:48.426Z - info > 	Generating system env file...
worker: 2024-02-16T12:22:48.453Z - info > 	Copying system files...
worker: 2024-02-16T12:22:48.457Z - info > 	Creating traefik folders
worker: 2024-02-16T12:22:48.461Z - info > 	Copying traefik files
worker: 2024-02-16T12:22:48.497Z - info > 	Creating base folders
worker: 2024-02-16T12:22:48.501Z - info > 	Creating media folders
worker: 2024-02-16T12:22:48.520Z - info > 	Reloading env variables...
worker: 2024-02-16T12:22:48.522Z - info > 	Generating TLS certificates...
worker: 2024-02-16T12:22:48.526Z - info > 	TLS certificate for tipi.local already exists
worker: 2024-02-16T12:22:48.547Z - info > 	Repo https://github.com/runtipi/runtipi-appstore already exists
worker: 2024-02-16T12:22:48.549Z - info > 	Pulling repo https://github.com/runtipi/runtipi-appstore to /app/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903
worker: 2024-02-16T12:22:48.549Z - info > 	Executing: git config --global --add safe.directory /app/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903
worker: 2024-02-16T12:22:48.714Z - info > 	Executing: git -C /app/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903 config pull.rebase false
worker: 2024-02-16T12:22:48.754Z - info > 	Executing: git -C /app/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903 rev-parse --abbrev-ref HEAD
worker: 2024-02-16T12:22:48.788Z - info > 	Executing: git -C /app/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903 fetch origin && git -C /app/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903 reset --hard origin/master
worker: 2024-02-16T12:22:59.190Z - info > 	Pulled repo https://github.com/runtipi/runtipi-appstore to /app/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903
worker: 2024-02-16T12:22:59.191Z - info > 	Starting queue...
worker: 2024-02-16T12:22:59.210Z - info > 	Obliterating queue...

here's the log file on my PC, which runtipi works as intended:

worker: 2024-02-16T16:21:24.762Z - info > 	Logs flushed
worker: 2024-02-16T16:21:24.765Z - info > 	Running tipi-worker version: v3.0.2
worker: 2024-02-16T16:21:24.765Z - info > 	Generating system env file...
worker: 2024-02-16T16:21:24.784Z - info > 	Copying system files...
worker: 2024-02-16T16:21:24.785Z - info > 	Creating traefik folders
worker: 2024-02-16T16:21:24.785Z - info > 	Copying traefik files
worker: 2024-02-16T16:21:24.785Z - info > 	Creating base folders
worker: 2024-02-16T16:21:24.785Z - info > 	Creating media folders
worker: 2024-02-16T16:21:24.786Z - info > 	Reloading env variables...
worker: 2024-02-16T16:21:24.787Z - info > 	Generating TLS certificates...
worker: 2024-02-16T16:21:24.788Z - info > 	Generating TLS certificate for tipi.local
worker: 2024-02-16T16:21:24.943Z - info > 	Writing txt file for tipi.local
worker: 2024-02-16T16:21:24.947Z - info > 	Cloning repo https://github.com/runtipi/runtipi-appstore to /app/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903
worker: 2024-02-16T16:21:27.999Z - info > 	Executing: chmod -R 777 /app/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903
worker: 2024-02-16T16:21:28.011Z - info > 	Cloned repo https://github.com/runtipi/runtipi-appstore to /app/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903
worker: 2024-02-16T16:21:28.011Z - info > 	Pulling repo https://github.com/runtipi/runtipi-appstore to /app/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903
worker: 2024-02-16T16:21:28.011Z - info > 	Executing: git config --global --add safe.directory /app/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903
worker: 2024-02-16T16:21:28.013Z - info > 	Executing: git -C /app/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903 config pull.rebase false
worker: 2024-02-16T16:21:28.017Z - info > 	Executing: git -C /app/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903 rev-parse --abbrev-ref HEAD
worker: 2024-02-16T16:21:28.019Z - info > 	Executing: git -C /app/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903 fetch origin && git -C /app/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903 reset --hard origin/master
worker: 2024-02-16T16:21:28.646Z - info > 	Pulled repo https://github.com/runtipi/runtipi-appstore to /app/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903
worker: 2024-02-16T16:21:28.646Z - info > 	Starting queue...
worker: 2024-02-16T16:21:28.648Z - info > 	Obliterating queue...
worker: 2024-02-16T16:21:28.663Z - info > 	Adding scheduled jobs to queue...
worker: 2024-02-16T16:21:28.671Z - info > 	Closing queue...
worker: 2024-02-16T16:21:28.672Z - info > 	Running database migrations...
worker: 2024-02-16T16:21:28.672Z - info > 	Starting database migration
worker: 2024-02-16T16:21:28.672Z - info > 	Connecting to database tipi on tipi-db as tipi on port 5432
worker: 2024-02-16T16:21:28.685Z - info > 	Client connected
worker: 2024-02-16T16:21:28.687Z - info > 	Migrations table not found, creating it
worker: 2024-02-16T16:21:28.687Z - info > 	Running migrations
worker: 2024-02-16T16:21:29.216Z - info > 	Migration complete
worker: 2024-02-16T16:21:29.220Z - info > 	Setting status to running...
worker: 2024-02-16T16:21:29.224Z - info > 	Starting all apps...
worker: 2024-02-16T16:21:29.231Z - info > 	Listening on http://localhost:3000
worker: 2024-02-16T16:21:29.237Z - info > 	Worker is ready
worker: 2024-02-16T16:21:29.244Z - info > 	Database connection successfully established.

And, I saw that when I set up runtipi on my local machine, there were more images than on my server. So, I think there's something on the runtipi-cli that does not set up those images fully.

Here on this image we have my server on top, and my local machine on the bottom, I marked in red the missing images on my server

image

from runtipi.

github-actions avatar github-actions commented on June 1, 2024

This issue is stale because it has been open for 30 days with no activity.

from runtipi.

github-actions avatar github-actions commented on June 1, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

from runtipi.

n0w33d avatar n0w33d commented on June 1, 2024

I cannot reopen this issue, but will open another one with similar but not exactly he same error due to the following error output:

> ./runtipi-cli start
> Welcome to Runtipi CLI ✨
> 
> ✓ User permissions are ok
> ✓ Copied system files
> ✓ Generated .env file
> ✓ File permissions ok
> ✓ Images pulled
> ✓ Existing containers stopped
> ✗ Failed to start containers
> ⠹ Starting containers...
> Debug:  Network runtipi_tipi_main_network  Creating
>  Network runtipi_tipi_main_network  Created
>  Container runtipi-db  Creating
>  Container runtipi-redis  Creating
>  Container runtipi-redis  Created
>  Container runtipi-db  Created
>  Container runtipi  Creating
>  Container runtipi  Created
>  Container runtipi-reverse-proxy  Creating
>  Container runtipi-reverse-proxy  Created
>  Container runtipi-redis  Starting
>  Container runtipi-db  Starting
>  Container runtipi-redis  Started
>  Container runtipi-db  Started
>  Container runtipi-redis  Waiting
>  Container runtipi-db  Waiting
>  Container runtipi-redis  Healthy
>  Container runtipi-db  Healthy
>  Container runtipi  Starting
>  Container runtipi  Started
>  Container runtipi  Waiting
>  Container runtipi  Error
> dependency failed to start: container runtipi is unhealthy

This is occurring on my following setup specifications:

OS: Windows 11 Professional version 23H2
Windows Subsystem for Linux (WSL) OS: Debian GNU/Linux 12 (bookworm)
Tipi version v3.1.3

The following is debug output from runtipi CLI binary


./runtipi-cli debug
Welcome to Runtipi CLI ✨

⚠️ Make sure you have started tipi before running this command

--- System information ---
┌──────────────┬────────────────────────────────────┐
│ OS           │ linux                              │
├──────────────┼────────────────────────────────────┤
│ OS Version   │ 5.15.146.1-microsoft-standard-WSL2 │
├──────────────┼────────────────────────────────────┤
│ Memory (GB)  │ 31.10                              │
├──────────────┼────────────────────────────────────┤
│ Architecture │ amd64                              │
└──────────────┴────────────────────────────────────┘

--- Tipi configuration ---
┌───────────────────────────┬────┐
│ Custom tipi docker config │ No │
└───────────────────────────┴────┘

--- Settings.json ---
{
  "allowAutoThemes": true,
  "allowErrorMonitoring": false,
  "appsRepoUrl": "https://github.com/meienberger/runtipi-appstore",
  "demoMode": false,
  "dnsIp": "192.168.1.1",
  "domain": "<redacted>",
  "guestDashboard": false,
  "internalIp": "192.168.1.11",
  "localDomain": "<redacted>",
  "persistTraefikConfig": false,
  "postgresPort": 5432,
  "storagePath": "/home/user/runtipi",
  "version": "v2.5.0"
}

--- Environment variables ---
┌───────────────────┬────────────────────────────────┐
│ POSTGRES_PASSWORD │ <redacted>                     │
├───────────────────┼────────────────────────────────┤
│ REDIS_PASSWORD    │ <redacted>                     │
├───────────────────┼────────────────────────────────┤
│ APPS_REPO_ID      │ Not set                        │
├───────────────────┼────────────────────────────────┤
│ APPS_REPO_URL     │ Not set                        │
├───────────────────┼────────────────────────────────┤
│ TIPI_VERSION      │ v3.1.3                         │
├───────────────────┼────────────────────────────────┤
│ INTERNAL_IP       │ 172.21.147.158                 │
├───────────────────┼────────────────────────────────┤
│ ARCHITECTURE      │ amd64                          │
├───────────────────┼────────────────────────────────┤
│ JWT_SECRET        │ Not set                        │
├───────────────────┼────────────────────────────────┤
│ ROOT_FOLDER_HOST  │ /mnt/share/runtipi              │
├───────────────────┼────────────────────────────────┤
│ STORAGE_PATH      │ /home/user/runtipi │
├───────────────────┼────────────────────────────────┤
│ NGINX_PORT        │ 80                             │
├───────────────────┼────────────────────────────────┤
│ NGINX_PORT_SSL    │ 443                            │
├───────────────────┼────────────────────────────────┤
│ DOMAIN            │ <redacted>                     │
├───────────────────┼────────────────────────────────┤
│ POSTGRES_HOST     │ runtipi-db                     │
├───────────────────┼────────────────────────────────┤
│ POSTGRES_DBNAME   │ Not set                        │
├───────────────────┼────────────────────────────────┤
│ POSTGRES_USERNAME │ Not set                        │
├───────────────────┼────────────────────────────────┤
│ POSTGRES_PORT     │ 5432                           │
├───────────────────┼────────────────────────────────┤
│ REDIS_HOST        │ runtipi-redis                  │
├───────────────────┼────────────────────────────────┤
│ DEMO_MODE         │ Not set                        │
├───────────────────┼────────────────────────────────┤
│ LOCAL_DOMAIN      │ <redacted>                │
└───────────────────┴────────────────────────────────┘

--- Docker containers ---
┌───────────────────────┬─────────┐
│ runtipi-reverse-proxy │ Created │
├───────────────────────┼─────────┤
│ runtipi-db            │ Up      │
├───────────────────────┼─────────┤
│ runtipi-redis         │ Up      │
└───────────────────────┴─────────┘

It looks like the Traefik config doesn't like something. The following is the Docker log for "runtipi-reverse-proxy":
image

Manually starting the service within CLI or within Docker Desktop do not correct this issue. Running sudo ./runtipi-cli update latest does not correct this issue.

from runtipi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.