Giter Club home page Giter Club logo

Comments (7)

josegonzalez avatar josegonzalez commented on July 30, 2024

@Flink thoughts here?

from dokku-postgres.

Flink avatar Flink commented on July 30, 2024

I need to do some tests but I never dumped (nor restored) in plain SQL with PG and I never had any problems. (and I migrated data from Heroku to “real” PG servers, to containers, etc., it always worked). It might be a problem on your machines or maybe with a certain version of PG, I don’t know.

@ebeigarts Did you try to dump/restore directly on the machine and not through ssh? (just an idea)

from dokku-postgres.

ebeigarts avatar ebeigarts commented on July 30, 2024

@Flink it works locally on the machine. ssh -t / RequestTTY yes was the problem and this is the way dokku recommends. Using ssh -T dokku@<host> -- postgres:export <app> works. Using plain SQL dumps this wasn't a problem. Maybe there should be a warning in the README about this?

from dokku-postgres.

ebeigarts avatar ebeigarts commented on July 30, 2024

Maybe the postgres:export command could check if it is running in a tty and print a warning to stderr?

$ ssh -T root@<host> 'echo $SSH_TTY'

$ ssh -t root@<host> 'echo $SSH_TTY'
/dev/pts/4
Connection to <host> closed.

from dokku-postgres.

Flink avatar Flink commented on July 30, 2024

I think I had a similar problem on https://github.com/Flink/dokku-psql-single-container, I’ll take a look about what you’re suggesting :)

from dokku-postgres.

josegonzalez avatar josegonzalez commented on July 30, 2024

#19 @Flink maybe related?

from dokku-postgres.

Flink avatar Flink commented on July 30, 2024

Maybe we need to check for the tty yeah, I don’t know. I’ll do some testing :)

from dokku-postgres.

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.