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

2.19.5 is getting "This port is reserved for git operations." error #621

Open
MarkHallEJ opened this issue Jun 29, 2020 · 3 comments
Open

2.19.5 is getting "This port is reserved for git operations." error #621

MarkHallEJ opened this issue Jun 29, 2020 · 3 comments

Comments

@MarkHallEJ
Copy link

@MarkHallEJ MarkHallEJ commented Jun 29, 2020

Using:
github/backup-utils 2.19.5
GitHub Enterprise: 2.19.11

I ran ghe-backup as bash-x ghe-backup and was able to isolate where this is being generated.

Here's a couple lines on either side:

+ rm -rf src dest1 dest2}}
+ should_use_gitbackups_for_repositories
+ ghe-ssh github.{domain}.com ghe-config --true app.github.gitbackups
This port is reserved for git operations.
To administer the host over SSH, use port 122 with ssh -p 122.
+ trap cleanup EXIT
+ trap 'exit $?' INT
+ '[' -h ../in-progress ']'
+ '[' -f ../in-progress ']'
...
and the backup continues as expected and completes successfully with no other errors of this nature, just for this one step.

@MarkHallEJ
Copy link
Author

@MarkHallEJ MarkHallEJ commented Jun 29, 2020

Previous releases allowed for the hostname in backup.config to be defined as just a hostname. I was able to trace back to the backup.config definition being used to parse the port number, so I added :122 after the hostname. It did resolve the error, but for backwards compatibility, shouldn't this port number be the default even if 'unspecified'?

@ikara5
Copy link

@ikara5 ikara5 commented Aug 31, 2020

Using:

github/backup-utils 2.19.5

GitHub Enterprise: 2.19.11

I ran ghe-backup as bash-x ghe-backup and was able to isolate where this is being generated.

Here's a couple lines on either side:

+ rm -rf src dest1 dest2}}

+ should_use_gitbackups_for_repositories

+ ghe-ssh github.{domain}.com ghe-config --true app.github.gitbackups

This port is reserved for git operations.

To administer the host over SSH, use port 122 with ssh -p 122.

+ trap cleanup EXIT

+ trap 'exit $?' INT

+ '[' -h ../in-progress ']'

+ '[' -f ../in-progress ']'

...

and the backup continues as expected and completes successfully with no other errors of this nature, just for this one step.

This was referenced Sep 6, 2020
@MarkHallEJ
Copy link
Author

@MarkHallEJ MarkHallEJ commented Sep 7, 2020

@geeebse we already had a working backup for 2.13. I used the same configuration file and commented about the changes I made above. However, I’m still getting that “This port is reserved...” message fro the title and my original post on every run as standard error. This error is causing issues with our autosys system And triggering someone to look at every run (hourly) because stderr has content. The information on issue 515 does not address the issue I raised, or I wouldn’t have raised it. I did check open tickets before submitting one.

@geeebse geeebse mentioned this issue Sep 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.