Giter Site home page Giter Site logo

Comments (45)

cjb avatar cjb commented on July 21, 2024

@CODeRUS I don't know what's happening there, but reading closely this looks like a warning rather than an error, so I think the install actually worked?

from gittorrent.

CODeRUS avatar CODeRUS commented on July 21, 2024

It's not working, git saying following: fatal: Unable to find remote helper for 'gittorrent'

from gittorrent.

cjb avatar cjb commented on July 21, 2024

@CODeRUS How about if you add -g, like:

sudo npm install -g gittorrent

from gittorrent.

CODeRUS avatar CODeRUS commented on July 21, 2024

output:

sudo npm install -g gittorrent
[sudo] password for coderus: 
npm WARN engine [email protected]: wanted: {"node":"0.6"} (current: {"node":"0.10.25","npm":"1.4.21"})

> [email protected] install /usr/local/lib/node_modules/gittorrent/node_modules/webtorrent/node_modules/chromecast-js/node_modules/node-ssdp/node_modules/bunyan/node_modules/dtrace-provider
> node scripts/install.js

npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian                                                                                                                                                           

npm WARN optional dep failed, continuing [email protected]

> [email protected] install /usr/local/lib/node_modules/gittorrent/node_modules/webtorrent/node_modules/torrent-discovery/node_modules/bittorrent-tracker/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild

gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:344:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 4.0.4-040004-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/gittorrent/node_modules/webtorrent/node_modules/torrent-discovery/node_modules/bittorrent-tracker/node_modules/ws/node_modules/utf-8-validate
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian                                                                                                                                                           


> [email protected] install /usr/local/lib/node_modules/gittorrent/node_modules/webtorrent/node_modules/torrent-discovery/node_modules/bittorrent-tracker/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild

gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:344:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 4.0.4-040004-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/gittorrent/node_modules/webtorrent/node_modules/torrent-discovery/node_modules/bittorrent-tracker/node_modules/ws/node_modules/bufferutil
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
npm WARN optional dep failed, continuing [email protected]
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian                                                                                                                                                           

npm WARN optional dep failed, continuing [email protected]

> [email protected] install /usr/local/lib/node_modules/gittorrent/node_modules/webtorrent/node_modules/torrent-discovery/node_modules/bittorrent-tracker/node_modules/wrtc
> node-pre-gyp install --fallback-to-build

npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian                                                                                                                                                           

npm WARN optional dep failed, continuing [email protected]
npm WARN optional dep failed, continuing [email protected]
npm WARN deprecated [email protected]: module has been merged into crc32-stream
/usr/local/bin/git-remote-gittorrent -> /usr/local/lib/node_modules/gittorrent/git-remote-gittorrent
/usr/local/bin/gittorrentd -> /usr/local/lib/node_modules/gittorrent/gittorrentd
[email protected] /usr/local/lib/node_modules/gittorrent
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

from gittorrent.

cjb avatar cjb commented on July 21, 2024

And does it work now? It looks like it placed git-remote-gittorrent in /usr/local/bin.

from gittorrent.

CODeRUS avatar CODeRUS commented on July 21, 2024

Testing again:

git clone gittorrent://github.com/MacManus88/sailfish-pr0gramm
Cloning into 'sailfish-pr0gramm'...

and no more output given

from gittorrent.

cjb avatar cjb commented on July 21, 2024

That's probably fine; it means no-one's seeding that, and I don't have the fallback to getting it over git:// yet.

from gittorrent.

CODeRUS avatar CODeRUS commented on July 21, 2024

okay then. where to get info about seeding repos?

from gittorrent.

cjb avatar cjb commented on July 21, 2024

From the README:

Or serve your own repos with:

touch somerepo/.git/git-daemon-export-ok
gittorrentd

from gittorrent.

CODeRUS avatar CODeRUS commented on July 21, 2024

should gittorrentd stay running after execution? For me it exiting without any output.

from gittorrent.

cjb avatar cjb commented on July 21, 2024

Yeah, should stay running. Could you paste:

DEBUG=* gittorrentd

from gittorrent.

CODeRUS avatar CODeRUS commented on July 21, 2024

Same. No output.

from gittorrent.

cjb avatar cjb commented on July 21, 2024

Maybe your "touch" didn't work.

from gittorrent.

CODeRUS avatar CODeRUS commented on July 21, 2024

See following:

$ ls
branches  COMMIT_EDITMSG  config  description  GIT_COLA_MSG  git-daemon-export-ok  gitk.cache  HEAD  hooks  index  info  logs  modules  objects  ORIG_HEAD  refs
$ DEBUG=* gittorrentd

