scp -i <yourpem-file> <local-path>/alfresco-ansible-deployment-<version>.zip centos@<control-node-ip>:/home/centos/
Could you tell me pls what command i must write to transfer Transfer the ZIP file to the control node and SSH into the machine:
I have admin username,192.168.241.138 ip address,and i downloaded alfresco-ansible-deployment-1.0.zip
The path to this file is /home/admin/alfresco-ansible-deployment-1.0.zip
I write this command there is an error appear
scp -i /home/admin/alfresco-ansible-deployment-1.0.zip admin@192.168.241.138:/home/admin/
usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 ... [[user@]host2:]file2
Remove the -i
scp /home/admin/alfresco-ansible-deployment-1.0.zip admin@192.168.241.138:/home/admin/
Once you have Ansible installed on your target machine you can review my notes
Hello!Thanks all.I have one more question.
There is an error appear when i enter the following command
[admin@localhost alfresco-ansible-deployment-1.0]$ sudo ansible-playbook playbooks/acs.yml -i inventory_ssh.yml -e "@community-extra-vars.yml"
[sudo] password for admin:
PLAY [Database Role] ****************************************************************************************************************************************
TASK [Gathering Facts] **************************************************************************************************************************************
fatal: [database_1]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: Could not resolve hostname targetip: Name or service not known", "unreachable": true}
PLAY RECAP **************************************************************************************************************************************************
database_1 : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0
[admin@localhost alfresco-ansible-deployment-1.0]$
my order of the commands
scp /home/admin/alfresco-ansible-deployment-1.0.zip admin@192.168.241.138:/home/admin/
ssh -i /home/admin/alfresco-ansible-deployment-1.0.zip admin@192.168.241.138 unzip alfresco-ansible-deployment-1.0.zip
sudo yum install -y unzip https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install -y ansible
unzip alfresco-ansible-deployment-1.0.zip
ansible-playbook playbooks/acs.yml -i inventory_local.yml -e "@community-extra-vars.yml"
I solver this problem.I forgot to run this command under root.
Now there is another problem when i try to install alfresco and use this command
ansible-playbook playbooks/acs.yml -i inventory_local.yml -e "@community-extra-vars.yml"
TASK [../roles/postgres : Ensure postgresql service is started and enabled on boot] *************************************************************************
fatal: [database_1]: FAILED! => {"changed": false, "msg": "Unable to start service postgresql-13: Job for postgresql-13.service failed because the control process exited with error code. See \"systemctl status postgresql-13.service\" and \"journalctl -xe\" for details.\n"}
PLAY RECAP **************************************************************************************************************************************************
database_1 : ok=14 changed=0 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0
[root@localhost alfresco-ansible-deployment-1.0]#
Your postgresql is not working properly. Check this thread, you have some options to see exactly the error (and possible solutions!).
In general: try to start up only that process, check the PostgreSQL's log files and see what is happening (the real error).
Thanks and there is another problem appeared .The libre office had been installed.But installator can't verify it.
I install it under root.Maybe i should install it under user with superuser rights?
TASK [../roles/transformers : Download libreoffice 6.3.5 rpm tar.gz] ************************************************************************************
changed: [transformers_1]
TASK [../roles/transformers : Verifying if libreoffice finished downloading] ****************************************************************************
FAILED - RETRYING: Verifying if libreoffice finished downloading (30 retries left).
FAILED - RETRYING: Verifying if libreoffice finished downloading (29 retries left).
FAILED - RETRYING: Verifying if libreoffice finished downloading (28 retries left).
FAILED - RETRYING: Verifying if libreoffice finished downloading (27 retries left).
FAILED - RETRYING: Verifying if libreoffice finished downloading (26 retries left).
FAILED - RETRYING: Verifying if libreoffice finished downloading (25 retries left).
FAILED - RETRYING: Verifying if libreoffice finished downloading (24 retries left).
FAILED - RETRYING: Verifying if libreoffice finished downloading (23 retries left).
FAILED - RETRYING: Verifying if libreoffice finished downloading (22 retries left).
FAILED - RETRYING: Verifying if libreoffice finished downloading (21 retries left).
FAILED - RETRYING: Verifying if libreoffice finished downloading (20 retries left).
FAILED - RETRYING: Verifying if libreoffice finished downloading (19 retries left).
FAILED - RETRYING: Verifying if libreoffice finished downloading (18 retries left).
FAILED - RETRYING: Verifying if libreoffice finished downloading (17 retries left).
FAILED - RETRYING: Verifying if libreoffice finished downloading (16 retries left).
I installed it sucessfully.But i can't open alfresco site http://192.168.241.138/share from another computer .
But i cant open this site from localhost(where i installed alfresco).
i have windows 10 installed with vmware .I installed centos and alfresco .And i can open alfrescro from centos but i can't open it from windows 10.
What file i must edit to open the access to other computers?
And could you tell me commands to install ssh on alfresco or give me a link to install it ?
http://192.168.241.138/share
With that IP address your alfresco will be accessible to all other machine within LAN.
To expose it over the internet you need to have server with public ip then you will be able to access it over internet using that public ip.
Do this quick test: check from centros this website to know what is your public ip. Try to access using that one.
But, there is a problem here: as soon as you'll restart your router your public ip provably will change. I'll recommend you to configure a SSL + mod_jk. But in this topic @afaust can help better.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.