Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

opengrok-reindex-project Triggers API-Ratelimit that doesn't reset #4568

Closed
dkr91 opened this issue Apr 12, 2024 · 0 comments
Closed

opengrok-reindex-project Triggers API-Ratelimit that doesn't reset #4568

dkr91 opened this issue Apr 12, 2024 · 0 comments
Labels
tools Python tools

Comments

@dkr91
Copy link
Contributor

dkr91 commented Apr 12, 2024

Describe the bug
I am using two cronjobs and scripts to sync and reindex our current codebase hourly and our LTS releases weekly, including pipeing the logs to sperate files for better debuging. Doing so has triggerd Opengrok to return this error

The Script uses this

opengrok-mirror -c /opengrok/etc/mirror.yml --api_timeout 1000 -I -U http://localhost:8080/search/ "$PROJECT" -b -L /opengrok/logs/ --strip-outgoing
/usr/bin/python3 /usr/local/bin/opengrok-reindex-project --printoutput --api_timeout 1000 --jar /opengrok/lib/opengrok.jar -U http://localhost:8080/search/ -P "$PROJECT" -- --connectTimeout 8 -r dirbased -G -m 1024 --leadingWildCards on -c /usr/local/bin/ctags -H "$PROJECT" "$INDEXER_OPT" >> "$LOGFILE"
Cannot get the 'sourceRoot' config value from the web application: 
HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /search/api/v1/configuration/sourceRoot 
(Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8943626e00>: Failed to establish a new connection: [Errno 111] Connection refused'))

To Reproduce
Steps to reproduce the behavior: Build a script maunually triggeringopengrok-mirror and opengrok-reindex-project

Expected behavior
I can run the script with a Cronjob and fine-adjust when which projects get reindexed.

@vladak vladak added the tools Python tools label Jul 31, 2024
@oracle oracle locked and limited conversation to collaborators Jul 31, 2024
@vladak vladak converted this issue into discussion #4613 Jul 31, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
tools Python tools
Projects
None yet
Development

No branches or pull requests

2 participants