Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

confluence-helloworld-addon: ./ngrok: ????: not found

Steve Hanov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 14, 2018

I am trying to follow the Getting started tutorial.

I am using Ubuntu 18.04. The first problem was that "npm install" failed until I reverted to node version 8.0.

The problem now is that "npm start" fails due to an ngrok issue.

I can run ngrok manually on the machine, but it seems to be using the built-in version installed by npm. If I run it manually, the service is accessible but, because the script already failed, plugin is not automatically registered with the server.

smhanov@atlas:~/confluence-helloworld-addon$ npm start

> helloworld-addon@0.0.1 start /home/smhanov/confluence-helloworld-addon
> node app.js

Watching atlassian-connect.json for changes
Initialized memory storage adapter
Add-on server running at http://atlas:3000
Failed to establish local tunnel
err = Error: ./ngrok: 1: ./ngrok: �����: not found
./ngrok: 2: ./ngrok: Syntax error: word unexpected (expecting ")")

Error: ./ngrok: 1: ./ngrok: �����: not found
./ngrok: 2: ./ngrok: Syntax error: word unexpected (expecting ")")

Error: ./ngrok: 1: ./ngrok: �����: not found
./ngrok: 2: ./ngrok: Syntax error: word unexpected (expecting ")")

    at Socket.<anonymous> (/home/smhanov/confluence-helloworld-addon/node_modules/ngrok/index.js:135:8)
    at emitOne (events.js:115:13)
    at Socket.emit (events.js:210:7)
    at addChunk (_stream_readable.js:250:12)
    at readableAddChunk (_stream_readable.js:237:11)
    at Socket.Readable.push (_stream_readable.js:195:10)
    at Pipe.onread (net.js:586:20)
Unhandled error: Error: ./ngrok: 1: ./ngrok: �����: not found
./ngrok: 2: ./ngrok: Syntax error: word unexpected (expecting ")")

    at Socket.<anonymous> (/home/smhanov/confluence-helloworld-addon/node_modules/ngrok/index.js:135:8)
    at emitOne (events.js:115:13)
    at Socket.emit (events.js:210:7)
    at addChunk (_stream_readable.js:250:12)
    at readableAddChunk (_stream_readable.js:237:11)
    at Socket.Readable.push (_stream_readable.js:195:10)
    at Pipe.onread (net.js:586:20)

1 answer

1 vote
Steve Hanov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 14, 2018

After writing this, I tried reverting to node 4.5.0 as suggested by the tutorial itself, and it suddenly started working!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events