-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue publishing from IPFessay (Solved) #9
Comments
Hi @danrobi11 ! Thanks for reporting the issue. I'll try to explain the best i can the reason why it fails to publish even though you have the http gateway set as writable. Hardbin, and possibly IPFessay in a similar way, looks at the JS window.location attribute to determine that the content was loaded from a local IPFS gateway:
In the early versions galacteek used only the dweb URL scheme, which was going through the IPFS HTTP gateway. Now the ipfs and dweb schemes have a custom scheme handler implementation which bypasses the HTTP gateway (this is not a definitive implementation). This means that when you're browsing ipfs://cidv1, window.location.hostname will equal cidv1. IMOO IPFS apps shouldn't rely on window.location but that's another topic. In the mean time to make IPFessay publish work you should use the IPFS gateway directly, using this URL for example: http://localhost:8080/ipfs/bafybeigkiow75e3lquowuqnb43e5plwtnukborq5xa3kmqzjwcpbqg6tne/ (this is the latest IPFessay version) Next release will bring a fix for this particular issue, sorry for the inconvenience. |
Thank you @pinnaculum for great explaination and support. |
You're welcome! I have to thank you in return, fixing this issue gave me some ideas on the hashmarks/bookmarks system, next release should bring many improvements in that regard. You should use pyramids (which appear in the right-side toolbar) (add a 'Basic', generic pyramid). A pyramid has a single IPNS address associated to it. Drag-and-dropping content from the filemanager will associate the IPNS address of the pyramid with this content. That way you only have one address to communicate. IPFessay's good for publishing a simple document in Markdown, i don't know exactly what you're publishing, but it would probably be easier to edit the content locally, import it and push it to a pyramid. Good luck. |
Ok thx! I added the file in new created pyramide. |
Never had any issue with copying any pyramid's IPNS address. When you drag-and-drop something on it it will immediately associate it and publish the IPNS key (the pyramid's icon will appear blue). You should wait for the publishing to be finished before copying the address. Because the IPNS path is copied to the clipboard, it will appear in the clipboard manager. Do you see the IPNS key in the tooltip when hovering over the pyramid ? Is the pyramidion (latest item) empty or not ? MX Linux looks like a great distro ! |
Ok figured the clipboard. Save only in Galacteek app.
|
In a normal browser, you'd access it by going through a public IPFS gateway like ipfs.io: https://ipfs.io/ipns/Qmbhe... |
Ok got error here |
Ok my bad. Because clipboard only save in Galacteek app, I had to manually copy the address so I made a mistake in the URL. |
Your IPNS key is 45 characters long while it should be 46 characters long ;) Just to clarify: on Linux systems, galacteek will save to the primary Xorg clipboard (xclip -o -selection primary or third-button mouse click will show you its contents) when selecting Copy .. to clipboard in the UI. Regarding your firewall configuration, as suggested here, you should consider port-forwarding the swarm TCP port which by default is port 4001, and only that port. I do not know if it will fix any issues you may have with the IPNS publishing/resolving. Take care. |
Very sry for the trouble. Working now :) Thank you very much for the support. |
No worries, glad it worked. Was the IPNS issue resolved after port-forwarding the swarm port ? Right now there is no access to the pyramid's stack history from the UI but there will soon be. What you can do however is to pop items off the pyramid (so it removes the latest item in the pyramid and makes the previous one in the stack the current item, the pyramidion) to cancel the last operation. With the Image gallery pyramids you can rewind the DAG that the pyramid is built on. |
I finally figured how to manage to add the IPNS URL in OS clipboard, just a bit too late ;) |
Right now hashmarks and pyramids data are kept in a JSON file with this path:
main is the name of the application profile this is the default one which you probably use. If you're migrating from an OS/user to another you should backup the whole directory and configuration files:
Next versions will probably use an ORM-backed sqlite db for many things including the hashmarks database. |
Ok perfect im saving this. Thank you! |
@danrobi11 when the next AppImage is released i could use your help in testing the new features |
@pinnaculum Absolutely! |
@danrobi11 Thank you very much! I'll ping you with the details when it's ready for testing. |
Hello. I see alot of activities 👍 |
Hi @danrobi11, Thanks for your input, that helps! This software is still very much work-in-progress, don't expect much, but it's fun :) The editor is really basic and is mostly meant to be used to edit plain text and markdown files. The pyramids system was conceived as a way to easily publish content from the filemanager to a single IPNS address and nothing more, later i realized that with IPFS raw DAGs it could be easy to build things like an image gallery and keep track of the DAG's history in the pyramid stack. Obviously more work is needed on this part, any ideas are welcome. I've pushed an update that changes the hashmarks storage system, most things are now stored in an sqlite database. Hashmarks can now be tagged (both @planet#tag and #tag formats work) and can be synchronized from git repositories, this makes it potentially easy for people to contribute and grow the hashmarks database. Hashmarking ENS dwebsites is supported. The first hashmarks The issue with IPFessay and Hardbin is fixed, by default these two apps are accessed using the dwebgw URL scheme, which uses the IPFS gateway. Also you can now hashmark the pyramid's IPNS key. Because the software's stack has changed quite a lot in the process things need to be tested so that would be great to have some feedback, especially on hashmarks, tagging system, blogging, pyramids ... You can download this test release here. You should use a new profile to test it probably, using --profile profilename. Thanks a lot. |
There will be another AppImage available shortly which will use go-ipfs 0.5.0 and allow usage of base32 CIDs with the *ipns:// URL scheme. Repository migration will be automatic. |
@pinnaculum |
Oh i see what you mean, i'll think about the best way to improve the pyramid/editor interaction. I'm running galacteek with go-ipfs 0.5.0 now it's quite smooth, automatic repository migration works. I'll ping you with the link to the new AppImage when it's ready for testing. |
Got a problem: ipfs/ipfs-desktop#1475 |
I've never used ipfs-desktop but i just downloaded the ipfs-desktop AppImage now it's great. If ipfs-desktop cannot start the ipfs daemon and you've configured galacteek to use this daemon then this won't work. Galacteek is meant to be used with go-ipfs. I can start ipfs-dekstop without any problem and use galacteek with it. The only issue is that by default ipfs-desktop doesn't enable pubsub it seems and some things in galacteek rely on pubsub. In the meantime this prerelease works with go-ipfs 0.5.0. If you use a new galacteek profile, it will start a daemon by default. You can run it for example with:
|
Ok since I fixed the ipfs-desktop issue now galacteek working with it. |
Nice ! Things that need to be tested :
No need to test all that, it's just things to keep in mind. Problems will definitely arise .. I've changed the way the editor works and you can now load anything (like a whole directory) in the editor and it'll be way more convenient to push things to a pyramid from the editor. That's one of the last things to work on before making a proper release. Thanks again, take care. |
Oh boy. Galacteek is bigger than I thought. |
I'd rather keep documentation in a central place and at the moment it's the manual, which needs some updates and additions but a wiki could be nice ! |
Yes absolutely your manual is a really good feature. You could also add the manual in wiki |
Hello
I really like the IPFessay feature very neat user-friendly way for new comers to create and publish their website (if that works)
Everytime im trying to publish from IPFessay I have same error:
'There was an error communicating with the IPFS gateway API.
Please ensure the daemon is running, and that it is in writable mode.'
I have this error if im running the IPFS-GO desktop or not, I have same error.
IPFS-GO desktop set to: "Writable": true
Why is this happening?
The text was updated successfully, but these errors were encountered: