Giter Club home page Giter Club logo

Comments (17)

christippett avatar christippett commented on June 1, 2024 1

It means please look into the file state/settings.json for a potential storage path value which is set to runtipi/app-data which is wrong

FYI the documentation lists runtipi/app-data as the default value for storagePath.

I found this issue when looking for a reason why the default config per the documentation differed from my own. I'm guessing runtipi/app-data was the default at some point in time but that's no longer the case? It would explain the issues @anantone was having.

from runtipi.

anantone avatar anantone commented on June 1, 2024

This is from error.log.history

`worker: 2024-01-18T10:16:01.049Z - ^[[31merror^[[39m > Error: connect ECONNREFUSED 172.23.0.2:5432

worker: 2024-01-18T10:20:44.494Z - ^[[31merror^[[39m > Error: connect ECONNREFUSED 172.23.0.12:5432

worker: 2024-01-18T10:24:53.881Z - ^[[31merror^[[39m > Error: connect EHOSTUNREACH 172.23.0.4:5432

worker: 2024-01-18T10:31:27.289Z - ^[[31merror^[[39m > Error: connect ECONNREFUSED 172.23.0.11:5432
`

I was running tailscale in runtipi and did not turn it off before updating... Could that be my sin?

from runtipi.

anantone avatar anantone commented on June 1, 2024

This is app.log

`cli: 2024-01-18T15:13:11.455Z - ^[[32minfo^[[39m > Logs flushed

cli: 2024-01-18T15:13:11.475Z - ^[[32minfo^[[39m > Copying system files...

cli: 2024-01-18T15:13:11.475Z - ^[[32minfo^[[39m > Copying file docker-compose.yml

cli: 2024-01-18T15:13:11.477Z - ^[[32minfo^[[39m > Copying file VERSION

cli: 2024-01-18T15:13:11.479Z - ^[[32minfo^[[39m > Generating system env file...

cli: 2024-01-18T15:13:11.483Z - ^[[32minfo^[[39m > Reloading env variables...

cli: 2024-01-18T15:13:11.484Z - ^[[32minfo^[[39m > Pulling new images...

cli: 2024-01-18T15:13:11.563Z - ^[[32minfo^[[39m > Starting containers...
`

from runtipi.

anantone avatar anantone commented on June 1, 2024

If I try to manually start an app with the cli, there is error.log

cli: 2024-01-18T16:33:41.707Z - error > uncaughtException: [ { "code": "invalid_type", "expected": "string", "received": "undefined", "path": [ "APPS_REPO_ID" ], "message": "Required" }, { "code": "invalid_type", "expected": "string", "received": "undefined", "path": [ "POSTGRES_USERNAME" ], "message": "Required" }, { "code": "invalid_type", "expected": "string", "received": "undefined", "path": [ "POSTGRES_DBNAME" ], "message": "Required" } ] ZodError: [ { "code": "invalid_type", "expected": "string", "received": "undefined", "path": [ "APPS_REPO_ID" ], "message": "Required" }, { "code": "invalid_type", "expected": "string", "received": "undefined", "path": [ "POSTGRES_USERNAME" ], "message": "Required" }, { "code": "invalid_type", "expected": "string", "received": "undefined", "path": [ "POSTGRES_DBNAME" ], "message": "Required" } ] at get error [as error] (/snapshot/runtipi/packages/cli/dist/index.js:3635:8435) at gn.parse (/snapshot/runtipi/packages/cli/dist/index.js:3635:10520) at jf (/snapshot/runtipi/packages/cli/dist/index.js:3637:2817) at zo.getQueue (/snapshot/runtipi/packages/cli/dist/index.js:3647:747) at zo.startApp (/snapshot/runtipi/packages/cli/dist/index.js:3647:1617) at t.<anonymous> (/snapshot/runtipi/packages/cli/dist/index.js:3661:145) at t.r [as _actionHandler] (/snapshot/runtipi/packages/cli/dist/index.js:13:497) at /snapshot/runtipi/packages/cli/dist/index.js:16:2971 at t._chainOrCall (/snapshot/runtipi/packages/cli/dist/index.js:16:1610) at t._parseCommand (/snapshot/runtipi/packages/cli/dist/index.js:16:2947)

from runtipi.

meienberger avatar meienberger commented on June 1, 2024

Hello, from which version did you try to update?

Please do the following steps:

  1. Navigate to the runtipi directory
  2. Run sudo ./runtipi-cli start
  3. Post the logs as well as the result of docker ps

from runtipi.

anantone avatar anantone commented on June 1, 2024

Hi, I believe from the previous version, was keeping up to date.

➜ runtipi ./runtipi-cli start
Welcome to Tipi CLI ✨
✓ User allowed to run docker commands
✓ System files copied
✓ System env file generated
✓ Images pulled
✓ Containers started

╔════════════════════════ Tipi successfully started 🎉 ════════════════════════╗
║ ║
║ Visit: http://5.250.177.249:80 to access the dashboard ║
║ ║
║ Find documentation and guides at: https://runtipi.io
║ ║
║ Tipi is entirely written in TypeScript and we are looking for ║
║ contributors! ║

app.log

cli: 2024-01-18T20:47:36.560Z - ^[[32minfo^[[39m > Logs flushed cli: 2024-01-18T20:47:36.582Z - ^[[32minfo^[[39m > Copying system files... cli: 2024-01-18T20:47:36.582Z - ^[[32minfo^[[39m > Copying file docker-compose.yml cli: 2024-01-18T20:47:36.584Z - ^[[32minfo^[[39m > Copying file VERSION cli: 2024-01-18T20:47:36.585Z - ^[[32minfo^[[39m > Generating system env file... cli: 2024-01-18T20:47:36.589Z - ^[[32minfo^[[39m > Reloading env variables... cli: 2024-01-18T20:47:36.590Z - ^[[32minfo^[[39m > Pulling new images... cli: 2024-01-18T20:47:36.673Z - ^[[32minfo^[[39m > Starting containers...

error.log is empty

docker ps is empty

from runtipi.

meienberger avatar meienberger commented on June 1, 2024

I think you didn't run the start command with sudo from what I see

from runtipi.

anantone avatar anantone commented on June 1, 2024

I am root and don't have sudo installed. Same as before, with previous versions of runtipi.

from runtipi.

meienberger avatar meienberger commented on June 1, 2024

Please run this command manually, copy and paste exactly into the runtipi folder

docker compose --env-file ./.env up --detach --remove-orphans --build

You may not have the docker compose plugin. If it's the case please follow the instructions here

from runtipi.

anantone avatar anantone commented on June 1, 2024

Thanks. The command returns:
service "tipi-worker" refers to undefined volume runtipi/app-data: invalid compose project

I have docker compose v2.21.0

from runtipi.

meienberger avatar meienberger commented on June 1, 2024

You probably have a wrong custom storagePath configured in your settings.json

from runtipi.

anantone avatar anantone commented on June 1, 2024

from runtipi.

meienberger avatar meienberger commented on June 1, 2024

It means please look into the file state/settings.json for a potential storage path value which is set to runtipi/app-data which is wrong

from runtipi.

anantone avatar anantone commented on June 1, 2024

Thanks. Yes, that value is indeed runtipi/app-data

Not that I have changed it, not knowing about it...

from runtipi.

meienberger avatar meienberger commented on June 1, 2024

Good, so this was our issue! Does it work now? You probably changed it in the settings tab of your Dashboard by mistake. You can remove this value if you don't have a custom storage path

from runtipi.

anantone avatar anantone commented on June 1, 2024

Aaaah... Yes, I had changed it from the Dashboard to a custom path, then wanted to change it back to default, and actually typed in the default... Cool. Small mistake, large consequences. Thank you for your help. All working now!

from runtipi.

meienberger avatar meienberger commented on June 1, 2024

Aaaah... Yes, I had changed it from the Dashboard to a custom path, then wanted to change it back to default, and actually typed in the default... Cool. Small mistake, large consequences. Thank you for your help. All working now!

Cool glad you managed to make it run again! Next time you can leave the field empty before saving to reset to default

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.