projetos-codic-ibict / Aleia

0 stars 0 forks source link

Atualização do GlassFish4 para o Payara5 #6

Closed ReneFGJr closed 2 years ago

ReneFGJr commented 2 years ago

Atualização do GlassFish4 para o Payara5

ReneFGJr commented 2 years ago

Baixado a última versão do Payara5 wget https://s3-eu-west-1.amazonaws.com/payara.fish/Payara+Downloads/5.2021.5/payara-5.2021.5.zip

Descompactado unzip payara-5.2021.5.zip

Movido para o /usr/local mv payara5 /usr/local

Alterado privilégios chown -R root:root /usr/local/payara5
chown dataverse /usr/local/payara5/glassfish/lib chown -R dataverse:dataverse /usr/local/payara5/glassfish/domains/domain1

ReneFGJr commented 2 years ago

Transferencia dos dados do GLASSFISH para o PAYARA

Movendo dados originais do PAYARA para uma copia mv /usr/local/payara5/glassfish/domains/domain1 /usr/local/payara5/glassfish/domains/domain1.orig

Reinicializando o Glassfish ./asadmin start-domain

Deinstalando o Dataverse 4.20 ./asadmin undeploy dataverse-4.20

Copiando Domain do Glassfish para o Payara cp -ar /usr/local/glassfish4/glassfish/domains/domain1 /usr/local/payara5/glassfish/domains/

Removendo Cache rm -rf /usr/local/payara5/glassfish/domains/domain1/generated/ rm -rf /usr/local/payara5/glassfish/domains/domain1/osgi-cache/

ReneFGJr commented 2 years ago

Atualizado metadados da astrofisica

wget https://github.com/IQSS/dataverse/releases/download/v5.0/astrophysics.tsv curl http://localhost:8080/api/admin/datasetfield/load -X POST --data-binary @astrophysics.tsv -H "Content-type: text/tab-separated-values"

ReneFGJr commented 2 years ago

Atualizado para a versão 5.1

ReneFGJr commented 2 years ago

Atualizado para a versão 5.2 com backup

ReneFGJr commented 2 years ago
 <property name="PortNumber" value="5432"></property>
  <property name="create" value="true"></property>
  <property name="ServerName" value="127.0.0.1"></property>
  <property name="databaseName" value="dvibict"></property>
  <property name="User" value="postgres"></property>
  <property name="password" value="${ALIAS=db_password_alias}"></property>

Para

$PAYARA/bin/asadmin create-system-properties "dataverse.db.user=postgres" $PAYARA/bin/asadmin create-system-properties "dataverse.db.port=5432" $PAYARA/bin/asadmin create-system-properties "dataverse.db.host=localhost" $PAYARA/bin/asadmin create-system-properties "dataverse.db.name={name}"

Atualizado para a versão 5.3 com backup

ReneFGJr commented 2 years ago

https://github.com/IQSS/dataverse/releases