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

payara5 hard-coded in ec2-create-instance.sh (rsync logs) #242

Open
pdurbin opened this issue Jun 3, 2022 · 0 comments
Open

payara5 hard-coded in ec2-create-instance.sh (rsync logs) #242

pdurbin opened this issue Jun 3, 2022 · 0 comments

Comments

@pdurbin
Copy link
Member

pdurbin commented Jun 3, 2022

At https://jenkins.dataverse.org/job/IQSS-Dataverse-Payara6/8/consoleFull I'm seeing this:

rsync: change_dir "/usr/local/payara5/glassfish/domains/domain1/logs" failed: No such file or directory (2)

I believe the problem is that payara5 hard-coded here:

https://github.com/GlobalDataverseCommunityConsortium/dataverse-ansible/blob/f02346bf4b111c00802d86ac562a0943937307ec/ec2/ec2-create-instance.sh#L258

(rsync -av -e "ssh -i $PEM_FILE" --ignore-missing-args $AWS_USER@$PUBLIC_DNS:/usr/local/payara5/glassfish/domains/domain1/logs/server* $LOCAL_LOG_PATH/)

It looks like payara5 is also hard-coded a little bit down here:

https://github.com/GlobalDataverseCommunityConsortium/dataverse-ansible/blob/f02346bf4b111c00802d86ac562a0943937307ec/ec2/ec2-create-instance.sh#L267

(rsync -av -e "ssh -i $PEM_FILE" --ignore-missing-args $AWS_USER@$PUBLIC_DNS:/usr/local/payara5/glassfish/domains/domain1/logs/server.log* $LOCAL_LOG_PATH/)

Two things:

  • Should we introduce an argument so we can pass payara6?
  • If we keep server* we probably don't need server.log*, right?

For context, I'm working on IQSS/dataverse#8774 and and once we merge it we'll want the rsync commands to work. For now maybe in the IQSS-Dataverse-Payara6 Jenkins job we can change curl -O https://raw.githubusercontent.com/GlobalDataverseCommunityConsortium/dataverse-ansible/develop/ec2/ec2-create-instance.sh from develop to a new branch we create with payara6 instead of payara5? Whatever makes sense.

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

1 participant