Hi everyone,
I used IPNS for a test http site. I followed the procedure to the letter but I couldn’t see what I posted by peerID. Procedure followed:
1 folder, 3 files:
QmP4B8UcMEVS3k59RfqJzVs6P34YzqzBZfKtpuMhg4S4d1 about.html
QmQ7BL7ZaTrmRGwDcjStvJBWMwLy2jMbs6GToWXwuhxdxe index.html
QmW8U3NEHx3p73Nj9645sGnGa8XzR43rQh3Kd52UKncWMo moon-logo.png
multi-page-first-step-sei QmasX2GTukoj2ELU1EPGRbN9wz5XSuNJWdGJh39NUa1bGG
ipfs name publish -k multi-page-first-step-sei QmasX2GTukoj2ELU1EPGRbN9wz5XSuNJWdGJh39NUa1bGG
Published to k2k4r8l09ci1zwg516fnjjd9o431e8dswh1c0z84rm1j6a2f082hy35n: /ipfs/QmasX2GTukoj2ELU1EPGRbN9wz5XSuNJWdGJh39NUa1bGG
I try to view the website…
(https://ipfs.io/ipns/k2k4r8l09ci1zwg516fnjjd9o431e8dswh1c0z84rm1j6a2f082hy35n)
…nothing. It finds nothing. Where am I wrong?
Works for me…
> ~ ipfs ls /ipns/k2k4r8l09ci1zwg516fnjjd9o431e8dswh1c0z84rm1j6a2f082hy35n
QmP4B8UcMEVS3k59RfqJzVs6P34YzqzBZfKtpuMhg4S4d1 899 about.html
QmQ7BL7ZaTrmRGwDcjStvJBWMwLy2jMbs6GToWXwuhxdxe 4064 index.html
QmW8U3NEHx3p73Nj9645sGnGa8XzR43rQh3Kd52UKncWMo 8003 moon-logo.png
Thank you for answering me.
But can you see the site using a browser?
I mean if you enter the peerID in a browser, k2k4r8l09ci1zwg516fnjjd9o431e8dswh1c0z84rm1j6a2f082hy35n can you see anything?
Yep, I get the random planet facts website
What could be the reason that I can’t see the site on the browser? What other IPNS gateways exist besides “https://ipfs.io/ipns/”, can you give me any others?
Locally, running “ipfs ls” works on the browser and gives me nothing.
> ~ ipfs ls /ipns/k2k4r8l09ci1zwg516fnjjd9o431e8dswh1c0z84rm1j6a2f082hy35n
QmP4B8UcMEVS3k59RfqJzVs6P34YzqzBZfKtpuMhg4S4d1 899 about.html
QmQ7BL7ZaTrmRGwDcjStvJBWMwLy2jMbs6GToWXwuhxdxe 4064 index.html
QmW8U3NEHx3p73Nj9645sGnGa8XzR43rQh3Kd52UKncWMo 8003 moon-logo.png
First, make sure your node is running when you try accessing your content through a gateway (your node is what is serving that content).
Next, make sure your node is reachable and the content is discoverable. Use this to check:
IPFS Check
Next, use a gateway you trust (ipfs.io isn’t very good anymore because it sees far more traffic than it can handle). Here are a couple that I trust (and I just tested your site on both successfully):
https://4everland.io
https://cf-ipfs.com
And finally, here is a site that lists many gateways:
1 Like
OK thank you. With the gateways you gave me it finally worked. But isn’t it a bit absurd that only 2 IPNS gateways work?
Anyway thanks, I can continue my tests with IPNS.