Open abbood opened 7 years ago
I would first try clearing the project cache through the web UI. If that fails, you can go into the .strider/data
directory of the user that runs Strider and check the local repository.
@oliversalzburg:
~/.strider/data/my-project-name-57977338ad69ec767c8dbbdb
and that's it.. what should i do now?
Did you run another build after clearing the cache? The directory should contain the cloned repo, if I'm not mistaken
yes i did clear the cache then immediately rebuild and deploy.. same git error:
$ git clone --recursive https://[username]:[password]@github.com/Mokus-io/beneple.git . --branch master github 851ms -1
Cloning into '.'...
remote: Repository not found.
fatal: repository 'https://92a661bb3eac5c545d09db093643250936ffc990:@github.com/Mokus-io/beneple.git/' not found
$ -1
An unexpected error occurred while executing this job. Please report at https://github.com/Strider-CD/strider/issues
Git clone failed with code 128
Error: Git clone failed with code 128
at badCode (/home/ubuntu/strider/node_modules/strider-git/worker.js:90:11)
at updateCache (/home/ubuntu/strider/node_modules/strider-git/worker.js:154:19)
at ChildProcess.<anonymous> (/home/ubuntu/strider/node_modules/strider-runner-core/lib/job.js:203:9)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
What happens if you do the clone outside of Strider but on the same box/account?
if i do a git clone without putting username/pwd like so:
git clone --recursive https://my-project.git
it simply prompts me for my username/pwd.. and obviously if i include my username/pwd in the command like so
git clone --recursive https://username:pwd@my-project.git
it works like a charm.
my question is: in this command
$ git clone --recursive https://[username]:[password]@github.com/Mokus-io/beneple.git . --branch master github 851ms -1
does the username/pwd actually replaced by the real username/pwd?
Well, the problem is already at the remote: Repository not found.
. Either the repo was actually moved, or the access key Strider is using is not valid. Check https://github.com/Mokus-io/beneple/settings/keys and replace or add the public key of the Strider project.
does the username/pwd actually replaced by the real username/pwd?
Yes, it's just "blurred" so it's not visible in the logs.
odd.. there are no deploy keys in https://github.com/Mokus-io/beneple/settings/keys.. thing is this project was handed over to me without me being able to know what the original authors had in mind.. ok lemme see now..
it didn't work.. i created a new deploy key at github and got the public key from my strider:
than i reployed.. same git error
I would delete the project and re-add it, if that's possible.
@knownasilya it definitely is.. but now i'm wondering what other steps are missing.. for example i was checking out this github integration tutorial and i see that i got no github oAth app registered.. so i guess it's safe to delete everything and start from scratch eh? (ie by following the instructions on that page?)
Yes, that should setup your Github settings properly.
one last cheat question.. in my beneple repo root directory i have this strider.json file:
{
"merge_plugins": true,
"plugins": [
{
"id": "custom",
"enabled": true,
"showStatus": true,
"config": {
"prepare": "docker build -t beneple/beneple:latest -t beneple/beneple:$(git rev-parse HEAD) .",
"test": "docker run --link beneple_db:db --rm beneple/beneple:$(git rev-parse HEAD) sh -c \"venv/bin/coverage run ./manage.py test && venv/bin/coverage report\"",
"deploy": "bash +e -c 'docker stop beneple_strider; docker rm beneple_strider; docker run --link beneple_db:db -p 80:8000 --restart=always --name=beneple_strider -d beneple/beneple:$(git rev-parse HEAD)'",
"cleanup": "bash -c 'if [[ $(docker ps -a -f status=exited -q) ]] ; then docker rm $(docker ps -a -f status=exited -q); fi; if [[ $(docker images -f dangling=true -q) ]]; then docker rmi $(docker images -q); fi;'"
}
}
]
}
when i just setup my new github repo.. it asked what kind of project it is and i said it's python.. so now the test script simply runs
pip install -r requirements.txt
to prepare it and
python setup.py test
to test it.. obviously this isn't the case.. how do i instruct strider to run the commands in this strider.json file?
Disable the python plugin in the "Plugins" config.
yeah ok? but now no script is run when i push a new commit/branch
If you want to run the command mentioned in your previous post, enable the Python plugin. The custom commands should be run regardless (that's what merge_plugins
is for). If they aren't run, it's likely that the custom plugin is not installed. The grey status in Strider is usually some pretty fatal error. A look at the Strider logs would be interesting.
@abbood is this issue still happening or did you fix it?
I have taken over a project that uses strider to
however currently strider is stuck here:
i have access to the server that's running strider.. how do I manually override this job and do the git fetch trouble shootoing myself.. then restart strider?