Skip to content
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

User Administration does not exist?! #78

Open
palminha opened this issue Dec 5, 2022 · 22 comments
Open

User Administration does not exist?! #78

palminha opened this issue Dec 5, 2022 · 22 comments

Comments

@palminha
Copy link

palminha commented Dec 5, 2022

I just followed the instructions to install dataverse using docker.
I can successfully connect to it via http://my.ip.address:8080/ and login as admin user

The problem is that i can't find what is described in the documentation "clicking the “Manage Users” button on the Dashboard, which is linked from the header of all Dataverse installation pages"

Screenshot 2022-12-05 at 10 03 15

@pdurbin
Copy link
Member

pdurbin commented Dec 5, 2022

Huh. That's weird. I expect to see "Dataverse Admin" in red, which indicates that it's a superuser. Like this:

Screen Shot 2022-12-05 at 2 20 28 PM

I guess you could try "toggle superuser" API (docs here). You should see output like this:

$ curl -X POST "http://localhost:8080/api/admin/superuser/dataverseAdmin"
{"status":"OK","data":{"message":"User @dataverseAdmin removed as a superuser."}}

$ curl -X POST "http://localhost:8080/api/admin/superuser/dataverseAdmin"
{"status":"OK","data":{"message":"User @dataverseAdmin set as a superuser."}}

I'm not sure what happened to your Dataverse Admin user though. I'm not sure what the root of the problem is.

@palminha
Copy link
Author

palminha commented Dec 6, 2022 via email

@pdurbin
Copy link
Member

pdurbin commented Dec 6, 2022

@palminha ok. And now it's working? You can see the superuser dashboard?

@palminha
Copy link
Author

palminha commented Dec 6, 2022

@palminha ok. And now it's working? You can see the superuser dashboard?

Yes.... Thanks

@pdurbin
Copy link
Member

pdurbin commented Dec 6, 2022

@palminha great! I'll go ahead and close this then.

If you or anyone else reading this sees this happen again (dataverseAdmin is not a superuser) please open a fresh issue. Thanks!

@pdurbin pdurbin closed this as completed Dec 6, 2022
@adkinsrs
Copy link

I just want to add that I had the same issue, but after the above steps, I had to perform the extra step of logging out of the dataverseAdmin user and logging back in for it to show superuser status

@ebergasa
Copy link

ebergasa commented May 16, 2023

I have just had this same issue.
Quick vanilla installation following these instructions of version 5.13 build 1244-79d6e57

Solved with

[user@server-staging-5ec ~]$ docker exec -ti dataverse /bin/bash
root@08d8428cf537:/opt/payara/dvinstall# curl -X POST "http://localhost:8080/api/admin/superuser/dataverseAdmin"
{"status":"OK","data":{"message":"User @dataverseAdmin set as a superuser."}}
root@08d8428cf537:/opt/payara/dvinstall# curl -X POST "http://localhost:8080/api/admin/superuser/dataverseAdmin"
{"status":"OK","data":{"message":"User @dataverseAdmin removed as a superuser."}}
root@08d8428cf537:/opt/payara/dvinstall# curl -X POST "http://localhost:8080/api/admin/superuser/dataverseAdmin"
{"status":"OK","data":{"message":"User @dataverseAdmin set as a superuser."}}

@pdurbin
Copy link
Member

pdurbin commented May 16, 2023

@4tikhonov I probably closed this issue prematurely. It seems like it's still happening. Re-opening.

On a related note, what we probably at https://github.com/IQSS/dataverse/issues is an issue to implement an idempotent API call for making a user a superuser. Right now it's a toggle, which is annoying. 😬 If anyone wants to open this issue, please go ahead! ❤️

@pdurbin pdurbin reopened this May 16, 2023
@jorgelpolanco
Copy link

I have just done the installation and can confirm that it is still happening. I followed @ebergasa's instructions and it worked for me.

@4tikhonov I probably closed this issue prematurely. It seems like it's still happening. Re-opening.

On a related note, what we probably at https://github.com/IQSS/dataverse/issues is an issue to implement an idempotent API call for making a user a superuser. Right now it's a toggle, which is annoying. 😬 If anyone wants to open this issue, please go ahead! ❤️

@pdurbin
Copy link
Member

pdurbin commented Jul 12, 2023

@jorgelpolanco thanks. Do you want to create the issue at https://github.com/IQSS/dataverse/issues I mentioned? 🙏

@markwilkinson
Copy link

I'm not sure if this is related or not... using 5.13 build 1244-79d6e57

I start the docker-compose, enter the dataverseAdmin/admin credentials and am then sent to a "reset password" page. This is fine, but it will not allow me to reset my password until I accept the terms of use... but there is no box to click to accept the terms of use, so I am stuck not being able to get started.

@4tikhonov
Copy link
Contributor

That's strange, let me check this @markwilkinson.

@markwilkinson
Copy link

Morning! Have you had any thoughts about this problem? My project is stalled until I can overcome this barrier...
thanks!

@pdurbin
Copy link
Member

pdurbin commented Nov 20, 2023

@markwilkinson as a workaround, when this happens, are you able to get a shell on the container running Dataverse and toggle the superuser on with curl? Here's an example:

#78 (comment)

Longer term I'd like Dataverse to simply allow a boolean for promoting a user into a superuser:

This would be more reliable than a toggle.

@mr-loop-1
Copy link

Hi @ebergasa @palminha , you both mentioned about calling the api 3 times. But this api is toggle based, so once was enough too, as I am able to check.

@4tikhonov
Copy link
Contributor

Hi @markwilkinson @ebergasa @adkinsrs @mr-loop-1, we'll fix with in the new release to enable superuser account by default.

@markwilkinson
Copy link

@markwilkinson as a workaround, when this happens, are you able to get a shell on the container running Dataverse and toggle the superuser on with curl? Here's an example:

#78 (comment)

Longer term I'd like Dataverse to simply allow a boolean for promoting a user into a superuser:

* [idempotent API call for making a user a superuser dataverse#9887](https://github.com/IQSS/dataverse/issues/9887)

This would be more reliable than a toggle.

Hi Philip!

This didn't solve the problem - I was still unable to get past the password-change request. However, I created another user, and toggled that user (via curl) to be a superuser, and that got me a long way down the road :-)

Cheers!

Mark

@pdurbin
Copy link
Member

pdurbin commented Nov 29, 2023

@markwilkinson hmm, the password reset problem seems a bit different. It might be nice to have a dedicated issue about that.

I'm glad creating the second user worked!

@pdurbin
Copy link
Member

pdurbin commented Apr 12, 2024

@palminha @adkinsrs @ebergasa @jorgelpolanco @markwilkinson @4tikhonov there's a new pull request by @zearaujo25 upstream that I just approved:

@pdurbin
Copy link
Member

pdurbin commented Apr 18, 2024

Merged!

@markwilkinson
Copy link

Just FYI - v. 5.13 build 1244-79d6e57 the problem is still there (in the docker vanilla install) There's no checkbox to agree to the terms of use that will allow me to get past the password reset screen for the dataverseAdmin account.

@pdurbin
Copy link
Member

pdurbin commented Oct 10, 2024

@markwilkinson thanks, makes sense since the fix I mentioned above (#10440) didn't ship until v. 6.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants