Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

Can't clone repositories #11

Open
alexw668 opened this issue Mar 6, 2012 · 6 comments
Open

Can't clone repositories #11

alexw668 opened this issue Mar 6, 2012 · 6 comments

Comments

@alexw668
Copy link

alexw668 commented Mar 6, 2012

Hi,

We tried to use your app for continuous deployment process. I got everything "working", was able to create a project, but then it got stuck on cloning the repository. After waiting for a while (till the "Cloning the repository. Please wait..." message was gone, I refreshed the project page, and it simply said there was an error occurred sometime ago, and no repo was cloned in vender/repos folder. I made sure that the folder was writable by the user who runs the strano app (as a matter of fact writable by everyone in the system). Any ideas why?

Thanks!
Alex

@joelmoss
Copy link
Owner

joelmoss commented Mar 6, 2012

Repo cloning is performed in the background by Resque, so make sure you have started Resque. You can access Resque-Web at /resque

Joel Moss
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Monday, 5 March 2012 at 21:26, Alex Wang wrote:

Hi,

We tried to use your app for continuous deployment process. I got everything "working", was able to create a project, but then it got stuck on cloning the repository. After waiting for a while (till the "Cloning the repository. Please wait..." message was gone, I refreshed the project page, and it simply said there was an error occurred sometime ago, and no repo was cloned in vender/repos folder. I made sure that the folder was writable by the user who runs the strano app (as a matter of fact writable by everyone in the system). Any ideas why?

Thanks!
Alex


Reply to this email directly or view it on GitHub:
#11

@alexw668
Copy link
Author

alexw668 commented Mar 8, 2012

Thanks, it works when I ran the bundle exec to start Resque. Do you know how I can start Resque from an upstart job (meaning what to write in, say, /etc/init/resque.conf)? Thanks.

@alexw668
Copy link
Author

alexw668 commented Mar 8, 2012

I was able to create and clone one git hub project, but when I tried to create another one, the project is no longer cloned. I can see that I have a resque worker running waiting for a job, but apparently no job is picked up. The process shows "resque-1.20.0: Waiting for *". Any idea why?

Thanks,
Alex

@alexw668
Copy link
Author

alexw668 commented Mar 8, 2012

More info: Right after I created a project, I can see the project being created (showing ID from the request URL, say, /projects/10), but the latest failed job showed this:
Couldn't find Project with id=10 [WHERE "projects"."deleted_at" IS NULL]

Not sure why.
Alex

@vinchbr
Copy link

vinchbr commented Dec 6, 2012

I am having the same trouble...
I manually installed resque, and added it to the routes.rb as it says on their installation guide...

but still, no job is being added to resque OR sidekiq

@yevgenko
Copy link
Contributor

This is because after_create callback, Strano uses to place a job, is database transaction dependent, see Use after_commit for more info. If shortly, this is because the worker may perform the job before the insert operation has been committed, this is exactly why @alexw668 getting Couldn't find Project with id=10

This was referenced Dec 14, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants