scttnlsn / dandelion

Incremental Git repository deployment.
http://scttnlsn.github.io/dandelion
MIT License
738 stars 60 forks source link

Error Trying to Deploy #22

Closed jo-snips closed 11 years ago

jo-snips commented 11 years ago

Hi there,

I'm getting this error when trying to deploy:

/Library/Ruby/Gems/1.8/gems/dandelion-0.3.9/bin/../lib/dandelion/git.rb:58:in `initialize': Dandelion::Git::RevisionError (Dandelion::Git::RevisionError)
        from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.9/bin/../lib/dandelion/deployment.rb:23:in `new'
        from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.9/bin/../lib/dandelion/deployment.rb:23:in `initialize'
        from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.9/bin/../lib/dandelion/deployment.rb:72:in `initialize'
        from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.9/bin/../lib/dandelion/deployment.rb:12:in `new'
        from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.9/bin/../lib/dandelion/deployment.rb:12:in `create'
        from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.9/bin/../lib/dandelion/command.rb:122:in `deployment'
        from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.9/bin/../lib/dandelion/command/status.rb:15:in `execute'
        from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.9/bin/../lib/dandelion/application.rb:38:in `execute'
        from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.9/bin/../lib/dandelion/command.rb:92:in `initialize'
        from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.9/bin/../lib/dandelion/application.rb:36:in `new'
        from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.9/bin/../lib/dandelion/application.rb:36:in `execute'
        from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.9/bin/../lib/dandelion/application.rb:7:in `execute'
        from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.9/bin/dandelion:7
        from /usr/bin/dandelion:19:in `load'
        from /usr/bin/dandelion:19

I've tried changing config options and recreating my repo but nothing is working. Any ideas?

Thanks, Jonah

scttnlsn commented 11 years ago

My guess is that the remote revision does not exist in your local working copy. Did someone else deploy to the server without first pushing to the remote that you pull from?

To test this theory, try reading the SHA from the .revision file that is stored on the server and running a git show <sha> in your local copy.

jo-snips commented 11 years ago

Well I haven't even deployed at all to this particular location on the server, this is my initial push so there's no .revision file on the remote...

I get an error running git show <sha>: -bash: syntax error near unexpected token `newline'

I'm a beginner Git guy though so don't really know what I'm doing aside from the basics.

Thanks, Jonah

scttnlsn commented 11 years ago

Have you made any commits locally? If you're trying to deploy an empty Git repo that could be causing this error.

On Wednesday, December 5, 2012 at 1:17 PM, Jonah West wrote:

Well I haven't even deployed at all to this particular location on the server, this is my initial push so there's no .revision file on the remote... I get an error running git show : -bash: syntax error near unexpected token `newline'
I'm a beginner Git guy though so don't really know what I'm doing aside from the basics. Thanks, Jonah

— Reply to this email directly or view it on GitHub (https://github.com/scttnlsn/dandelion/issues/22#issuecomment-11053421).

jo-snips commented 11 years ago

Yep, I just did another commit too. Same error. So weird because other repo's work and I recreated this one just to see if that was the problem.

On Dec 5, 2012, at 11:19 AM, Scott Nelson notifications@github.com wrote:

Have you made any commits locally? If you're trying to deploy an empty Git repo that could be causing this error.

On Wednesday, December 5, 2012 at 1:17 PM, Jonah West wrote:

Well I haven't even deployed at all to this particular location on the server, this is my initial push so there's no .revision file on the remote... I get an error running git show : -bash: syntax error near unexpected token `newline' I'm a beginner Git guy though so don't really know what I'm doing aside from the basics. Thanks, Jonah

— Reply to this email directly or view it on GitHub (https://github.com/scttnlsn/dandelion/issues/22#issuecomment-11053421). — Reply to this email directly or view it on GitHub.

scttnlsn commented 11 years ago

And you're certain that there's no .revision file on the remote server?

On Wednesday, December 5, 2012 at 1:21 PM, Jonah West wrote:

Yep, I just did another commit too. Same error. So weird because other repo's work and I recreated this one just to see if that was the problem.

On Dec 5, 2012, at 11:19 AM, Scott Nelson <notifications@github.com (mailto:notifications@github.com)> wrote:

Have you made any commits locally? If you're trying to deploy an empty Git repo that could be causing this error.

On Wednesday, December 5, 2012 at 1:17 PM, Jonah West wrote:

Well I haven't even deployed at all to this particular location on the server, this is my initial push so there's no .revision file on the remote...
I get an error running git show :
-bash: syntax error near unexpected token `newline'
I'm a beginner Git guy though so don't really know what I'm doing aside from the basics.
Thanks,
Jonah


Reply to this email directly or view it on GitHub (https://github.com/scttnlsn/dandelion/issues/22#issuecomment-11053421).


Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub (https://github.com/scttnlsn/dandelion/issues/22#issuecomment-11053558).

jo-snips commented 11 years ago

Yep, just toggled show hidden files...

On Dec 5, 2012, at 11:22 AM, Scott Nelson notifications@github.com wrote:

And you're certain that there's no .revision file on the remote server?

On Wednesday, December 5, 2012 at 1:21 PM, Jonah West wrote:

Yep, I just did another commit too. Same error. So weird because other repo's work and I recreated this one just to see if that was the problem.

On Dec 5, 2012, at 11:19 AM, Scott Nelson <notifications@github.com (mailto:notifications@github.com)> wrote:

Have you made any commits locally? If you're trying to deploy an empty Git repo that could be causing this error.

On Wednesday, December 5, 2012 at 1:17 PM, Jonah West wrote:

Well I haven't even deployed at all to this particular location on the server, this is my initial push so there's no .revision file on the remote... I get an error running git show : -bash: syntax error near unexpected token `newline' I'm a beginner Git guy though so don't really know what I'm doing aside from the basics. Thanks, Jonah

— Reply to this email directly or view it on GitHub (https://github.com/scttnlsn/dandelion/issues/22#issuecomment-11053421).

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub (https://github.com/scttnlsn/dandelion/issues/22#issuecomment-11053558). — Reply to this email directly or view it on GitHub.

scttnlsn commented 11 years ago

What Dandelion scheme are you using? Is there any way you could push the Git repository somewhere public so I can test it out?

On Wednesday, December 5, 2012 at 1:24 PM, Jonah West wrote:

Yep, just toggled show hidden files...

On Dec 5, 2012, at 11:22 AM, Scott Nelson <notifications@github.com (mailto:notifications@github.com)> wrote:

And you're certain that there's no .revision file on the remote server?

On Wednesday, December 5, 2012 at 1:21 PM, Jonah West wrote:

Yep, I just did another commit too. Same error. So weird because other repo's work and I recreated this one just to see if that was the problem.

On Dec 5, 2012, at 11:19 AM, Scott Nelson <notifications@github.com (mailto:notifications@github.com)> wrote:

Have you made any commits locally? If you're trying to deploy an empty Git repo that could be causing this error.

On Wednesday, December 5, 2012 at 1:17 PM, Jonah West wrote:

Well I haven't even deployed at all to this particular location on the server, this is my initial push so there's no .revision file on the remote...
I get an error running git show :
-bash: syntax error near unexpected token `newline'
I'm a beginner Git guy though so don't really know what I'm doing aside from the basics.
Thanks,
Jonah


Reply to this email directly or view it on GitHub (https://github.com/scttnlsn/dandelion/issues/22#issuecomment-11053421).


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub (https://github.com/scttnlsn/dandelion/issues/22#issuecomment-11053558).


Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub (https://github.com/scttnlsn/dandelion/issues/22#issuecomment-11053678).

jo-snips commented 11 years ago

I've tried ftp and sftp and I'm trying to deploy to a very similar place where I can deploy other repo's just fine so it's something specific to this one...

I'd be happy to push somewhere, I don't have any free repo space anywhere though - do you have one I could push to?

On Dec 5, 2012, at 11:25 AM, Scott Nelson notifications@github.com wrote:

What Dandelion scheme are you using? Is there any way you could push the Git repository somewhere public so I can test it out?

On Wednesday, December 5, 2012 at 1:24 PM, Jonah West wrote:

Yep, just toggled show hidden files...

On Dec 5, 2012, at 11:22 AM, Scott Nelson <notifications@github.com (mailto:notifications@github.com)> wrote:

And you're certain that there's no .revision file on the remote server?

On Wednesday, December 5, 2012 at 1:21 PM, Jonah West wrote:

Yep, I just did another commit too. Same error. So weird because other repo's work and I recreated this one just to see if that was the problem.

On Dec 5, 2012, at 11:19 AM, Scott Nelson <notifications@github.com (mailto:notifications@github.com)> wrote:

Have you made any commits locally? If you're trying to deploy an empty Git repo that could be causing this error.

On Wednesday, December 5, 2012 at 1:17 PM, Jonah West wrote:

Well I haven't even deployed at all to this particular location on the server, this is my initial push so there's no .revision file on the remote... I get an error running git show : -bash: syntax error near unexpected token `newline' I'm a beginner Git guy though so don't really know what I'm doing aside from the basics. Thanks, Jonah

— Reply to this email directly or view it on GitHub (https://github.com/scttnlsn/dandelion/issues/22#issuecomment-11053421).

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub (https://github.com/scttnlsn/dandelion/issues/22#issuecomment-11053558).

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub (https://github.com/scttnlsn/dandelion/issues/22#issuecomment-11053678). — Reply to this email directly or view it on GitHub.

jo-snips commented 11 years ago

Just wanted to post an update on this. I got it fixed, it was my bad. It seems there are some issues with Git upon installing Mountain Lion. I checked out this post: http://pradeepnayak.in/technology/2012/07/26/git-command-not-found-error-in-mountain-lion-quickfix/ - and installed the latest version of xCode and Command Line Tools and everything is working again! Hallelujah! It was getting pretty tiresome manually FTP'ing changes every time.

I hope this helps someone else!

jo-snips commented 11 years ago

FYI, I need to install the latest xCode and Command Line Tools to get Dandelion to work again. Hallelujah! Here's what led me to figuring it out: http://pradeepnayak.in/technology/2012/07/26/git-command-not-found-error-in-mountain-lion-quickfix/