dataverse-docker icon indicating copy to clipboard operation
dataverse-docker copied to clipboard

User Administration does not exist?!

Open palminha opened this issue 2 years ago • 22 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

palminha avatar Dec 05 '22 10:12 palminha

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.

pdurbin avatar Dec 05 '22 19:12 pdurbin

Hi Philip,

Thanks for following up.

I just tried it ... i had to instruct the command 3 times

@.***:~# docker exec -it 2d84d3392370 /bin/bash

@.***:/opt/payara/dvinstall# curl

curl: try 'curl --help' or 'curl --manual' for more information

@.***:/opt/payara/dvinstall# curl -X POST " http://localhost:8080/api/admin/superuser/dataverseAdmin"

{"status":"OK","data":{"message":"User @dataverseAdmin set as a @.***:/opt/payara/dvinstall#

@.***:/opt/payara/dvinstall#

@.***:/opt/payara/dvinstall#

@.***:/opt/payara/dvinstall# curl -X POST " http://localhost:8080/api/admin/superuser/dataverseAdmin"

{"status":"OK","data":{"message":"User @dataverseAdmin removed as a @.***:/opt/payara/dvinstall#

@.***:/opt/payara/dvinstall#

@.***:/opt/payara/dvinstall# curl -X POST " http://localhost:8080/api/admin/superuser/dataverseAdmin"

{"status":"OK","data":{"message":"User @dataverseAdmin set as a @.***:/opt/payara/dvinstall#

@.***:/opt/payara/dvinstall#

On Mon, Dec 5, 2022 at 7:25 PM Philip Durbin @.***> wrote:

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

[image: Screen Shot 2022-12-05 at 2 20 28 PM] https://user-images.githubusercontent.com/21006/205724380-03d4d5f1-91a4-4178-9ae8-66e29c763196.png

I guess you could try "toggle superuser" API (docs here https://guides.dataverse.org/en/5.12.1/api/native-api.html#make-user-a-superuser). 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.

— Reply to this email directly, view it on GitHub https://github.com/IQSS/dataverse-docker/issues/78#issuecomment-1338018226, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC4XRB7JXE3XFRAPHMXMAPTWLY6S3ANCNFSM6AAAAAASUCIKN4 . You are receiving this because you authored the thread.Message ID: @.***>

palminha avatar Dec 06 '22 14:12 palminha

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

pdurbin avatar Dec 06 '22 16:12 pdurbin

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

Yes.... Thanks

palminha avatar Dec 06 '22 16:12 palminha

@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 avatar Dec 06 '22 17:12 pdurbin

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

adkinsrs avatar Mar 31 '23 15:03 adkinsrs

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

ebergasa avatar May 16 '23 13:05 ebergasa

@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 avatar May 16 '23 14:05 pdurbin

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 avatar Jun 27 '23 22:06 jorgelpolanco

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

pdurbin avatar Jul 12 '23 20:07 pdurbin

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.

markwilkinson avatar Nov 13 '23 11:11 markwilkinson

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

4tikhonov avatar Nov 13 '23 11:11 4tikhonov

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

markwilkinson avatar Nov 20 '23 09:11 markwilkinson

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

https://github.com/IQSS/dataverse-docker/issues/78#issuecomment-1549662669

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

  • https://github.com/IQSS/dataverse/issues/9887

This would be more reliable than a toggle.

pdurbin avatar Nov 20 '23 13:11 pdurbin

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.

mr-loop-1 avatar Nov 25 '23 18:11 mr-loop-1

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

4tikhonov avatar Nov 25 '23 18:11 4tikhonov

@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 avatar Nov 29 '23 11:11 markwilkinson

@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 avatar Nov 29 '23 13:11 pdurbin

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

  • https://github.com/IQSS/dataverse/pull/10440

pdurbin avatar Apr 12 '24 21:04 pdurbin

Merged!

pdurbin avatar Apr 18 '24 14:04 pdurbin

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.

markwilkinson avatar Oct 10 '24 14:10 markwilkinson

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

pdurbin avatar Oct 10 '24 19:10 pdurbin