#UpgradeDataverseVersions
Explore tagged Tumblr posts
Text
How to Upgrade Dataverse version 5.2 to Dataverse 5.3
How to Upgrade Dataverse version 5.2 to Dataverse 5.3 Date: 17-07-2021 Payara 5.2020.6 or higher version is supporting to Dataverse 5.3. Check the current Payara version by clicking the About button on Payara admin portal with login details.
Current version is Payara 5.2020.2 so we need to upgrade it to Payara 5.2020.6 - Login to the server via SSH terminal and Download Payara 5.2020.6 and make it a new directory as /usr/local/Payara5-2020-6 # wget https://s3-eu-west-1.amazonaws.com/payara.fish/Payara+Downloads/5.2020.6/payara-5.2020.6.zip # unzip payara-5.2020.6.zip # mv payara5 payara5-20202-6 # mv payara5-20202-6 /usr/local - Stop the running domain by using the below command. # /usr/local/payara/glassfish/bin/asadmin stop-domain Note: /usr/local/payara - Payara installed the current path in the server. - Run asadmin backup-domain from the existing Payara Server Community installation by using below command. # /usr/local/payara/glassfish/bin/asadmin backup-domain Once backup completed the file stored in the backup directory. To check by using the below command. # ls -al /usr/local/payara/glassfish/domains/domain1/backups/
- Once the domain has been backed up, restore the domain to the newly downloaded Payara Server Community installation by running asadmin restore-domain from the bin directory of the new Payara Server Community installation by using below command. # /usr/local/payara5-2020-6/glassfish/bin/asadmin restore-domain --filename /usr/local/payara/glassfish/domains/domain1/backups/domain1_2021_07_15_v00001.zip --long domain1
- Start the domain by using the below command. # /usr/local/payara5-2020-6/glassfish/bin/asadmin start-domain - Start the Payara new service by using the below command. # /usr/local/payara5-2020-6/glassfish/bin/asadmin create-service domain1 Note: You can use below commands to stop and start the payara service. /etc/init.d/payara_domain1 start (or) service payara_domain1 start /etc/init.d/payara_domain1 stop (or) service payara_domain1 stop /etc/init.d/payara_domain1 restart (or) service payara_domain1 restart Payara Logs file location: /usr/local/payara5-2020-6/glassfish/domains/domain1/logs/server.log
- Check the upgraded Payara version by clicking the About button on Payara admin portal with above login details. - Undeploy the previous version. # /usr/local/payara5-2020-6/bin/asadmin list-applications # /usr/local/payara5-2020-6/bin/asadmin undeploy dataverse-5.2 - Update your database connection. # /usr/local/payara5-2020-6/glassfish/bin/asadmin create-system-properties "dataverse.db.user=dvnapp" # /usr/local/payara5-2020-6/glassfish/bin/asadmin create-system-properties "dataverse.db.host=localhost" # /usr/local/payara5-2020-6/glassfish/bin/asadmin create-system-properties "dataverse.db.port=5432" # /usr/local/payara5-2020-6/glassfish/bin/asadmin create-system-properties "dataverse.db.name=dvndb" Note: We logged into postgres on the server and got the db and username details. - Verify that the __TimerPool jdbc-connection-pool is using the H2 database in domain.xml file, as follows (if you have the old Derby version from Glassfish 4, replace it). ====== ====== - Delete the DB pool. # /usr/local/payara5-2020-6/bin/asadmin delete-jdbc-connection-pool --cascade=true dvnDbPool - Stop payara, remove the generated and ejbtimer database directories and then restart payara. # service payara_domain1 stop # /usr/local/payara5-2020-6/glassfish/domains/domain1/generated # service payara_domain1 start - Deploy the new version. # /usr/local/payara5-2020-6/bin/asadmin deploy dataverse-5.3 - Once deployed successfully you will restart payara. # service payara_domain1 stop # service payara_domain1 start - Verify the upgraded Dataverse version. # /usr/local/payara5-2020-6/bin/asadmin list-applications
Thank you! Read the full article
0 notes