-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
installer assumes postgresql admin user name is 'postgres' #3905
Comments
@pameyer as part of this, should what's currently at http://guides.dataverse.org/en/4.6.2/_downloads/default.config be updated to include a new configuration option for the administrative user for postgres? Thanks again for adding the non-interactive installation method in #3799. |
@pdurbin It would make sense to me to put it there, but the installer will need to be modified to do anything with it. Lower-hanging fruit might be to mention in the installation guide that the admin user is assumed to be named |
@pameyer yeah, agreed. Let's figure out the scope of this issue before we estimate it. |
While I was dinking around with upgrading to Glassfish 5 for #4217 I thought "Now that our official installer no longer requires root to run, maybe I'll try setting up Glassfish with the official installer rather than using my own script." Unfortunately, I ran into this issue since I don't have a "postgres" user on my Mac. I started hacking on a solution which is mixed in with Glassfish upgrades at pdurbin@d757099 but hopefully it will be helpful to someone in the future. |
Fixed in pull request #4244. Moved to Code Review at https://waffle.io/IQSS/dataverse |
@pameyer - is this something that you have interest in code reviewing? |
@pameyer and I talked this out after standup (thanks!) and sure enough, there are still some cases of Now I need to decide what I want to do with this issue. It turns out @pameyer opened this issue for someone else during the hackathon and isn't personally invested in it. As far as I know, I may be the only person at IQSS installing postgres with homebrew so I may be the only one affected. http://guides.dataverse.org/en/4.8/developers/dev-environment.html#postgresql continues to be quite light on how developers should install postgres. I still think back to the "pick your poison" slide I made for http://bl.ocks.org/pdurbin/raw/7847a0642f8bd6601a07c3619b4a35f6/#2 This was my first attempt to use the official installer now that it has two critical features:
For now I'm going to pull this issue and #2443 out of code review. We should probably decouple any effort to improve the installer for developers from Glassfish 5 upgrades. Here are the main things I fixed:
I think about it some more. |
See #2443 (comment) for an update about some code I pushed that I hope we can return to some day. |
On a related note, there's a new bug report that a custom postgres port doesn't work either: |
For what it's worth, while working on pull request #4721 I switched away from postgres installed by homebrew in favor of the enterprisedb version we recommend in the dev guide. |
This isn't just a homebrew problem; a lady just hit this installing against RDS. Her work-around was to make the RDS admin user |
"Hello everyone, I installed Dataverse 6 using "installer.py" and encountered some issues that I'd like to share with you.
conn_cmd = "CREATE ROLE "+pgUser+" PASSWORD '"+pgPassword+"' NOSUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;" failed, even putting single quotes around pgUser. Even though the script continues because the user already exists, then, for the same reason, this other query fails: conn_cmd = "CREATE DATABASE "+pgDb+" OWNER "+pgUser+";" To quickly resolve this, i didn't find a real solution, I just removed special characters from the username and the database name.
conn_cmd = "CREATE ROLE "+pgUser+" PASSWORD '"+pgPassword+"' NOSUPERUSER CREATEDB CREATEROLE INHERIT LOGIN; GRANT "+pgUser+" TO mypgAdmin;" Thanks, -- @orazionelson at https://groups.google.com/g/dataverse-community/c/koHCFkUw2kw/m/e15be2hgAgAJ |
To focus on the most important features and bugs, we are closing issues created before 2020 (version 5.0) that are not new feature requests with the label 'Type: Feature'. If you created this issue and you feel the team should revisit this decision, please reopen the issue and leave a comment. |
Installer fails when the administrative user is not 'postgres' (as is the case for home-brew installation on OS X). Can be worked-around by creating appropriate user manually; may be worth fixing in installation script.
The text was updated successfully, but these errors were encountered: