Sync problems, White screen or not responding, high resource consumption

This post is related to application problems and ways of fixing or gathering data for development team.


1 Like

I see white screen and nothing happens

Mac, Linux

  • Stop application if it’s running.
  • Can you please start Terminal. In Spotlight you can type “Terminal”
  • Run this command in the command prompt (please correct the location of Anytype app): ANYTYPE_LOG_LEVEL = "* = DEBUG" /Applications/Anytype.app/Contents/MacOS/Anytype
  • Use CTRL(CMD)-A and CTRL(CMD)-C to copy logs from the terminal and send it to the team support@anytype.io

Windows

  • Stop application if it’s running.
  • Can you please start Terminal. In Search you can type “CMD”
  • Run this command in the command prompt (please correct the location of Anytype app)
  • set "ANYTYPE_LOG_LEVEL=*=DEBUG" && start C:\Users\Administrator\AppData\Local\Programs\anytype2\Anytype.exe
  • Do the stuff in Anytype that cause a problem
  • Use CTRL(CMD)-A and CTRL(CMD)-C to copy logs from the terminal and send it to the team support@anytype.io

You may experience a crash like this:

It means problem is 100% is in our side and it will be enough to share this crashlog in order us to fix it

If there is no crash, we need to also check if we have some errors in the JS console

  • Please open the app’s path that is shown in Status (press bottom-left question mark → Status)
    For Linux path can be /home/<userName>/.config/anytype2/
    For macOs path can be /Users/<userName>/Library/Application\ Support/anytype2
  • Open devconfig.json and set this data there. If there is no one, you can create new one:

{"allowDebug":true,"debug":{"mw":true,"ho":false}}

  • Start the app
  • Open app system menu.
  • Open. Debug menu, from where I could open devtool
  • Press cmd + option + I to see the debug menu with developer tools & open console in MacOS
  • Press Alt+Ctrl+I / Shift + CTRL + J to see the debug menu with developer tools & open console in Windows/Linux

It means problem is 100% is in our side and it will be enough to share this crashlog with support@anytype.io in order us to fix it.

There can be problem with opening particular page. To fix that you need to

  • Open developer tools.
    • Go to Application tab → Local Storage → localhost:8080 →
    • delete the pageId at the right and restart the app

Application works, but lack of responding, high resource consumption

Mac, Linux

  1. Stop application if it’s running.
  2. Can you please start Terminal. In Spotlight you can type “Terminal”
  3. Ran the application through the terminal with this command (please correct the location of Anytype app if needed): ANYTYPE_LOG_LEVEL="*=DEBUG" ANYPROF=:6060 /Applications/Anytype.app/Contents/MacOS/Anytype
  4. Use Anytype until you notice a higher consumption of resources
    1. Open http://127.0.0.1:6060/debug/pprof/heap if it consumes more RAM as usual. It’s important to send us data only if you see unusually high consumption of resources
    2. Open http://127.0.0.1:6060/debug/pprof/profile if it consumes more CPU as usual. It will take 30sec to work. It’s important to send us data only if you see unusually high consumption of resources
    3. Open http://127.0.0.1:6060/debug/pprof/goroutine?debug=1 if it turned into whitescreen or lack of responding
  5. Use CTRL(CMD)-A and CTRL(CMD)-C to copy data from the browser and send it to the team or just send the automatically generated file

Windows

  1. Stop application if it’s running.
  2. Can you please start Terminal. In Search you can type “CMD”
  3. Ran the application through the terminal with this command (please correct the location of Anytype app if needed): set "ANYTYPE_LOG_LEVEL=*=DEBUG" && set "ANYPROF=:6060" && start C:\Users\Administrator\AppData\Local\Programs\anytype2\Anytype.exe
  4. Use Anytype until you notice a higher consumption of resources
    1. Open http://127.0.0.1:6060/debug/pprof/heap if it consumes more RAM as usual. It’s important to send us data only if you see unusually high consumption of resources
    2. Open http://127.0.0.1:6060/debug/pprof/profile](http://127.0.0.1:6060/debug/pprof/profile) if it consumes more CPU as usual. It will take 30sec to work. It’s important to send us data only if you see unusually high consumption of resources
    3. Open http://127.0.0.1:6060/debug/pprof/goroutine?debug=1 if it turned into whitescreen or stop working
  5. Use CTRL(CMD)-A and CTRL(CMD)-C to copy data from the browser and send it to the team or just send the automatically generated file
1 Like

Sync issues

  • Do you have any apps restricting network? Firewall, Traffic-blockers, Proxies? Sometimes apps like Kaspersky are installed on a corporate device and can restrict the network. You can check if some ports from 49152 to 65535 are open and try restarting the app several times. A free port is issued by the system, it is random but remembered and the next time we try to use it.
  • If app has no restrictions to work, you need to press a special button «Object diagnostics» under Anytype system menu for debug.

  • Get the AnytypeID

  • Send them to support@anytype.io
  • Do you have any apps restricting network? Firewall, Traffic-blockers, Rights for execution?

Restart the app with repo removal

Your data is safe and stored locally, but sometimes a floating bug prevents app from starting or managing the data.

So you need can try copying your /anytype2/data folder in another place, delete the original one and sync all your data from the server and another devices. Just sign in into application with your mnemonic code and wait until app will sync.

1 Like

Common errors

can’t run service ‘ipfs’: failed to listen on any addresses: [listen tcp4 0.0.0.0:63437: bind: An attempt was made to access a socket in a way forbidden by its access permissions.]

  • It might happen if some ports are closed for running application on them. System or some application can prevent app from starting. Providing less strict restrictions for Anytype should solve the problem

can’t run service ‘ipfs’: failed to listen on any addresses: [listen tcp4 0.0.0.0:43321: bind: address already in use]

  • It might happen if you opened 2 Anytype apps at the same type. It’s possible to use only one instance at the same time now. Close the app, kill all Anytype processes in monitor or restarting the device should solve the problem.

Can’t check available updates, please try again later. Error: net::ERR_CERT_AUTHORITY_INVALID / Error: net::ERR_NAME_NOT_RESOLVED

  • It can be caused by use of apps like NextDNS which blocks ADs and tracking can intercept certain traffic. So switching to 8.8.8.8 at the OS level for DNS will went the problem away.
  • It might happen if you work under restricted WIFI network, so changing the network will solve the problem
  • It can happen due to server’s certificate update or other server maintenance.
1 Like