Comments (14)
I'll give it a try later on today :)
from model.
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.
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.
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.
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.
@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.
@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.
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.
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.
If there is no one else dealing with this issue I can do that @adam12
from model.
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.
I've opened #622 to fix this. Is anybody willing to give it a try?
from model.
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.
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)
- Date with BC note in PostgreSQL parsed incorrectly
- Optimistic Locking HOT 2
- Repository #find_or_create_by HOT 2
- Database column defaults are not replacing empty string or nil values HOT 4
- Sqlite3 'dumps database schema.sql' test failing HOT 3
- Private method 'Array' in hanami entity HOT 2
- Extra query with assoc and that make app slow HOT 1
- Associations don't seem to work well with as: aliases. HOT 3
- What's the recommend way to use transactions? HOT 3
- NoMethodError: undefined method `one' for #<Hanami::Model::Associations::HasMany> HOT 4
- BigDecimal.new error with Postgres HOT 16
- Can't prepare testing PostgreSQL database HOT 5
- #to_hash and implicit conversion HOT 4
- Error
- Unable to control production DB log HOT 1
- [QUESTION] There is a "How to" guide for the test/development process? HOT 2
- Use original error in case role is missing for Postgres HOT 1
- Change default dataset configured in ROM HOT 1
- Outdated dependencies HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from model.