shocknet / Wizard

Cross-Platform desktop Installer for a Lightning Page equipped node.
https://Lightning.Page
Other
3 stars 5 forks source link

Wizard not starting API server #23

Closed HashEngineering closed 4 years ago

HashEngineering commented 4 years ago

Prerequisites

This was not built from source, but used this binary: https://github.com/shocknet/Wizard/releases/download/v0.0.46/ShockWizard-Setup-0.0.46.exe

Expected Behavior

Using the app built from source at https://github.com/shocknet/wallet, the expected behavior is that the app would connect after scanning the QR code from the Wizard after it finishes syncing on Bitcoin Mainnet using neutrino.

Current Behavior

The app does not connect to the server on the local machine and there are no programs on the local machine listing to port 9835 (linux and windows).

[2020-03-27 12:43:12.241] [info] C:\Users\HashEngineering\AppData\Local\Programs\ShockWizard\resources\app.asar\app
[2020-03-27 12:43:14.793] [info] setProgress: lnd { downloadedBlockHeightsLength: null, downloadedBlocks: null }
[2020-03-27 12:43:14.815] [info] setProgress: bitcoind { progress: null }
[2020-03-27 12:43:14.994] [info] setupCompleted {
  preventDefault: [Function: preventDefault],
  sender: WebContents {
    webContents: [Circular],
    history: [
      'file:///C:/Users/HashEngineering/AppData/Local/Programs/ShockWizard/resources/app.asar/app/app.html#/'
    ],
    currentIndex: 0,
    pendingIndex: -1,
    inPageIndex: -1,
    _events: [Object: null prototype] {
      'navigation-entry-commited': [Function],
      '-ipc-message': [Function],
      '-ipc-message-sync': [Function],
      'pepper-context-menu': [Function],
      'desktop-capturer-get-sources': [Function],
      'remote-require': [Function],
      'remote-get-global': [Function],
      'remote-get-builtin': [Function],
      'remote-get-current-window': [Function],
      'remote-get-current-web-contents': [Function],
      'remote-get-guest-web-contents': [Function],
      crashed: [Function],
      '-did-get-response-details': [Function],
      '-did-get-redirect-request': [Function],
      'devtools-reload-page': [Function],
      '-new-window': [Function],
      '-add-new-contents': [Function],
      'will-navigate': [Function],
      'did-navigate': [Function],
      destroyed: [Function],
      'devtools-opened': [Function],
      move: [Function],
      activate: [Function],
      'page-title-updated': [Function],
      'did-finish-load': [AsyncFunction],
      'render-view-deleted': [Function: listener]
    },
    _eventsCount: 26,
    _maxListeners: 0,
    browserWindowOptions: { show: false, frame: false, webPreferences: [Object] }
  },
  frameId: 1,
  reply: [Function]
} null
[2020-03-27 12:43:17.017] [info] nextStep 1 false
[2020-03-27 12:43:17.046] [info] networkType testnet
[2020-03-27 12:43:18.332] [info] nextStep 2 false
[2020-03-27 12:43:18.365] [info] networkType testnet
[2020-03-27 12:43:18.382] [info] lndType neutrino
[2020-03-27 12:43:19.232] [info] nextStep 3 true
[2020-03-27 12:43:19.243] [info] 3
[2020-03-27 12:43:19.253] [info] Lnd Type neutrino
[2020-03-27 12:43:19.273] [info] lndType neutrino
[2020-03-27 12:43:19.286] [info] networkUrl faucet.lightning.community
[2020-03-27 12:43:20.267] [info] nextStep 4 false
[2020-03-27 12:43:20.285] [info] networkUrl faucet.lightning.community
[2020-03-27 12:43:27.412] [info] nextStep 5 false
[2020-03-27 12:43:27.481] [info] autoStartup yes
[2020-03-27 12:43:27.514] [info] externalIP 172.112.35.108
[2020-03-27 12:43:45.906] [info] nextStep 6 false
[2020-03-27 12:43:45.914] [info] Step 6
[2020-03-27 12:43:45.926] [info] loadingServer true neutrino
[2020-03-27 12:43:45.937] [info] Running LND...
[2020-03-27 12:43:46.006] [info] externalIP 172.112.35.108
[2020-03-27 12:43:46.020] [info] walletPort 9835
[2020-03-27 12:43:46.033] [info] lightningPort 9735
[2020-03-27 12:43:46.045] [info] Downloading LND...
[2020-03-27 12:43:46.062] [info] Folder Path: null C:\Users\HashEngineering\AppData\Roaming\ShockWizard\executables C:\Users\HashEngineering\AppData\Roaming\ShockWizard
[2020-03-27 12:43:46.071] [info] LND doesn't exist
[2020-03-27 12:43:46.090] [info] Folder Path: null C:\Users\HashEngineering\AppData\Roaming\ShockWizard\executables C:\Users\HashEngineering\AppData\Roaming\ShockWizard
[2020-03-27 12:43:46.101] [info] File Location: C:\Users\HashEngineering\AppData\Roaming\ShockWizard\executables\lnd-windows-amd64-v0.8.2-beta.zip
[2020-03-27 12:43:46.112] [info] Downloaded File Name: lnd-windows-amd64-v0.8.2-beta.zip
[2020-03-27 12:43:46.126] [info] Creating new folders: C:\Users\HashEngineering\AppData\Roaming\ShockWizard\executables
[2020-03-27 12:43:46.144] [info] Release Link: https://github.com/lightningnetwork/lnd/releases/download/v0.8.2-beta/lnd-windows-amd64-v0.8.2-beta.zip
[2020-03-27 12:43:46.340] [info] internalIP 192.168.1.102
[2020-03-27 12:43:46.356] [info] externalIP 172.112.35.108
[2020-03-27 12:43:47.421] [info] loadingServer true neutrino
[2020-03-27 12:43:47.582] [info] loadingServer true neutrino
...
[2020-03-27 12:43:49.425] [info] loadingServer true neutrino
[2020-03-27 12:43:49.449] [info] loadingServer true neutrino
[2020-03-27 12:43:49.471] [info] false
[2020-03-27 12:43:49.487] [info] C:\Users\HashEngineering\AppData\Roaming\ShockWizard\executables\lnd-windows-amd64-v0.8.2-beta.zip C:\Users\HashEngineering\AppData\Roaming\ShockWizard\executables\lnd-windows-amd64-v0.8.2-beta C:\Users\HashEngineering\AppData\Roaming\ShockWizard\executables
[2020-03-27 12:43:50.317] [info] Folder Path: null C:\Users\HashEngineering\AppData\Roaming\ShockWizard\executables C:\Users\HashEngineering\AppData\Roaming\ShockWizard
[2020-03-27 12:43:50.402] [info] Folder Path: null C:\Users\HashEngineering\AppData\Roaming\ShockWizard\executables C:\Users\HashEngineering\AppData\Roaming\ShockWizard
[2020-03-27 12:43:50.419] [info] Folder Path: null C:\Users\HashEngineering\AppData\Roaming\ShockWizard\executables C:\Users\HashEngineering\AppData\Roaming\ShockWizard
[2020-03-27 12:43:50.535] [info] LND PID: 19628
[2020-03-27 12:43:50.567] [info] Startup Enabled: true
[2020-03-27 12:43:50.579] [info] Running Bitcoind...
[2020-03-27 12:43:50.591] [info] lndType neutrino
[2020-03-27 12:43:50.602] [info] Server is no longer loading!
[2020-03-27 12:43:50.614] [info] loadingServer false neutrino
[2020-03-27 12:43:50.657] [info] setProgress: lnd { downloadedBlockHeightsLength: null, downloadedBlocks: null }
[2020-03-27 12:43:50.673] [info] loadingServer false neutrino
[2020-03-27 12:43:50.687] [info] setProgress: lnd { downloadedBlockHeightsLength: null, downloadedBlocks: null }
...
[2020-03-27 13:01:30.593] [info] setProgress: lnd { downloadedBlockHeightsLength: 623219, downloadedBlocks: 612001 }
[2020-03-27 13:01:30.632] [info] loadingServer false neutrino
[2020-03-27 13:01:30.669] [info] loadingServer false neutrino
[2020-03-27 13:01:30.734] [info] setProgress: lnd { downloadedBlockHeightsLength: 623219, downloadedBlocks: 612001 }
[2020-03-27 13:01:30.770] [info] loadingServer false neutrino
[2020-03-27 13:01:30.807] [info] loadingServer false neutrino
[2020-03-27 13:01:31.588] [info] setProgress: lnd { downloadedBlockHeightsLength: 623219, downloadedBlocks: 612001 }
[2020-03-27 13:01:31.621] [info] loadingServer false neutrino
[2020-03-27 13:01:31.655] [info] loadingServer false neutrino
[2020-03-27 13:01:31.689] [info] setProgress: lnd { downloadedBlockHeightsLength: 623219, downloadedBlocks: 612001 }
[2020-03-27 13:01:31.724] [info] loadingServer false neutrino
[2020-03-27 13:01:31.758] [info] loadingServer false neutrino
[2020-03-27 13:01:31.794] [info] setProgress: lnd { downloadedBlockHeightsLength: 623219, downloadedBlocks: 612001 }
[2020-03-27 13:01:31.829] [info] loadingServer false neutrino
[2020-03-27 13:01:31.864] [info] loadingServer false neutrino
[2020-03-27 13:01:31.912] [info] Folder Path: null C:\Users\HashEngineering\AppData\Roaming\ShockWizard\executables C:\Users\HashEngineering\AppData\Roaming\ShockWizard
[2020-03-27 13:01:31.946] [info] ShockAPI Macaroon Path: C:\Users\HashEngineering\AppData\Roaming\ShockWizard\executables\lnd\data/chain/bitcoin/mainnet/admin.macaroon
[2020-03-27 13:01:32.415] [info] setProgress: lnd { downloadedBlockHeightsLength: 623219, downloadedBlocks: 623219 }
[2020-03-27 13:01:32.465] [info] loadingServer false neutrino
[2020-03-27 13:01:32.591] [info] loadingServer false neutrino

It seems like after the line "ShockAPI Macaroon Path" there should be a log comment about the API coming online, but there isn't once and there is not an error either.

Steps to Reproduce (for bugs)

  1. Install the release binary and go through the wizard (neutrino, mainnet)

  2. See what programs are listing for 9835

Context

I am forking this software for another coin and ran into the above problem. After this, I tried to run the code unmodified using the release builds for this project.

Your Environment

shocknet-justin commented 4 years ago

replicated in my windows env, looks like proto update broke api... new build processing

HashEngineering commented 4 years ago

Thank you for the fix. v0.0.47 has resolve this issue.