WARN  TCPServer Error: Only one usage of each socket     address (protocol/network address/port) is normally permitted. - bind(2)
Uncaught exception: Only one usage of each socket address (protocol/network  address/port) is normally permitted. - bind(2)

위와 같은 오류를 만나면

1. 작업관리자에서 관련 프로세스를 종료시킨다.

2. rails server -p 3001

   포트를 달리하여 서버를 가동시킨다.

저작자 표시 비영리 변경 금지
신고

댓글을 달아주세요:: 네티켓은 기본, 스팸은 사절

ruby

2017.03.17 00:42

rails s를 하면

C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/source/git/git_proxy.rb:225:in `allowed_in_path': The git source git://github.com/parasew/acts_as_tree.git is not yet checked out. Please run `bundle install` before trying to start your application (Bundler::GitError)
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/source/git/git_proxy.rb:183:in `find_local_revision'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/source/git/git_proxy.rb:63:in `revision'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/source/git.rb:220:in `revision'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/source/git.rb:88:in `install_path'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/source/path.rb:123:in `expanded_path'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/source/path.rb:150:in `load_spec_files'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/source/git.rb:193:in `load_spec_files'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/source/path.rb:97:in `local_specs'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/source/git.rb:161:in `specs'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/definition.rb:725:in `block in converge_locked_specs'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/definition.rb:714:in `each'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/definition.rb:714:in `converge_locked_specs'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/definition.rb:245:in `resolve'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/definition.rb:176:in `specs'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/definition.rb:235:in `specs_for'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/definition.rb:224:in `requested_specs'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/runtime.rb:118:in `block in definition_method'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/runtime.rb:19:in `setup'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler.rb:100:in `setup'
        from C:/bori_mrk/config/boot.rb:8:in `<top (required)>'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from script/rails:5:in `<main>'



bundle install 을 실행하면

 Fetching git://github.com/parasew/acts_as_tree.git
fatal: Not a git repository (or any of the parent directories): .git

