unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* IPFS trouble
@ 2018-12-18 13:00 Björn Höfling
  2018-12-18 13:07 ` Laura Lazzati
  0 siblings, 1 reply; 9+ messages in thread
From: Björn Höfling @ 2018-12-18 13:00 UTC (permalink / raw)
  To: Laura Lazzati, guix-devel

[-- Attachment #1: Type: text/plain, Size: 5050 bytes --]

Hi Laura,

I'm sending this also to guix-devel [and sorry for the previous, empty,
private mail, I was too fast on the sending button].


Note: I'm also new to IPFS, so I hope everything is correct here, if
someone knows better, please reply.

On Tue, 18 Dec 2018 00:04:56 -0300
Laura Lazzati <laura.lazzati.15@gmail.com> wrote:


> > A good guide is:
> > https://medium.com/textileio/the-definitive-guide-to-publishing-content-on-ipfs-ipns-dfe751f1e8d0.  

> Sorry, I read the documentation, but I am mixed up.
> I have my peer identity, and my /ipfs/hash...
> And I find confusing several things:
> If I run ipfs add myfile, using my command line, I cannot find myfile
> in my node. even the add command returns a hash for that file I guess.
> And if I run ipfs ls or cat that hash, the file is shown.

I don't get what you mean with "I cannot find my file". Where are you
looking for it?

> I found useful for instance the webui, but when running ipfs add, my
> files don't appear there if I open it and the other way around either:
> the files are there if I upload them in the webui, and they have a
> hash. I can copy the hash from the webui, but it doesn't work if I run
> ipfs ls on that hash. And the files added with ipfs add myfile do not
> appear in the webui. The webui however has an option to share your
> file, I don't know if that is useful.



You have in IPFS file-objects and directory-objects. The command 'ipfs
ls' is for listing the contents of directory-objects (i.e. list the
files in that directory). If you use it on file-objects (that exit in
the store), the command just returns with no output.


This works for me:

I have the daemon down, i.e. no 'ipfs daemon' started.

Then I can still add things to my local IPFS-store:

```
mkdir baz
echo "foo" > baz/foo.txt
echo "bar" > baz/bar.txt
echo "Hello World, now it is $(date -u -Ins)" > baz/hello.txt
cat baz/hello.txt 

Hello World, now it is 2018-12-18T12:08:57,304514914+00:00


ipfs add -r baz/
added QmTz3oc4gdpRMKP2sdGUPZTAGRngqjsi99BPoztyP53JMM baz/bar.txt
added QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6 baz/foo.txt
added QmXXZWRsLhFAHNWW6tH4TJVB2UiUPsUX8TZhYavqTne6RH baz/hello.txt
added QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg baz
 67 B / 67 B
[=========================================================] 100.00%


Now I can open the web-browser:

localhost:9090/ipfs/QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6

--> (Note:I changed my port from default 8080 to 9090, on 8080 is
already something listening) Unable to connect, I don't have the daemon
up yet.

https://ipfs.io/ipfs/QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6

--> Shows "foo", as this Hash is already uploaded in the global network
by someone else.

https://ipfs.io/ipfs/QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg

--> That is with the hash of the directory. Times out, this is not found
on the global network.


Starting daemon:

ipfs daemon

Browser:

localhost:5001/webui

Redirects:

http://localhost:5001/ipfs/QmSDgpiHco5yXdyVTfhKxr3aiJ82ynz8V14QcGKicM3rVh/#/

Entering hash of "foo" in the "Explore" tab:

QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6

Finds it, I can view it.

Entering hash of "baz" directory:

http://localhost:9090/ipfs/QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg

Yes, it lists the directory.

Globally available:

https://ipfs.io/ipfs/QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg

I can see the directory structure. And I can see the files foo.txt,
bar.txt and hello.txt listed:
https://ipfs.io/ipfs/QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg/bar.txt


But, the "hello.txt" takes its time to download, until now I still
don't see it:

https://ipfs.io/ipfs/QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg/hello.txt

Probably that's because it first needs to search the network and find
my little local host for that file. Hm. Strange.

Ah, after 5 minutes, it's there! Maybe that's also your problem?

Going to my server, daemon is down by default:

myserver$ ipfs ls QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6
Error: merkledag: not found

myserver$ echo "foo" > foo.txt
myserver$ ipfs add foo.txt 
added QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6 foo.txt
 4 B / 4 B
[===========================================================] 100.00%
myserver$ ipfs ls QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6
myserver$

(i.e., no error, no output)



myserver$ ipfs daemon &

Looking for the directory:

myserver$ ipfs ls QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg
[Waiting 3 minutes nothing happens, then:]
QmTz3oc4gdpRMKP2sdGUPZTAGRngqjsi99BPoztyP53JMM 12 bar.txt
QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6 12 foo.txt
QmXXZWRsLhFAHNWW6tH4TJVB2UiUPsUX8TZhYavqTne6RH 67 hello.txt

myserver$ ipfs cat
QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg/hello.txt Hello World,
now it is 2018-12-18T12:08:57,304514914+00:00

(instantly!)

Hope this helps a bit,

Björn

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: IPFS trouble
  2018-12-18 13:00 IPFS trouble Björn Höfling
@ 2018-12-18 13:07 ` Laura Lazzati
  2018-12-18 15:56   ` Laura Lazzati
                     ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Laura Lazzati @ 2018-12-18 13:07 UTC (permalink / raw)
  To: Björn Höfling; +Cc: guix-devel

On Tue, Dec 18, 2018 at 10:00 AM Björn Höfling
<bjoern.hoefling@bjoernhoefling.de> wrote:
>
> Hi Laura,
>
> I'm sending this also to guix-devel [and sorry for the previous, empty,
> private mail, I was too fast on the sending button].
>
>
> Note: I'm also new to IPFS, so I hope everything is correct here, if
> someone knows better, please reply.
>
> On Tue, 18 Dec 2018 00:04:56 -0300
> Laura Lazzati <laura.lazzati.15@gmail.com> wrote:
>
>
> > > A good guide is:
> > > https://medium.com/textileio/the-definitive-guide-to-publishing-content-on-ipfs-ipns-dfe751f1e8d0.
>
> > Sorry, I read the documentation, but I am mixed up.
> > I have my peer identity, and my /ipfs/hash...
> > And I find confusing several things:
> > If I run ipfs add myfile, using my command line, I cannot find myfile
> > in my node. even the add command returns a hash for that file I guess.
> > And if I run ipfs ls or cat that hash, the file is shown.
>
> I don't get what you mean with "I cannot find my file". Where are you
> looking for it?
>
> > I found useful for instance the webui, but when running ipfs add, my
> > files don't appear there if I open it and the other way around either:
> > the files are there if I upload them in the webui, and they have a
> > hash. I can copy the hash from the webui, but it doesn't work if I run
> > ipfs ls on that hash. And the files added with ipfs add myfile do not
> > appear in the webui. The webui however has an option to share your
> > file, I don't know if that is useful.
>
>
>
> You have in IPFS file-objects and directory-objects. The command 'ipfs
> ls' is for listing the contents of directory-objects (i.e. list the
> files in that directory). If you use it on file-objects (that exit in
> the store), the command just returns with no output.
>
>
> This works for me:
>
> I have the daemon down, i.e. no 'ipfs daemon' started.
>
> Then I can still add things to my local IPFS-store:
>
> ```
> mkdir baz
> echo "foo" > baz/foo.txt
> echo "bar" > baz/bar.txt
> echo "Hello World, now it is $(date -u -Ins)" > baz/hello.txt
> cat baz/hello.txt
>
> Hello World, now it is 2018-12-18T12:08:57,304514914+00:00
>
>
> ipfs add -r baz/
> added QmTz3oc4gdpRMKP2sdGUPZTAGRngqjsi99BPoztyP53JMM baz/bar.txt
> added QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6 baz/foo.txt
> added QmXXZWRsLhFAHNWW6tH4TJVB2UiUPsUX8TZhYavqTne6RH baz/hello.txt
> added QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg baz
>  67 B / 67 B
> [=========================================================] 100.00%
>
>
> Now I can open the web-browser:
>
> localhost:9090/ipfs/QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6
>
> --> (Note:I changed my port from default 8080 to 9090, on 8080 is
> already something listening) Unable to connect, I don't have the daemon
> up yet.
>
> https://ipfs.io/ipfs/QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6
>
> --> Shows "foo", as this Hash is already uploaded in the global network
> by someone else.
>
> https://ipfs.io/ipfs/QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg
>
> --> That is with the hash of the directory. Times out, this is not found
> on the global network.
>
>
> Starting daemon:
>
> ipfs daemon
>
> Browser:
>
> localhost:5001/webui
>
> Redirects:
>
> http://localhost:5001/ipfs/QmSDgpiHco5yXdyVTfhKxr3aiJ82ynz8V14QcGKicM3rVh/#/
>
> Entering hash of "foo" in the "Explore" tab:
>
> QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6
>
> Finds it, I can view it.
>
> Entering hash of "baz" directory:
>
> http://localhost:9090/ipfs/QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg
>
> Yes, it lists the directory.
>
> Globally available:
>
> https://ipfs.io/ipfs/QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg
>
> I can see the directory structure. And I can see the files foo.txt,
> bar.txt and hello.txt listed:
> https://ipfs.io/ipfs/QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg/bar.txt
>
>
> But, the "hello.txt" takes its time to download, until now I still
> don't see it:
>
> https://ipfs.io/ipfs/QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg/hello.txt
>
> Probably that's because it first needs to search the network and find
> my little local host for that file. Hm. Strange.
>
> Ah, after 5 minutes, it's there! Maybe that's also your problem?
>
> Going to my server, daemon is down by default:
>
> myserver$ ipfs ls QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6
> Error: merkledag: not found
>
> myserver$ echo "foo" > foo.txt
> myserver$ ipfs add foo.txt
> added QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6 foo.txt
>  4 B / 4 B
> [===========================================================] 100.00%
> myserver$ ipfs ls QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6
> myserver$
>
> (i.e., no error, no output)
>
>
>
> myserver$ ipfs daemon &
>
> Looking for the directory:
>
> myserver$ ipfs ls QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg
> [Waiting 3 minutes nothing happens, then:]
> QmTz3oc4gdpRMKP2sdGUPZTAGRngqjsi99BPoztyP53JMM 12 bar.txt
> QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6 12 foo.txt
> QmXXZWRsLhFAHNWW6tH4TJVB2UiUPsUX8TZhYavqTne6RH 67 hello.txt
>
> myserver$ ipfs cat
> QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg/hello.txt Hello World,
> now it is 2018-12-18T12:08:57,304514914+00:00
>
> (instantly!)
>
> Hope this helps a bit,
>
> Björn
Thank you! I will try it. I felt really silly for spending  too much
time on that. I just want to share my videos so that you can see how
they are, even they are videos for trying out the video/translation
tools. BTW, I edited the libreplanet site, changing some stuff about
the commands that I faced, and adding comments about why I did so.
I am not running the daemon in background, since I don't mind having a
terminal open. I will write back to let you know if it your steps work
for me :)

Thank you!

Regards,
Laura

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: IPFS trouble
  2018-12-18 13:07 ` Laura Lazzati
@ 2018-12-18 15:56   ` Laura Lazzati
  2018-12-18 16:02   ` Ricardo Wurmus
  2018-12-18 16:10   ` Hector Sanjuan
  2 siblings, 0 replies; 9+ messages in thread
From: Laura Lazzati @ 2018-12-18 15:56 UTC (permalink / raw)
  To: Björn Höfling; +Cc: guix-devel

Hi Björn - and guix -

Here is everything I tried

mkdir ipfsFiles
cd
cd videosWithoutTranslation/
cp audio-input-list3.txt /home/laura/ipfsFiles/
cp video-input-list3.txt /home/laura/ipfsFiles/
ipfs add -r ipfsFiles/
cd ipfsFiles
ipfs  init
initializing IPFS node at /home/laura/.ipfs
generating 2048-bit RSA keypair...done
peer identity: QmVJW3dAuoXaqeeHeVrsD7fJHhrAxoriR2JurtGNx3e8he
to get started, enter:

    ipfs cat /ipfs/QmS4ustL54uo8FzR9455qaxZwuMiUhyvMcX9Ba8nUH4uVv/readme
cd
ipfs add -r ipfsFiles/
added QmVmtcXockAvmA9ZorgksmwK4PiSV4AoRx7KpoLczg2AD9
ipfsFiles/audio-input-list3.txt
added QmTtutKMVDCWtinAC8m1Xft4u4P84uCjPhqJ9amVswCSAe
ipfsFiles/video-input-list3.txt
added Qmd2aRaa6rSEkwU95Lk3RGtHp7oBzJyM97oxgTk7ENrVaB ipfsFiles
 115 B / 115 B [=================================================================================================================]
100.00%

localhost:9090/ipfs/QmTtutKMVDCWtinAC8m1Xft4u4P84uCjPhqJ9amVswCSAe
 did not work either

ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/9090

https://ipfs.io/ipfs/QmTtutKMVDCWtinAC8m1Xft4u4P84uCjPhqJ9amVswCSAe
no one else has my hash

ipfs daemon
Initializing daemon...
go-ipfs version: 0.4.19-dev-
Repo version: 7
System version: amd64/linux
Golang version: go1.11.1
Successfully raised file descriptor limit to 2048.
Swarm listening on /ip4/10.0.2.15/tcp/4001
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
Swarm listening on /p2p-circuit
Swarm announcing /ip4/10.0.2.15/tcp/4001
Swarm announcing /ip4/127.0.0.1/tcp/4001
Swarm announcing /ip6/::1/tcp/4001
API server listening on /ip4/127.0.0.1/tcp/5001
Gateway (readonly) server listening on /ip4/0.0.0.0/tcp/9090
Daemon is ready

went to webui:
In explore tab, inserting the hash of a file

After I don't know how much time I waited (I did not count it, but the
response time was ubearable, it was not 5 min at all)

CIDQmVmtcXockAvmA9ZorgksmwK4PiSV4AoRx7KpoLczg2AD9

Size48 B
Links0
Data
Object {type: "file", data: Buffer[40], blockSizes: Array[0]}

type: "file"
data: Buffer[40]
blockSizes: Array[0]

Doing the same with my directory:

CIDQmd2aRaa6rSEkwU95Lk3RGtHp7oBzJyM97oxgTk7ENrVaB
Size261 B
Links2
Data

Object {type: "directory", data: undefined, blockSizes: Array[0]}
type: "directory"

data: undefined
blockSizes: Array[0]

Path
CID 0
audio-input-list3.txt QmVmtcXockAvmA9ZorgksmwK4PiSV4AoRx7KpoLczg2AD9
1 video-input-list3.txt QmTtutKMVDCWtinAC8m1Xft4u4P84uCjPhqJ9amVswCSAe

without problems

But if I go to the files tab, I cannot see the files. I only have the
option of add file, that was what I was trying to write yesterday

https://ipfs.io/ipfs/Qmd2aRaa6rSEkwU95Lk3RGtHp7oBzJyM97oxgTk7ENrVaB
Waits forever ends up with about: blank, it is impossible to see it

in my terminal: ipfs ls QmVmtcXockAvmA9ZorgksmwK4PiSV4AoRx7KpoLczg2AD9
nothing shown

ipfs ls Qmd2aRaa6rSEkwU95Lk3RGtHp7oBzJyM97oxgTk7ENrVaB
(istantly, daemon always running but not in background)
QmVmtcXockAvmA9ZorgksmwK4PiSV4AoRx7KpoLczg2AD9 48 audio-input-list3.txt
QmTtutKMVDCWtinAC8m1Xft4u4P84uCjPhqJ9amVswCSAe 83 video-input-list3.txt

ipfs cat
ipfs: Reading from /dev/stdin; send Ctrl-d to stop.
^C
Error: Post http://127.0.0.1:5001/api/v0/cat?encoding=json&stream-channels=true:
context canceled

Is it OK to share my ipfs id and that hash of my directory so that you
see  my files?

Regards!
Laura

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: IPFS trouble
  2018-12-18 13:07 ` Laura Lazzati
  2018-12-18 15:56   ` Laura Lazzati
@ 2018-12-18 16:02   ` Ricardo Wurmus
  2018-12-18 16:10   ` Hector Sanjuan
  2 siblings, 0 replies; 9+ messages in thread
From: Ricardo Wurmus @ 2018-12-18 16:02 UTC (permalink / raw)
  To: Laura Lazzati; +Cc: guix-devel


Hi Laura,

> Thank you! I will try it. I felt really silly for spending  too much
> time on that. I just want to share my videos so that you can see how
> they are, even they are videos for trying out the video/translation
> tools.

If you have a workflow for building the videos out of source files
(i.e. a Makefile or a shell script), it may be easier to share them.

--
Ricardo

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: IPFS trouble
  2018-12-18 13:07 ` Laura Lazzati
  2018-12-18 15:56   ` Laura Lazzati
  2018-12-18 16:02   ` Ricardo Wurmus
@ 2018-12-18 16:10   ` Hector Sanjuan
  2018-12-19  8:37     ` Pierre Neidhardt
  2018-12-19 15:08     ` Ludovic Courtès
  2 siblings, 2 replies; 9+ messages in thread
From: Hector Sanjuan @ 2018-12-18 16:10 UTC (permalink / raw)
  To: Laura Lazzati; +Cc: guix-devel

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, December 18, 2018 2:07 PM, Laura Lazzati <laura.lazzati.15@gmail.com> wrote:

> On Tue, Dec 18, 2018 at 10:00 AM Björn Höfling
> bjoern.hoefling@bjoernhoefling.de wrote:
>
> > Hi Laura,
> > I'm sending this also to guix-devel [and sorry for the previous, empty,
> > private mail, I was too fast on the sending button].
> > Note: I'm also new to IPFS, so I hope everything is correct here, if
> > someone knows better, please reply.
> > On Tue, 18 Dec 2018 00:04:56 -0300
> > Laura Lazzati laura.lazzati.15@gmail.com wrote:
> >
> > > > A good guide is:
> > > > https://medium.com/textileio/the-definitive-guide-to-publishing-content-on-ipfs-ipns-dfe751f1e8d0.
> >
> > > Sorry, I read the documentation, but I am mixed up.
> > > I have my peer identity, and my /ipfs/hash...
> > > And I find confusing several things:
> > > If I run ipfs add myfile, using my command line, I cannot find myfile
> > > in my node. even the add command returns a hash for that file I guess.
> > > And if I run ipfs ls or cat that hash, the file is shown.
> >
> > I don't get what you mean with "I cannot find my file". Where are you
> > looking for it?
> >
> > > I found useful for instance the webui, but when running ipfs add, my
> > > files don't appear there if I open it and the other way around either:
> > > the files are there if I upload them in the webui, and they have a
> > > hash. I can copy the hash from the webui, but it doesn't work if I run
> > > ipfs ls on that hash. And the files added with ipfs add myfile do not
> > > appear in the webui. The webui however has an option to share your
> > > file, I don't know if that is useful.
> >
> > You have in IPFS file-objects and directory-objects. The command 'ipfs
> > ls' is for listing the contents of directory-objects (i.e. list the
> > files in that directory). If you use it on file-objects (that exit in
> > the store), the command just returns with no output.
> > This works for me:
> > I have the daemon down, i.e. no 'ipfs daemon' started.
> > Then I can still add things to my local IPFS-store:
> >
> >     mkdir baz
> >     echo "foo" > baz/foo.txt
> >     echo "bar" > baz/bar.txt
> >     echo "Hello World, now it is $(date -u -Ins)" > baz/hello.txt
> >     cat baz/hello.txt
> >
> >     Hello World, now it is 2018-12-18T12:08:57,304514914+00:00
> >
> >
> >     ipfs add -r baz/
> >     added QmTz3oc4gdpRMKP2sdGUPZTAGRngqjsi99BPoztyP53JMM baz/bar.txt
> >     added QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6 baz/foo.txt
> >     added QmXXZWRsLhFAHNWW6tH4TJVB2UiUPsUX8TZhYavqTne6RH baz/hello.txt
> >     added QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg baz
> >      67 B / 67 B
> >     [=========================================================] 100.00%
> >
> >
> >     Now I can open the web-browser:
> >
> >     localhost:9090/ipfs/QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6
> >
> >     --> (Note:I changed my port from default 8080 to 9090, on 8080 is
> >     already something listening) Unable to connect, I don't have the daemon
> >     up yet.
> >
> >     https://ipfs.io/ipfs/QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6
> >
> >     --> Shows "foo", as this Hash is already uploaded in the global network
> >     by someone else.
> >
> >     https://ipfs.io/ipfs/QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg
> >
> >     --> That is with the hash of the directory. Times out, this is not found
> >     on the global network.
> >
> >
> >     Starting daemon:
> >
> >     ipfs daemon
> >
> >     Browser:
> >
> >     localhost:5001/webui
> >
> >     Redirects:
> >
> >     http://localhost:5001/ipfs/QmSDgpiHco5yXdyVTfhKxr3aiJ82ynz8V14QcGKicM3rVh/#/
> >
> >     Entering hash of "foo" in the "Explore" tab:
> >
> >     QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6
> >
> >     Finds it, I can view it.
> >
> >     Entering hash of "baz" directory:
> >
> >     http://localhost:9090/ipfs/QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg
> >
> >     Yes, it lists the directory.
> >
> >     Globally available:
> >
> >     https://ipfs.io/ipfs/QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg
> >
> >     I can see the directory structure. And I can see the files foo.txt,
> >     bar.txt and hello.txt listed:
> >     https://ipfs.io/ipfs/QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg/bar.txt
> >
> >
> >     But, the "hello.txt" takes its time to download, until now I still
> >     don't see it:
> >
> >     https://ipfs.io/ipfs/QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg/hello.txt
> >
> >     Probably that's because it first needs to search the network and find
> >     my little local host for that file. Hm. Strange.
> >
> >     Ah, after 5 minutes, it's there! Maybe that's also your problem?
> >
> >     Going to my server, daemon is down by default:
> >
> >     myserver$ ipfs ls QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6
> >     Error: merkledag: not found
> >
> >     myserver$ echo "foo" > foo.txt
> >     myserver$ ipfs add foo.txt
> >     added QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6 foo.txt
> >      4 B / 4 B
> >     [===========================================================] 100.00%
> >     myserver$ ipfs ls QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6
> >     myserver$
> >
> >     (i.e., no error, no output)
> >
> >
> >
> >     myserver$ ipfs daemon &
> >
> >     Looking for the directory:
> >
> >     myserver$ ipfs ls QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg
> >     [Waiting 3 minutes nothing happens, then:]
> >     QmTz3oc4gdpRMKP2sdGUPZTAGRngqjsi99BPoztyP53JMM 12 bar.txt
> >     QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6 12 foo.txt
> >     QmXXZWRsLhFAHNWW6tH4TJVB2UiUPsUX8TZhYavqTne6RH 67 hello.txt
> >
> >     myserver$ ipfs cat
> >     QmZ9iMU1iKRpAs7dR7XTLGaYtkcYFn6EiMXRhqpk5jaeNg/hello.txt Hello World,
> >     now it is 2018-12-18T12:08:57,304514914+00:00
> >
> >     (instantly!)
> >
> >     Hope this helps a bit,
> >
> >     Björn
> >
>
> Thank you! I will try it. I felt really silly for spending too much
> time on that. I just want to share my videos so that you can see how
> they are, even they are videos for trying out the video/translation
> tools. BTW, I edited the libreplanet site, changing some stuff about
> the commands that I faced, and adding comments about why I did so.
> I am not running the daemon in background, since I don't mind having a
> terminal open. I will write back to let you know if it your steps work
> for me :)
>
> Thank you!
>
> Regards,
> Laura


Hi! I just joined this list today after meeting Guix people in Paris and my topic comes up :)

It is not quite obvious that once you add a files to ipfs the standard way to list them is `ipfs pin ls` (`add` automatically pins), and that you only get hashes as the names of the folder/file is lost (unless you wrap it in another folder).

One way around this is to use the `ipfs files` commands, which interact with something we call mfs (memory file system). I think the web UI uses this. This is basically allowing you to interact with IPFS as if it was a regular folder with contents.

For example, you can add your file with `ipfs files write -e /myfile.txt myfile.txt` (or `cat myfile.txt | ipfs files write -e /myfile.txt`). Then you will see it with `ipfs files ls /`. You can create folders (`ipfs files mkdir /abc`) and move things around like in a normal filesystem. Finally, if you want to get the hash of the file, or the folder, in order to share it, you can run
`ipfs files stat <path>` to get it (note that it will change if you modify anything in that folder or file).

The `ipfs files --help` (also for any subcommands) gives more details about all this. Remember to run `ipfs files flush` to store persist your MFS filesystem on disk.


Cheers,

Hector

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: IPFS trouble
  2018-12-18 16:10   ` Hector Sanjuan
@ 2018-12-19  8:37     ` Pierre Neidhardt
  2018-12-19  9:57       ` Gábor Boskovits
  2018-12-19 15:08     ` Ludovic Courtès
  1 sibling, 1 reply; 9+ messages in thread
From: Pierre Neidhardt @ 2018-12-19  8:37 UTC (permalink / raw)
  To: Hector Sanjuan; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 165 bytes --]


> Hi! I just joined this list today after meeting Guix people in Paris and my
> topic comes up :)

Welcome! ;)

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: IPFS trouble
  2018-12-19  8:37     ` Pierre Neidhardt
@ 2018-12-19  9:57       ` Gábor Boskovits
  2018-12-19 15:47         ` swedebugia
  0 siblings, 1 reply; 9+ messages in thread
From: Gábor Boskovits @ 2018-12-19  9:57 UTC (permalink / raw)
  To: guix-devel, Laura Lazzati, Björn Höfling

This works for me now just fine. I have the
QmRwak1NbpvhEVPsfZmofGom7k49aaEhpHWeguXCuF3LSa one, and my daemon
is running.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: IPFS trouble
  2018-12-18 16:10   ` Hector Sanjuan
  2018-12-19  8:37     ` Pierre Neidhardt
@ 2018-12-19 15:08     ` Ludovic Courtès
  1 sibling, 0 replies; 9+ messages in thread
From: Ludovic Courtès @ 2018-12-19 15:08 UTC (permalink / raw)
  To: Hector Sanjuan; +Cc: guix-devel

Hi Héctor,

Hector Sanjuan <code@hector.link> skribis:

> Hi! I just joined this list today after meeting Guix people in Paris
> and my topic comes up :)

Welcome!  Hopefully the topic will come up again soonish.  :-)

Ludo’.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: IPFS trouble
  2018-12-19  9:57       ` Gábor Boskovits
@ 2018-12-19 15:47         ` swedebugia
  0 siblings, 0 replies; 9+ messages in thread
From: swedebugia @ 2018-12-19 15:47 UTC (permalink / raw)
  To: guix-devel

On 2018-12-19 10:57, Gábor Boskovits wrote:
> This works for me now just fine. I have the
> QmRwak1NbpvhEVPsfZmofGom7k49aaEhpHWeguXCuF3LSa one, and my daemon
> is running.

The cat <3 :D

It worked fine here too, loaded in less than a second in palemoon with 
no ipfs installed going to 
https://ipfs.io/ipfs/QmRwak1NbpvhEVPsfZmofGom7k49aaEhpHWeguXCuF3LSa

-- 
Cheers Swedebugia

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-12-19 15:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-18 13:00 IPFS trouble Björn Höfling
2018-12-18 13:07 ` Laura Lazzati
2018-12-18 15:56   ` Laura Lazzati
2018-12-18 16:02   ` Ricardo Wurmus
2018-12-18 16:10   ` Hector Sanjuan
2018-12-19  8:37     ` Pierre Neidhardt
2018-12-19  9:57       ` Gábor Boskovits
2018-12-19 15:47         ` swedebugia
2018-12-19 15:08     ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).