Code Monkey home page Code Monkey logo

Comments (14)

wenderjean avatar wenderjean commented on September 22, 2024 2

I'll give it a try later on today :)

from model.

hedselu avatar hedselu commented on September 22, 2024

Ok, after further investigations the problem lays in master branch which has a possible bug. I was basing on master as it was recommended in this issue #570 for ruby 2.7. I think it will be better to downgrade ruby to 2.3 instead 🤔 I'll leave it open, as the problem needs to be fixed - let me know if I can help with this.

from model.

cllns avatar cllns commented on September 22, 2024

I've tried to reproduce this in a number of ways but I haven't been able to. It'd be super helpful if you can provide a short list of commands/instructions that reproduce this issue, and/or if you can create a GitHub repo and link to it here so I can look into this more. Thanks!

from model.

hedselu avatar hedselu commented on September 22, 2024

I've added repository right here: https://github.com/hedselu/hanami-db-error

I am unsure how did you set up db connection when trying to reproduce (thanks for trying and my apologies for not including this info), but have a look at .env.development file, where database credentials are included in URL. The problem might be only when authenticating with password.

from model.

dudo avatar dudo commented on September 22, 2024

I ran into the same issue on master. Monkey patching the adapter to remove the password fixed it. I'm on postgres 11.11. Set the db back to 11.10, and 11.9, with the same results, so it definitely doesn't appear to be a database issue.

I printed out command_with_credentials and it definitely includes --password, which isn't supported.

Reverting to 1.3.2 resolves it as well, so there seems to be something in master

from model.

hedselu avatar hedselu commented on September 22, 2024

@adam12 I see a merged PR related to this issue. Thanks for taking care of this! Do you think this issue is closable now?

from model.

adam12 avatar adam12 commented on September 22, 2024

@hedselu Not yet, but thanks for checking.

I think there is still an underlying issue that --password= isn't a valid argument to Postgres CLI tools. I'd like to fix it, but the mentioned PR is to get tests working reliably first.

from model.

dudo avatar dudo commented on September 22, 2024

That seems to be only CI related... code change doesn't address our issue at all. If anything, that PR just further hides this bug.

from model.

adam12 avatar adam12 commented on September 22, 2024

that PR just further hides this bug

Possibly, tho I did highlight it in the opening of the PR and would like to resolve it without manually forcing PGPASSWORD in the CI config.

Are you interested in submitting a PR for this issue?

from model.

wenderjean avatar wenderjean commented on September 22, 2024

If there is no one else dealing with this issue I can do that @adam12

from model.

adam12 avatar adam12 commented on September 22, 2024

If there is no one else dealing with this issue I can do that

Thanks for the offer but I did end up with a fix in another branch. I just need to debug the CI failing again.

from model.

adam12 avatar adam12 commented on September 22, 2024

I've opened #622 to fix this. Is anybody willing to give it a try?

from model.

adam12 avatar adam12 commented on September 22, 2024

I'll give it a try later on today :)

Did you ever get a chance to try out my fix? No worries if you didn't.

from model.

wenderjean avatar wenderjean commented on September 22, 2024

I did @adam12, sorry for the delay.
I used those versions below to test, both of them I got the error before and I could create/migrate successfully on your branch.

  • Postgresql 11
  • Postgresql 12
  • Postgresql 13

from model.

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.