Retrying `git fetch --force --quiet --tags "C:/Ruby193/lib/ruby/gems/1.9.1/cache
/bundler/git/acts_as_tree-3c50df6a51cbd17e29090bc04f9a9b227326e9de"` due to erro
r (2/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --f
orce --quiet --tags "C:/Ruby193/lib/ruby/gems/1.9.1/cache/bundler/git/acts_as_tr
ee-3c50df6a51cbd17e29090bc04f9a9b227326e9de"` in directory C:/Ruby193/lib/ruby/g
ems/1.9.1/bundler/gems/acts_as_tree-ed52495d1671 has failed.
If this error persists you could try removing the cache directory 'C:/Ruby193/li
b/ruby/gems/1.9.1/cache/bundler/git/acts_as_tree-3c50df6a51cbd17e29090bc04f9a9b2
27326e9de'fatal: Not a git repository (or any of the parent directories): .git

Retrying `git fetch --force --quiet --tags "C:/Ruby193/lib/ruby/gems/1.9.1/cache
/bundler/git/acts_as_tree-3c50df6a51cbd17e29090bc04f9a9b227326e9de"` due to erro
r (3/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --f
orce --quiet --tags "C:/Ruby193/lib/ruby/gems/1.9.1/cache/bundler/git/acts_as_tr
ee-3c50df6a51cbd17e29090bc04f9a9b227326e9de"` in directory C:/Ruby193/lib/ruby/g
ems/1.9.1/bundler/gems/acts_as_tree-ed52495d1671 has failed.
If this error persists you could try removing the cache directory 'C:/Ruby193/li
b/ruby/gems/1.9.1/cache/bundler/git/acts_as_tree-3c50df6a51cbd17e29090bc04f9a9b2
27326e9de'fatal: Not a git repository (or any of the parent directories): .git

Retrying `git fetch --force --quiet --tags "C:/Ruby193/lib/ruby/gems/1.9.1/cache
/bundler/git/acts_as_tree-3c50df6a51cbd17e29090bc04f9a9b227326e9de"` due to erro
r (4/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --f
orce --quiet --tags "C:/Ruby193/lib/ruby/gems/1.9.1/cache/bundler/git/acts_as_tr
ee-3c50df6a51cbd17e29090bc04f9a9b227326e9de"` in directory C:/Ruby193/lib/ruby/g
ems/1.9.1/bundler/gems/acts_as_tree-ed52495d1671 has failed.
If this error persists you could try removing the cache directory 'C:/Ruby193/li
b/ruby/gems/1.9.1/cache/bundler/git/acts_as_tree-3c50df6a51cbd17e29090bc04f9a9b2
27326e9de'fatal: Not a git repository (or any of the parent directories): .git

Git error: command `git fetch --force --quiet --tags
"C:/Ruby193/lib/ruby/gems/1.9.1/cache/bundler/git/acts_as_tree-3c50df6a51cbd17e2
9090bc04f9a9b227326e9de"`
in directory
C:/Ruby193/lib/ruby/gems/1.9.1/bundler/gems/acts_as_tree-ed52495d1671 has
failed.
If this error persists you could try removing the cache directory
'C:/Ruby193/lib/ruby/gems/1.9.1/cache/bundler/git/acts_as_tree-3c50df6a51cbd17e2
9090bc04f9a9b227326e9de'


git status를 하면

On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   Gemfile
        modified:   Gemfile.lock
        modified:   config/database.yml

no changes added to commit (use "git add" and/or "git commit -a")


당췌 뭐가 문제인거야?

며칠전에 분명 됐었는데... ㅜ.ㅜ

-----

해결방법

bundle install했을 때

Fetching git://github.com/parasew/acts_as_tree.git 이런식으로

안되면
GemFile 에 다음과 같이 정의되어 있을 것이다.
gem "acts_as_tree" , :git => 'git://github.com/parasew/acts_as_tree.git'

이것에서 git 을 바라보지 않게 #으로 뒷부분을 주석처리하거나

gem "acts_as_tree" #, :git => 'git://github.com/parasew/acts_as_tree.git'

또는 아예 지워버리면 된다

gem "acts_as_tree"


휴~~. 다시 되니 반갑네 ㅋ


저작자 표시 비영리 변경 금지
신고

댓글을 달아주세요:: 네티켓은 기본, 스팸은 사절

많은 삽질 중에 간단 결론

window의 경우 실행 > cmd 로 창을 열고


sqlplus /nolog


conn / as sysdba


show parameter local_listener

로컬 리스너의 값이 나온다.

그 포트를 변경하면 되는데


변경방법은

alter system set local_listener='(address=(protocol=tcp)(host=호스트명또는 아이피)(port=변경할포트))';



저작자 표시 비영리 변경 금지
신고

댓글을 달아주세요:: 네티켓은 기본, 스팸은 사절

A keen mind
Being jealous
take the oath
let out
break in
have to face
cold confort
made no mention
lay ahead
lowdown on
killing drosts
nail down
신고

댓글을 달아주세요:: 네티켓은 기본, 스팸은 사절

BLOG main image
"그게 뭐 어쨌다는 거냐?" 늘 누가 나에게 나에대한 말을할 때면 이말을 기억해라. by nobang

카테고리

nobang이야기 (1571)
Life With Gopro (7)
Life With Mini (69)
Diary (906)
너 그거 아니(do you know) (109)
난 그래 (107)
속지말자 (9)
Project (34)
Poem (14)
Song (0)
Study (120)
Photo (112)
낙서장 (45)
일정 (0)
C.A.P.i (2)
PodCast (0)
nobang (27)
고한친구들 (4)
recieve (0)
History (0)
android_app (2)

최근에 받은 트랙백

Total : 442,509
Today : 0 Yesterday : 286