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

After deleting a repo, you can't add it to the db again #85

Open
tzurE opened this issue Jun 18, 2015 · 7 comments
Open

After deleting a repo, you can't add it to the db again #85

tzurE opened this issue Jun 18, 2015 · 7 comments

Comments

@tzurE
Copy link

tzurE commented Jun 18, 2015

After building the frontend GUI of the repositories, if you delete a repo and than try to add it again - it won't let you do that.
it's like the db doesn't want to accept that.
so even if you save it and all - doesn't work.
tried even from the REST-api, because I thought there was a problem with ember.store, but it still doesn't work.
tried running migrations or something - nada.
any ideas? I'm lost here.
(btw, it doesnt happen with users or teams, because they have a unique id. so each of them is different)

@holandes22
Copy link
Owner

Should be a task. Did you check it was removed from the file system? otherwise it won't be able to clone again under the same path

@tzurE
Copy link
Author

tzurE commented Jun 18, 2015

how can I check if it was removed from the file system?

@holandes22
Copy link
Owner

At the django settings files, check the value of RAFEE_REPO_DIR, that determines the location of the repos.

BTW, can you change the title of the issue? is too generic

@tzurE tzurE changed the title backend bug After deleting a repo, you can't add it to the db again Jun 19, 2015
@tzurE
Copy link
Author

tzurE commented Jun 19, 2015

it wasn't removed from the file path, it's still there. I can manually delete it but how can we fix this?
can we tell the backend to delete it from the file system as well?

@holandes22
Copy link
Owner

It is supposed to delete it from file system. Check RepositoryDetailAPIView for the implementation. So this is a bug

@tzurE
Copy link
Author

tzurE commented Jun 28, 2015

ok, everything works. I checked celery and all the code and everything was fine.
didn't change anything, it just...works now.
not sure how that happened actually.
maybe Its was something in my system.
after a restart and a clean "up" command, everything works fine now.
you can close this,

@holandes22
Copy link
Owner

hmm, strange. Probably the problem was that celery was not up, thus failing the task to run? Did you check the celery logs or the task state via flower?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants