IQSS / dataverse-docker

Dataverse 6.2 on Docker with integrated services called "Archive in a box" and could be used both as demo and production system and easily integrated with other services.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User Administration does not exist?!

palminha opened this issue · comments

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

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 ok. And now it's working? You can see the superuser dashboard?

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

Yes.... Thanks

@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!

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

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."}}

@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! ❤️

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! ❤️

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

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.

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

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

@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.

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.

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

@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

@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!

Merged!