runtipi / cli

The command line interface to configure and interact with Runtipi
https://runtipi.io/
GNU General Public License v3.0
4 stars 3 forks source link

[BUG] Error when stopping app from CLI #33

Open shuther opened 6 months ago

shuther commented 6 months ago

Checklist

Before opening your issue be sure to have completed all those tasks.

Describe the bug I ran the command:

 ./runtipi-cli app stop zipline

and I received the error below. The docker container was not stopped

Warning ⚠️: If you use a custom docker compose file (located in user-config/tipi-compose.yml) please try to start runtipi without it before submitting an issue. If the issue persists even without the custom docker compose file then proceed to open an issue.

To Reproduce Steps to reproduce the behavior:

  1. Just try to stop it.

Expected behavior no error

Screenshots ./runtipi-cli app stop zipline

Welcome to Runtipi CLI ✨

⠸ Stopping app zipline...                                                                                                                                       thread 'main' panicked at src/commands/app.rs:167:80:
called `Result::unwrap()` on an `Err` value: reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Ipv4(192.168.1.41)), port: None, path: "/worker-api/apps/zipline/stop", query: None, fragment: None }, source: TimedOut }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

If applicable, add screenshots to help explain your problem.

Server (please complete the following information):

Additional context

--- System information ---
┌──────────────┬──────────────────┐
│ OS           │ linux            │
├──────────────┼──────────────────┤
│ OS Version   │ 6.5.0-28-generic │
├──────────────┼──────────────────┤
│ Memory (GB)  │ 10.69            │
├──────────────┼──────────────────┤
│ Architecture │ amd64            │
└──────────────┴──────────────────┘

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

--- Settings.json ---
{
  "allowAutoThemes": true,
  "allowErrorMonitoring": false,
  "appsRepoUrl": "https://github.com/runtipi/runtipi-appstore",
  "demoMode": false,
  "dnsIp": "192.168.0.2",
  "guestDashboard": false,
  "internalIp": "192.168.0.52",
  "localDomain": "tipi.local",
  "persistTraefikConfig": false,
  "postgresPort": 5432,
  "storagePath": "/home/steve/Downloads/runtipi"
}

--- Environment variables ---
┌───────────────────┬──────────────────────────────────────────────────────────────────┐
│ POSTGRES_PASSWORD │ <redacted>                                                       │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ REDIS_PASSWORD    │ <redacted>                                                       │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ APPS_REPO_ID      │ 29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903 │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ APPS_REPO_URL     │ https://github.com/runtipi/runtipi-appstore                      │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ TIPI_VERSION      │ v3.1.3                                                           │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ INTERNAL_IP       │ 192.168.1.41                                                     │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ ARCHITECTURE      │ amd64                                                            │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ JWT_SECRET        │ <redacted>                                                       │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ ROOT_FOLDER_HOST  │ /home/steve/Downloads/runtipi                                    │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ STORAGE_PATH      │ /home/steve/Downloads/runtipi                                    │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ NGINX_PORT        │ 80                                                               │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ NGINX_PORT_SSL    │ 443                                                              │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ DOMAIN            │ <redacted>                                                       │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ POSTGRES_HOST     │ runtipi-db                                                       │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ POSTGRES_DBNAME   │ tipi                                                             │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ POSTGRES_USERNAME │ tipi                                                             │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ POSTGRES_PORT     │ 5432                                                             │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ REDIS_HOST        │ runtipi-redis                                                    │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ DEMO_MODE         │ false                                                            │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ LOCAL_DOMAIN      │ tipi.local                                                       │
└───────────────────┴──────────────────────────────────────────────────────────────────┘

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

Updated by @meienberger (formatting)

meienberger commented 6 months ago

Thanks for reporting, I'm doing some testing