question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enabling IPNS pubsub via daemon flags

See original GitHub issue

OS: Windows 10 Home 21H1 - build 19043.985 IPFS Desktop 0.15.0

  • agent: go-ipfs v0.8.0
  • UI: v2.12.2

Bug description Cannot enable IPNS pubsub with --enable-namesys-pubsub daemon flag. Flag is added as noted in Which flags does IPFS Desktop boot with? .

The GUI (cube) flashes 2-3 times and then continues as nothing happened. Desired feature is still disabled - using ipfs name pubsub state . File config.json automatically resets to default configuration.

To Reproduce The flag --enable-namesys-pubsub is added to a file C:\Users\<user>\AppData\Roaming\IPFS Desktop\config.json . It doesn’t matter in which position it is added. It only causes a more severe logdump if it is added directly after flag --routing .

Command failed with exit code 1: C:\Users\<user>\AppData\Local\Programs\IPFS Desktop\resources\app.asar.unpacked\node_modules\go-ipfs\go-ipfs\ipfs.exe daemon --migrate --enable-gc --routing --enable-namesys-pubsub dhtclient
Error: expected 0 argument(s), got 1

Expected behavior I am not sure what the expected behavior is, probablly the feature being enabled. I am trying to get familiar with IPNS PubSub atm.

Logs Faulty log

2021-06-02T19:31:46.657Z info: [meta] logs can be found on C:\Users\<user>\AppData\Roaming\IPFS Desktop
2021-06-02T19:31:48.226Z info: [web ui] window ready
2021-06-02T19:31:48.226Z info: [web ui] navigate to /
2021-06-02T19:31:48.242Z info: [tray] starting
2021-06-02T19:31:48.459Z info: [tray] started
2021-06-02T19:31:48.460Z info: [ipfsd] start daemon STARTED
2021-06-02T19:31:48.947Z info: [daemon] removing api file
2021-06-02T19:31:49.899Z info: [ipfsd] start daemon FINISHED 1.4393155000004918s
2021-06-02T19:31:50.047Z info: [automatic gc] enabled
2021-06-02T19:31:50.048Z info: [pubsub] disabled
2021-06-02T19:31:50.060Z info: [ipfsd] stop daemon STARTED
2021-06-02T19:31:50.120Z info: [ipns over pubsub] disabled
2021-06-02T19:31:50.126Z info: [ipfs on path] no action taken
2021-06-02T19:31:50.126Z info: [launch on startup] disabled
2021-06-02T19:31:50.149Z info: [ipfsd] stop daemon FINISHED 0.08913480000011623s
2021-06-02T19:31:50.215Z info: [ipfsd] start daemon STARTED
2021-06-02T19:31:50.350Z info: [daemon] removing api file
2021-06-02T19:31:51.239Z info: [ipfsd] start daemon FINISHED 1.0239555999990553s
2021-06-02T19:31:52.582Z info: [updater] update not available
2021-06-02T19:33:42.005Z info: [ipfsd] stop daemon STARTED

Additional context I am exploring a distributed app idea. Users would periodically upload/make available some data via IPFS. Service would use IPNS to log/retrieve the latest submission. IPNS PubSub would be used to notify the service of new IPNS mapping. For now, users would use IPFS Desktop as their gateway, since it provides a nice GUI, makes IPFS more familiar to them. Later go-ipfs daemon could be included in a seperate executable. As noted in the documentation both the users and the service provider need to have the IPNS PubSub enabled in order for it to work as intended.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
andrasfuchscommented, Jun 9, 2021

I’m just a regular user and I’m not too familiar with CLI flags or IPFS on Linux, sorry!

1reaction
andrasfuchscommented, Jun 9, 2021

I might be misunderstand your request, but isn’t this option available in the Tray Icon / Settings / Experiments menu?

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enable pubsub by default · Issue #6621 · ipfs/kubo - GitHub
Enabled that will allow power users to disable pubsub if necessary (done: feat: enabling pubsub and ipns-pubsub via config flags #8510)
Read more >
PubSub enabled by default - HackMD
As of this writing pubsub is considered experimental and is disabled in go-ipfs. Can be enabled by starting a daemon with --enable-pubsub-experiment flag....
Read more >
Kubo command-line - IPFS Docs
Online mode is when you have IPFS running separately as a daemon process. ... --enable-namesys-pubsub bool - Enable IPNS over pubsub.
Read more >
Pubsub between two nodes in IPFS - Stack Overflow
If you need to use it as API with the ipfs daemon you can use the ... have pubsub enabled, so chances your...
Read more >
Best practices for IPFS builders
ipfs config --json Ipns.UsePubsub true ipfs daemon. From this point on, IPNS will be resolved using both the pubsub and the DHT.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found