-
Notifications
You must be signed in to change notification settings - Fork 33
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
Alfresco artifacts owned by root #328
Comments
Hi @Fikili , That's an odd issue you're reporting. There's no reason I know off where the war file belonging to root could break the startup of the catalina process (as long as the war is readable to the alfresco user)... Actually we test the playbook as part of the CI against ubuntu20 EC2 instances and never witnessed that. To be sure this is not something to do with non-ec2 ubuntu20 I've spinned up a local VM and installed ubuntu 20.04 on it. ls -l /opt/alfresco/content-services-7.2.0/web-server/webapps/*.war
-rw-rw-r-- 1 alfresco alfresco 275031 Mar 19 09:32 /opt/alfresco/content-services-7.2.0/web-server/webapps/ROOT.war
-rw-rw-r-- 1 alfresco alfresco 649827 Mar 19 09:32 /opt/alfresco/content-services-7.2.0/web-server/webapps/_vti_bin.war
-rw-r--r-- 1 root root 206523411 Apr 23 13:56 /opt/alfresco/content-services-7.2.0/web-server/webapps/alfresco.war
-rw-r--r-- 1 alfresco alfresco 1207734 Apr 23 13:32 /opt/alfresco/content-services-7.2.0/web-server/webapps/api-explorer.war
-rw-r--r-- 1 root root 96425960 Apr 23 13:57 /opt/alfresco/content-services-7.2.0/web-server/webapps/share.war
ls -l /opt/apache-activemq-5.16.4/
total 18112
-rw-r--r-- 1 alfresco alfresco 40581 Jan 31 01:02 LICENSE
-rw-r--r-- 1 alfresco alfresco 3334 Jan 31 01:02 NOTICE
-rw-r--r-- 1 alfresco alfresco 2611 Jan 31 01:02 README.txt
-rwxr-xr-x 1 alfresco alfresco 18471406 Jan 31 01:02 activemq-all-5.16.4.jar
drwxr-xr-x 5 root root 4096 Apr 23 12:39 bin
drwxr-xr-x 2 alfresco alfresco 4096 Apr 23 12:39 docs
drwxr-xr-x 7 alfresco alfresco 4096 Jan 31 01:02 examples
drwxr-xr-x 6 alfresco alfresco 4096 Apr 23 12:39 lib
drwxr-xr-x 6 alfresco alfresco 4096 Apr 23 12:39 webapps
drwxr-xr-x 3 root root 4096 Apr 23 12:39 webapps-demo
ls -l /opt/apache-tomcat-9.0.59/
total 128
-rw-r----- 1 alfresco alfresco 18980 Feb 21 21:01 BUILDING.txt
-rw-r----- 1 alfresco alfresco 6210 Feb 21 21:01 CONTRIBUTING.md
-rw-r----- 1 alfresco alfresco 57092 Feb 21 21:01 LICENSE
-rw-r----- 1 alfresco alfresco 2333 Feb 21 21:01 NOTICE
-rw-r----- 1 alfresco alfresco 3378 Feb 21 21:01 README.md
-rw-r----- 1 alfresco alfresco 6898 Feb 21 21:01 RELEASE-NOTES
-rw-r----- 1 alfresco alfresco 16507 Feb 21 21:01 RUNNING.txt
drwxr-x--- 2 alfresco alfresco 4096 Apr 23 13:31 bin
drwxr-x--- 2 alfresco alfresco 4096 Apr 23 13:31 lib
ls -l /opt/alfresco/.ansible_alfresco_components.status
-rw-r--r-- 1 root root 864 Apr 23 14:02 /opt/alfresco/.ansible_alfresco_components.status I'm wondering if that could be linked to the control node running on wsl2...? or maybe because of some previous failures and subsequent runs not happening as it should. We try to give high priority to idempotency of each role and to a certain extend to the one at the playbook level but we know some roles (like repository) still need to be improved. |
Hi @alxgomz, Ok, I am going to clean everything according to https://github.com/Alfresco/alfresco-ansible-deployment/blob/master/docs/deployment-guide.md#cleanup Then I will start a new installation and let you know the umask. |
First permission problem occurs for ActiveMQ:
Error visible in journal:
Line 17 as well as only part that could be related to permission issues is List of files with umask under ${ACTIVEMQ_HOME}: # ll ${ACTIVEMQ_HOME}
total 18112
-rwxr-xr-x. 1 alfresco alfresco 18471406 Jan 31 03:02 activemq-all-5.16.4.jar
drwxr-x---. 5 root root 4096 Apr 25 08:16 bin
drwxr-xr-x. 2 alfresco alfresco 4096 Apr 25 08:16 docs
drwxr-xr-x. 7 alfresco alfresco 4096 Jan 31 03:02 examples
drwxr-xr-x. 6 alfresco alfresco 4096 Apr 25 08:16 lib
-rw-r--r--. 1 alfresco alfresco 40581 Jan 31 03:02 LICENSE
-rw-r--r--. 1 alfresco alfresco 3334 Jan 31 03:02 NOTICE
-rw-r--r--. 1 alfresco alfresco 2611 Jan 31 03:02 README.txt
drwxr-xr-x. 6 alfresco alfresco 4096 Apr 25 08:16 webapps
drwxr-x---. 3 root root 4096 Apr 25 08:16 webapps-demo List of files with umask under ${ACTIVEMQ_HOME}/bin/: # ll ${ACTIVEMQ_HOME}/bin/
total 156
-rwxr-xr-x. 1 alfresco alfresco 26694 Jan 31 03:02 activemq
-rwxr-xr-x. 1 alfresco alfresco 6190 Jan 31 03:02 activemq-diag
-rw-r--r--. 1 alfresco alfresco 15940 Jan 31 03:02 activemq.jar
-rw-r--r--. 1 alfresco alfresco 5598 Jan 31 03:02 env
drwxr-x---. 2 root root 4096 Apr 25 08:16 linux-x86-32
drwxr-x---. 2 root root 4096 Apr 25 08:16 linux-x86-64
drwxr-x---. 2 root root 4096 Apr 25 08:16 macosx
-rw-r--r--. 1 alfresco alfresco 83820 Jan 31 03:02 wrapper.jar Let me know if you need more info. |
Hi @alxgomz, Were you able to reproduce the issue? Do you need more info from me? BTW, next week my colleague will try the deploy on his laptop, I will inform you if he faces the same issue. |
Hi @Fikili , |
@Fikili could you report which is the default umask on target os for the root user with:
if it's |
Hi guys, |
Hi @gionn, $ umask
0022 Tomorrow, my colleague will use the Ansible installer using WSL as well. I'll inform you about a result. |
Hi @gionn and @alxgomz, In addition, I can see that f.e. apply_amps.sh contains sudo and even some non-existing folders and based on the best practice, you shouldn't have application user with sudo rights. Last but not least, thank you for your help and I really appreciate that you improve the project actively. |
Bug description
ACS 7.2 installation started using
$ ansible-playbook playbooks/acs.yml -i inventory_ssh.yml
Some files are owned by root and therefore cannot be used by alfresco user. Here are examples:
FYI, control node running on WSL2 with Ubuntu 20.
Workaround:
$ sudo chown alfresco:alfresco /opt/alfresco/content-services-7.2.0/web-server/webapps/*.war
$ sudo chown -R alfresco:alfresco /opt/apache-activemq-5.16.4/
$ sudo chown -R alfresco:alfresco /opt/apache-tomcat-9.0.59/
$ sudo chmod 666 /opt/alfresco/.ansible_alfresco_components.status
Target OS
RHEL 8.3
Ansible error
ActiveMQ:
Repository:
Ansible context
ansible --version
ansible-config dump --only-changed
(alfresco-ansible) alfresco@XXX:~/git/alfresco-ansible-deployment$ ansible-config dump --only-changed ANSIBLE_PIPELINING(/home/alfresco/git/alfresco-ansible-deployment/ansible.cfg) = True
ansible-inventory -i your_inventory_file --graph
The text was updated successfully, but these errors were encountered: