Thin web server: `start_tcp_server': no acceptor (RuntimeError) after git branch checkout
A Rails 3.2.0 app, working fine with Thin web server, both locally and on Heroku cedar stack.
$ git branch work
$ git checkout work
$ rails server
=> Booting Thin
=> Rails 3.2.0 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
>> Thin web server (v1.3.1 codename Triple Espresso)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop
/Users/peter/.rvm/gems/ruby-1.9.3-p125/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_tcp_server': no acceptor (RuntimeError)
from /Users/peter/.rvm/gems/ruby-1.9.3-p125/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_server'
from /Users/peter/.rvm/gems/ruby-1.9.3-p125/gems/thin-1.3.1/lib/thin/backends/tcp_server.rb:16:in `connect'
from /Users/peter/.rvm/gems/ruby-1.9.3-p125/gems/thin-1.3.1/lib/thin/backends/base.rb:53:in `block in start'
from /Users/peter/.rvm/gems/ruby-1.9.3-p125/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `call'
from /Users/peter/.rvm/gems/ruby-1.9.3-p125/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
from /Users/peter/.rvm/gems/ruby-1.9.3-p125/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
from /Users/peter/.rvm/gems/ruby-1.9.3-p125/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start'
from /Users/peter/.rvm/gems/ruby-1.9.3-p125/gems/thin-1.3.1/lib/thin/server.rb:159:in `start'
from /Users/peter/.rvm/gems/ruby-1.9.3-p125/gems/rack-1.4.1/lib/rack/handler/thin.rb:13:in `run'
from /Users/peter/.rvm/gems/ruby-1.9.3-p125/gems/rack-1.4.1/lib/rack/server.rb:265:in `start'
from /Users/peter/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.0/lib/rails/commands/server.rb:70:in `start'
from /Users/peter/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.0/lib/rails/commands.rb:55:in `block in <top (required)>'
from /Users/peter/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.0/lib/rails/commands.rb:50:in `tap'
from /Users/peter/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.0/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Also, when I do:
sudo bundle exec rails server thin -p 3000
/Users/peter/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find bundler (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.5.4, minitest-2.5.1, rake-0.9.2.2, rdoc-3.9.4] (Gem::LoadError)
from /Users/peter/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /Users/peter/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems.rb:1210:in `gem'
from /Users/peter/.rvm/gems/ruby-1.9.3-p125/bin/bundle:18:in `<main>'
I have bundler 1.0.22 installed. Updated and installed it. Nothing seems to work. Any ideas?
I pulled a project from Heroku and now when I am trying to create in this project on my localhost a new branch, I always get this error message: git checkout new_branch error: pathspec 'new_branch' di
If I am on branch b-one and I run git commit -m init commit and then git checkout -b b-two, does the commit carry to the new branch? More generally, are commits branch specific? Or when you commit,
While trying new android ide i meet a problem when i can't import progect from local server git repository (\server\git-repo\android\progect). In Eclipse EGit plugin everything works fine. Clone Faile
I have created on branch named as sub-branch. I am creating on file test1.txt after switching to sub-brnach using command git checkout sub-branch. Now when i switch to master branch using command gi
At some branch X I did git merge master But there was some conflicts. I did a mistake during resolving the conflicts, (basically doing git add when I should have done git rm to confirm some local de
Working in a large group project this is our work flow: // create branch git checkout -b mybranch (do work) // commit to branch locally git commit -a // push to remote git push origin mybranch (repea
If I run git branch -d XYZ to delete branch 'XYZ', is there a way to recover the branch. In other words, is there a way to go back as if I didn't run the branch delete command?
I have a single repo where each branch specifies different approaches to the same problem: $ git branch approach1 approach2 approach3 Now for each of these approaches, I have several auxiliary files,
http://norbauer.com/notebooks/code/notes/git-revert-reset-a-single-file I have found a post. But still don't know what is the different between 1.git checkout <filename> 2.git checkout -- <f
I use git version 126.96.36.199. Is that possible to do the following using one git command? git fetch email@example.com:someone/repo.git someones_branch git checkout FETCH_HEAD -b my_testing_branch
I created a local branch by using git checkout -b mybranch Then I made certain changes to it and pushed to remote with git push origin mybranch However, I cannot see my local changes in the remote
I'm currently testing out deploying websites via Git and am having trouble understanding the following: Currently, I have a bare remote repo on my DEV environment with a post-receive hook which sets G
Is it possible to set branch permissions using git bash? I would like to have much more strict permissions on the master branch, so that some people can use the development branch and commit to it and
Is it possible in git to switch to another branch without checking out all files? After switching branch I need to delete all files, regenerate them, commit and switch back. So checking out files is j
I want to check a local branch currently tracking which remote branch For example: git checkout -b test_branch git branch --set-upstream test_branch origin/remote_project001 But after a few days, I
this is probably a very easy question but I am completely new to Git so... I have done a pull on my master branch. Another person has done a lot of changes to the master branch. I wanted to discard a
I am working on Laravel project. I checkout new branch and it gives error Symfony \ Component \ Debug \ Exception \ FatalErrorException Class 'Pimple' not found it display the error file as 'elast
I am new to Git. I have cut my branch from master as follows: git co master git fetch git pull origin master git co -b my_branch Now I have been working on my that branch for past one week. Now it is
I have a server on which I send the results of my work. After each command git push I have to connect via SSH and enter the command to switch my remote repository to the latest version: git checkout N
I would like to merge from FeatureBranch to master, without doing ,,checkout master'' first. I've tried (being in FeatureBranch) git push . master but I got (to a degree of surprise) : Everything up-
I have a git repo with one submodule. I used the method described here to connect them. Now, I'd like to use filter-branch to check out a specific revision from the submodule for each revision of the
I have a repo with many different remotes where I've checked out a remote branch - git checkout remote/branch. I can get the currently checked out commit hash via cat .git/HEAD (since I'm always in a
While cloning git repository from linux to windows system, I am getting following error in checkout phase. $ git clone gituser@serveraddr:/git/git_repo.git git_WA Cloning into 'git_WA'... gituser@ser
I have two branches: master and opengl. Recently I have finished implementation (or at least I though so) of opengl branch and decided to merge it into master: git checkout master git merge opengl git
I did git checkout master. If I do git status it shows two changed files in my working directory, even though I haven't touched them. It appears to be some sort of line ending issue. git reset --hard
If I run a regular git command such as git checkout I get helpful autocompletion of branch names when hitting the tab key. I have a few git aliases which take branch names as parameters, and I'm wonde
I am new in git. I could not come back to master branch. I used several git bash command. I am mentioning all those with result below. $ git checkout master error:pathspec 'master' did not match any f
Simplyfiing I have a created a git branch structure like this: Generated from: git init echo Hello World > file1.txt git add file1.txt git commit -m Hello world git checkout -b A echo This is
I am relatively new to using Git. This is what I've done so far: $ git branch * master $ git status # On branch master nothing to commit (working directory clean) $ git branch mywork $ git checkout my
I have an old submodule branch. I did not make a corresponding topic branch for the main module since my changes only modify the submodule. I have since updated my main module as I and others have bee
There are some deletion happening at remote master branch, from where I have created this branch by using git checkout -b, but when I try to pull the changes of the remote branch by doing git checkout
I have a website I am working on with git as version control. However, it is becoming annoying to have to manually update the web server with changes to our code as well as the git repository every ti
I'm using JGit to checkout a remote tracking branch. Git binrepository = cloneCmd.call() CheckoutCommand checkoutCmd = binrepository.checkout(); checkoutCmd.setName( origin/ + branchName); checkoutC
I did the following: git clone [fork] worked for a few days, creating new files 1 & 2 git add newfile1 git add newfile2 git checkout -b new_branch git checkout master At this point, I expected n
What is the quickest way to checkout revision which is next (later in the time) to HEAD (when you are in detached head state)? This should be something like: git checkout HEAD~-1 but this command do
I sort of want the equivilent of cd - for git. If I am in branch master and I checkout foo, I would love to be able to type something like git checkout - to go back to master, and be able to type it a
My git repos contains a master branch with the development version of our application and a branch for each released (or currently tested) version of the application. Since the last branch we added a
We are using git. We have some branches already merged to master because we thought that it was already good to go. When we deployed to prod, my team mate's code caused error 500 in the server. We use
Hey guys how would I checkout a specific branch from another remote address? Thanks
I'm working with three branches master develop feature-new-theme Where feature-new-themeis a fork of develop. In feature-new-theme I've added a new git submodule, called bootswatch, in protected/vend
I have installed Ruby 1.9.2-p290 (via RVM) and Rails 3.2.2. EventMachine 0.12.10, Thin 1.3.1 and Rack 1.4.0 Im starting the application like this: zonic@laptop:~/rails-projects/project$ bundle exec th
I have a develop branch and a feature branch in my git repo. I added a commit to develop and now I want that commit to be merged to my feature branch. If I do this git checkout feature git merge devel
I'd like to create local branch based on other branch. For example I type: git checkout -b feature1 release1.1.3 After that I get: fatal: git checkout: updating paths is incompatible with switching br
I want to do a script that help me to release a system by checkout a repo in GIT. My quest is can I some way test to checkout a branch to identify if I got error without to rely do this on the file-sy
I'm in a branch now and I am about to create a tag. Creating a tag will save the state of ALL of my branches correct? But later if I want to come back to this tag, how do I check it out with a specifi
Okay, so I added the file .gitattributes with lines like this *.css text *.js text etc... I then followed the instructions at http://git-scm.com/docs/gitattributes#_checking-out_and_checking-in $ rm
My understanding is that the default branch of a cloned repository is to be whatever HEAD points to in the repo being cloned. I now have a case where this is not true. My understanding is obviously fl
After merging a branch, do you delete it from the repository? However, it's a good practice or not? I usually create a lot of branches, since I don't want to break my current release, and I'd wish to
Let's say we have the following scenario: - I created a new branch and checked it out (git checkout -b ). - On the new branch I changed a file - If I want to switch back to master, git throws the foll
I tried to make a git branch testbranch, after this checkout git checkout testbranch. Then I edited a file, for example README. Now I tried to switch back to master branch, and it always makes a m