Re: [ansible-project] Could not read from remote repository

176 views
Skip to first unread message
Message has been deleted

Dick Visser

unread,
May 16, 2023, 2:34:54 AM5/16/23
to ansible...@googlegroups.com
On Mon, 15 May 2023 at 23:03, Tarasov Vitalii <vtar...@marfa-tech.com> wrote:

> What I do wrong?

Posting screen captures.
Please post text, so we can read it, and then (maybe) help you :)
Message has been deleted

Dick Visser

unread,
May 16, 2023, 3:31:02 PM5/16/23
to ansible...@googlegroups.com


On Tue, 16 May 2023 at 09:55, Tarasov Vitalii <vtar...@marfa-tech.com> wrote:
Sorry, posting again
inventory.yaml: 
webservers:
hosts:
dev-stage:
ansible_ssh_host: a96872.ftp.mchost.ru
ansible_user: a96872_izg
study_deploy_to: /home/httpd/vhosts/host.example/httpdocs
ansible_remote_tmp: /home/httpd/vhosts/host.example/httpdocs
vars:
git_repo: 'g...@github.com:VitaliyT825/study.git'
project_name: study
deploy_dev-stage.yaml:
-
name: DEV-STAGE deployment script
hosts: dev-stage
remote_user: a96872_izg
become_user: a96872_izg
gather_facts: false

roles:
- cbrunnkvist.ansistrano-symfony-deploy

vars:
# custom
deploy_from_branch: '{{ branch }}'
release_console_path: '{{ ansistrano_release_path.stdout }}/{{symfony_console_path}}'

# ansistrano
ansistrano_git_repo: '{{ git_repo }}'
ansistrano_deploy_via: git
ansistrano_current_dir: current
ansistrano_allow_anonymous_stats: false
ansistrano_deploy_to: '{{ study_deploy_to }}'
ansistrano_git_branch: '{{ deploy_from_branch }}'
ansistrano_keep_releases: 5
ansistrano_shared_paths:
- 'var/log'
- 'public/images'
- 'storage'
- 'parameters'
ansistrano_shared_files:
- '.env.local'

# symfony deployer
symfony_env: dev
symfony_php_path: php
symfony_run_composer: true
symfony_composer_options: '-v -n -o --prefer-dist --no-progress'
symfony_console_path: 'bin/console'
symfony_run_assetic_dump: false
symfony_run_doctrine_migrations: true
symfony_doctrine_options: '--no-interaction'
symfony_composer_version: 2.0.9

ERROR:
TASK [ansistrano.deploy : ANSISTRANO | GIT | Update remote repository] ***************************************************************************************************************************************************************************************
fatal: [dev-stage]: FAILED! => {"changed": false, "cmd": "/usr/bin/git ls-remote g...@github.com:VitaliyT825/study.git -h refs/heads/master", "msg": "ssh: connect to host github.com port 777: Connection timed out


I'm pretty sure GitHub doesn't offer something on port 777, so it makes sense that you get that timeout. 

But I also don't see that number mentioned anywhere in the code that you provided.
So without more context it's not possible to tell where it came from.
It must be something local on your side though.
Could it be some custom setting in your gitconfig...?


r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.", "rc": 128, "stderr": "ssh: connect to host github.com port 777: Connection timed out\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n", "stderr_lines": ["ssh: connect to host github.com port 777: Connection timed out", "fatal: Could not read from remote repository.", "", "Please make sure you have the correct access rights", "and the repository exists."], "stdout": "", "stdout_lines": []}


My SSH KEY added to github account

вт, 16 мая 2023 г. в 00:02, Tarasov Vitalii <vtar...@marfa-tech.com>:
Hello! 
I have problem when trying to deploy:
Screenshot 2023-05-15 at 23.58.22.png

And my inventory.yaml
Screenshot 2023-05-15 at 23.59.59.png

And deploy_dev-stage.yamlScreenshot 2023-05-16 at 00.00.41.png

What I do wrong?

--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/acEEn4Z5VQs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/48ed04b9-6aed-41b0-ba96-8b5794d3729dn%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJsN%3DroA9_dUMdO4MhzDMwqYSDjFJbpP08S34zcPpc04xankog%40mail.gmail.com.
--
Sent from Gmail Mobile

Kosala Atapattu

unread,
May 16, 2023, 7:18:16 PM5/16/23
to ansible...@googlegroups.com
The only thing I see doing any actual work is the role in your playbook, which you 've not listed. Can you add in the tasks/main.yml from the role?

Kosala




Reply all
Reply to author
Forward
0 new messages