I'm trying to have my user-data script copy certain directories to my sharedhome directory utilizing this example code from this doc:
cp -R
/var/atlassian/application-data/jira/{data,plugins,logos,
import
,export,keys} /data/jira/sharedhome
When I installed Jira, I set this as my home directory
The document says to copy those subdirectories from your Jira home directory. However, when my script runs that command at the very end, it tells me none of those directories exist. How is that so? Am I referencing the directories incorrectly?
Yes, you probably are.
Could you explain what you are trying to do at a higher level? Install a second node? Convert Server to DC? Migrate Server to DC?
I'm trying to deploy two nodes at once to run in a cluster. They get deployed via an auto-scaling group and share this user-data script
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, that implies that your installation is not running to completion on the first node. The install will create the directories and content it needs, so when you come to copy, and find the files are not there, that's why it's failing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looking through the logs- Jira gets installed and completed before trying to copy the directories and I just tried running those commands manually and it's still telling me the directories don't exist. What other things can I try?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If the home directory is empty, missing the directories you are looking for, then it has not completed.
You might want to check the permissions as well, but "do not exist" almost always means they are not there.
Is your first node actually up and running? If it is, then you'll find you have created the directories somewhere else. Maybe look to the defaults?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When I go to the home directory, which I believe is the default home directory and also what I set to be my home directory in my script (/var/atlassian/application-data/jira) this is what's there:
caches cluster.properties log plugins tmp
Obviously my script adds the cluster.properties file after the install.
The first node works (I believe?), I can access the Jira set-up page:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, so you have not finished setting up the first node, that explains why the directories are empty.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.