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

unable to get past dataverseAdmin password reset page on first log in #5868

Closed
tcpan opened this issue May 21, 2019 · 7 comments
Closed

unable to get past dataverseAdmin password reset page on first log in #5868

tcpan opened this issue May 21, 2019 · 7 comments

Comments

@tcpan
Copy link

tcpan commented May 21, 2019

I am trying to create a docker container in the spirit of conf/docker-aio, but without the integration testing scripts and test data. I have created a dockerfile that incorporate the steps from the installation instruction for dataverse version 4.14, and a corresponding entrypoint.bash file.

The docker image is built successfully, and once started the webapp loads as well. I can access the initial log in page. On log in, I am brought to the password reset page. However, clicking on reset/set password button does not do anything. I get the spinning circle only. There are no additional messages in the server.log file for dataverse, nor the pg_log file for postscript.

The dockerfile follows directly the installation instructions, including the creation of user accounts for glassfish, solr, and counter for the respective software. postgres user appears to be automatically created during yum install. This is obviously different than how conf/docker-aio is configured, where solr and glassfish run as root. docker-aio also does explicitly create the postgres user dvnapp with superuser permissions. I added this to my dockerfile, and also tested with modifying the user permission directly in postgres, to no effect.

The default.config file used by the install script has my gmail email address and smtp server address, as well as the datacite username, password, and baseurl, but I am not sure they are being used based on the install log output.

I am not sure what I am missing. If someone can take a look at my dockerfile and corresponding entrypoint.bash file, I would appreciate it.

Thank you.

tcia-docker.zip

@djbrooke
Copy link
Contributor

Hey @tcpan - can you provide a few more details? Feel free to reply in a comment or edit the original summary above. Thanks!

@tcpan
Copy link
Author

tcpan commented May 21, 2019

I pressed enter before typing my comments. Sorry about that. Please see the revised initial comment.

@tcpan
Copy link
Author

tcpan commented May 21, 2019

I should mention that I tried following the conf/docker-aio "detailed" instructions. To avoid going through the integration testing process, I did steps 1 and 2, and then called the install script from step 3 to deploy the war, and skipped step 4. The result was that the webapp does not load.

Also tried the dataverse-docker process, but with dataverse 4.10.1 or 4.14. Both resulted in errors during dataset import #5869. It also seems that updating that repo to work with postgres 9.6 and solr 7.3.1 will take some modification from the standard installation procedure.

These experiences lead me to building this dockerfile, in case you are wondering. :)

@poikilotherm
Copy link
Contributor

poikilotherm commented May 21, 2019

Hey @tcpan,
let me mention https://github.com/IQSS/dataverse-kubernetes here...

You could try to use the container images without using Kubernetes by adding the env vars and secret mounts from Docker. The scripts should be reusable anyway, although you might workaround not using Kubernetes there, too.

Feel free to open an issue in case of questions or to report your findings :-) Happy to add docs on usage without K8s, too.

And obviously you are free to re-use the Dockerfiles in that project... 😉

@pameyer
Copy link
Contributor

pameyer commented May 22, 2019

The "spinning circle only" part reminds me of #5659; where issues with connecting to the email server resulted in timing problems; so this may be something investigating after the usual suspects (postgres/glassfish connection, etc). With docker-aio on develop (bd336b1), the dataverseAdmin password reset appears to be working with out of the box default.config.

Almost certainly unrelated to your original problem, but the HEALTHCHECK entry in your docker file will likely not work without other changes to domain.xml (it'll always show unhealthy, and may be killed/restarted depending on how you're running).

I'd also recommend taking a look at https://github.com/IQSS/dataverse-kubernetes - if you're going to the trouble of using separate user accounts within a single container, it may make more sense to split things into separate containers.

@tcpan
Copy link
Author

tcpan commented May 22, 2019

Thanks @poikilotherm and @pameyer for your suggestions. Based on @pameyer's comment about #5659, I removed the AdminEmail from my custom default.config file and reverted SMTP server to the default Harvard one, and was able to get past this problem. Please feel free to close this issue.

While this would have been a good opportunity to learn kubernetes, I'll have to save that for another time when I am more available :). Thank you all very much for your help!

For reference and your enjoyment, my final dockerfile is attached. The entrypoint.bash is now generated during docker build through the dockerfile, as is the default.config, so this dockerfile is now standalone.

dockerfile4.14.zip

@pdurbin
Copy link
Member

pdurbin commented May 22, 2019

@tcpan thanks for the update. If indeed your problems were related to email, the following issues might be of interest:

@tcpan tcpan closed this as completed May 22, 2019
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

5 participants