from gittorrent.

cjb avatar cjb commented on July 21, 2024

Ah, you need to run gittorrentd from the directory above the git repo.

$ ls ./somerepo/.git # should work
$ gittorrentd

from gittorrent.

CODeRUS avatar CODeRUS commented on July 21, 2024

This way? Still no ouput:

 ~/SailfishProjects $ ls mitakuuluu3/.git
branches  COMMIT_EDITMSG  config  description  GIT_COLA_MSG  git-daemon-export-ok  gitk.cache  HEAD  hooks  index  info  logs  modules  objects  ORIG_HEAD  refs
 ~/SailfishProjects $ DEBUG=* gittorrentd

from gittorrent.

cjb avatar cjb commented on July 21, 2024

Huh. Sorry, running out of ideas..

from gittorrent.

CODeRUS avatar CODeRUS commented on July 21, 2024

Keep this updated if you figure it out please :)

from gittorrent.

cjb avatar cjb commented on July 21, 2024

Is it possible that your network blocks outgoing port 6881 connections?

from gittorrent.

CODeRUS avatar CODeRUS commented on July 21, 2024

Everything is possible. Any way to test it?

from gittorrent.

cjb avatar cjb commented on July 21, 2024

I'm tempted to say "go somewhere else". :)

from gittorrent.

CODeRUS avatar CODeRUS commented on July 21, 2024

Well, testing using http://portquiz.net:6881/ passed

from gittorrent.

dpc avatar dpc commented on July 21, 2024

Was this solved? I have the same problem (gittorrentd just exits after a while).

from gittorrent.

cjb avatar cjb commented on July 21, 2024

@dpc I ran out of ideas.. could you paste your full terminal session with "DEBUG=* gittorrentd" in case it brings anything up?

from gittorrent.

dpc avatar dpc commented on July 21, 2024

@cjb stdout: http://sprunge.us/PJIa stderr: http://sprunge.us/cUKE

from gittorrent.

cjb avatar cjb commented on July 21, 2024

@dpc Thanks, that's interesting. Can you add the below console.log line to gittorrentd and let me know what gets output?

    var ls = git.ls(repo, function (sha, ref) {
        console.log(repo, sha, ref)

from gittorrent.

dpc avatar dpc commented on July 21, 2024

http://sprunge.us/LBCM http://sprunge.us/ULWX

from gittorrent.

cjb avatar cjb commented on July 21, 2024

Thanks. What platform are you on?

from gittorrent.

dpc avatar dpc commented on July 21, 2024

Fedora 21, x64

from gittorrent.

dpc avatar dpc commented on July 21, 2024

This line did not executed, did it?

from gittorrent.

cjb avatar cjb commented on July 21, 2024

No, it didn't. I think git ls-remote mioco failed. What happens when you run that manually in a shell?

from gittorrent.

dpc avatar dpc commented on July 21, 2024
[futex:tmp/gittorrent]% git ls-remote mioco
fatal: 'mioco' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

...

[futex:tmp/gittorrent]% cd mioco 
[futex:gittorrent/mioco] (master!)% git st
## master...origin/master
(...)

from gittorrent.

cjb avatar cjb commented on July 21, 2024

And is "mioco/" inside that directory? (Does ls mioco work?)

from gittorrent.

dpc avatar dpc commented on July 21, 2024

I edited previous answer.

[futex:gittorrent/mioco] (master!)% cd ..
[futex:tmp/gittorrent]% git ls mioco
[futex:tmp/gittorrent]% cd mioco 
[futex:gittorrent/mioco] (master!)% git ls
.gitignore
.travis.yml
Cargo.toml
LICENSE-MPL2
Makefile
README.md
examples/echo.rs
examples/echoplus.rs
examples/mailbox.rs
src/lib.rs
src/tests.rs

from gittorrent.

cjb avatar cjb commented on July 21, 2024

How about git ls-remote mioco/.git?

from gittorrent.

dpc avatar dpc commented on July 21, 2024
[futex:tmp/gittorrent]% git ls-remote mioco/.git
fatal: 'mioco/.git' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

from gittorrent.

dpc avatar dpc commented on July 21, 2024
[futex:tmp/gittorrent]% git --version
git version 2.1.0

from gittorrent.

cjb avatar cjb commented on July 21, 2024

How about:

cd mioco
git ls-remote .

?

from gittorrent.

cjb avatar cjb commented on July 21, 2024

And do you have any theories on why your git repository doesn't appear to be a git repository? :)

from gittorrent.

dpc avatar dpc commented on July 21, 2024
[futex:tmp/gittorrent]% cd mioco 
[futex:gittorrent/mioco] (master!)% git ls-remote .
cb1d756636b21abfdfea8e50b5828a0dadb2bda1        HEAD
5715f619f1d5fc6a5c7c897a847a04a31898b8a1        refs/heads/32-limit
633217c8dcfd510ef2c633236ab90d66bfbe3288        refs/heads/devel
3f98fc3d0424cf64e42b70d8ed778a13c94d664c        refs/heads/dynamic-dispatch
ffc459a246d02cf112cad2822f3edb530b80686f        refs/heads/gh-pages
a8639cd0bd957280b605dcbae7a1a4a22c1e3326        refs/heads/mailboxes
cb1d756636b21abfdfea8e50b5828a0dadb2bda1        refs/heads/master
c27d4fec784216703c989f0b153bb85d0239cc4f        refs/heads/new-design
4e81bffeacde4259f29b8cfd6eafde2ba1e51ec6        refs/heads/new-design-squash
92a6541869e7a57a6059e0613f6d0c630fa38131        refs/heads/new-select-api
c97d8b13d98bc354282d386cdd427a1cac211cbd        refs/heads/new-select-api2
92a6541869e7a57a6059e0613f6d0c630fa38131        refs/heads/new-select-api3
e06a510a0af27df4e8de4f8be6938989f3d2b98b        refs/heads/notifyr
df6ff78e7fb514783f86dcfe1f6befc126a7aa38        refs/heads/queue
8b127e6f40a2702e348edfe914e036f6e7cd5ade        refs/heads/spin
c97d8b13d98bc354282d386cdd427a1cac211cbd        refs/heads/spinfix
b27e5e99151f5d16e65e0150dc8a2b1956ce08e7        refs/heads/test
c871197b42b9d0becf0d6651eda13aca61602d1d        refs/heads/tests
5dd4bc4b6fec22214d3e6cad8e93261148e2a053        refs/heads/timer
1f7bbe6b59d5aa57351065d00bf3b0969606c43a        refs/heads/wakups
e8cb4bd3e0500fe5be3cc35137de4629bc9673f3        refs/remotes/jeremyjh/devel
0c317e073f539641935dee8dc963c8917ba3b8e6        refs/remotes/jeremyjh/gh-pages
09fa02e5e13cddf216b7d3d01c55d0dbfbbd66ef        refs/remotes/jeremyjh/master
365e8765b92cee191d63d7ca4d49ad9d2b790853        refs/remotes/jeremyjh/notify
43c5f0f7bdb58cf459f5de8e55f1b1a36d082baa        refs/remotes/jeremyjh/notifyr
5dd4bc4b6fec22214d3e6cad8e93261148e2a053        refs/remotes/jeremyjh/timer
633217c8dcfd510ef2c633236ab90d66bfbe3288        refs/remotes/origin/devel
ffc459a246d02cf112cad2822f3edb530b80686f        refs/remotes/origin/gh-pages
cb1d756636b21abfdfea8e50b5828a0dadb2bda1        refs/remotes/origin/master
4e81bffeacde4259f29b8cfd6eafde2ba1e51ec6        refs/remotes/origin/new-design-squash
0418edb63120eafa5ffea700d42420d2793375d1        refs/remotes/origin/test
633217c8dcfd510ef2c633236ab90d66bfbe3288        refs/remotes/sync/devel
cb1d756636b21abfdfea8e50b5828a0dadb2bda1        refs/remotes/sync/master
e80dee56f27702a91d216c3412fc83baf62fba53        refs/tags/release-0.0.2
cdfafd312420d697a2431256ddcfcd3d7438c23d        refs/tags/release-0.0.2^{}
3fe9e26594f86cab89bbdb3700fc956f3cc4b43e        refs/tags/release-0.0.4
c9df0f7bed8c78d3a5979592c70a086d13d1f3f2        refs/tags/release-0.0.4^{}

from gittorrent.

cjb avatar cjb commented on July 21, 2024

Oh! Well that's weird.

from gittorrent.

dpc avatar dpc commented on July 21, 2024

Let me strace this thing...

from gittorrent.

dpc avatar dpc commented on July 21, 2024

I think the reason is that my ~ is under git control. I've moved the directory to /tmp and now it works, and the line you pasted did print stuff.

from gittorrent.

dpc avatar dpc commented on July 21, 2024

BTW. What's the deal with "Can't publish mutable key: doesn't fit in 950 bytes." now?

from gittorrent.

cjb avatar cjb commented on July 21, 2024

It's because you have too many branches. :) That's issue #52.

from gittorrent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.