Laverna / laverna

Laverna is a JavaScript note taking application with Markdown editor and encryption support. Consider it like open source alternative to Evernote.
https://laverna.cc/index.html
Mozilla Public License 2.0
9.2k stars 801 forks source link

Dev: Signal server error #undefined #943

Closed daed closed 6 years ago

daed commented 6 years ago

I tried cloning the current dev branch and following the directions for the "developer install".

Everything looks like it is set up and running properly. I can access the "first time" laverna page that asks for a username and signal server.

I put in a username and confirmed the hostname/port and I have a message show up saying "Signal server error #undefined". That leads me to believe the server isn't up, but I see it running.

I notice when I check the ports via nmap that 3000 is closed on localhost but open on my network address:

Wed May 09 20:18:46 brad@wrath:~/code/laverna ] $ nmap -p 3000-3001,9000 localhost
PORT     STATE  SERVICE
3000/tcp closed ppp
3001/tcp open   nessus
9000/tcp open   cslistener

[Wed May 09 20:18:49 brad@wrath:~/code/laverna ] $ nmap -p 3000-3001,9000 192.168.1.3
PORT     STATE SERVICE
3000/tcp open  ppp
3001/tcp open  nessus
9000/tcp open  cslistener

Should it be open on localhost too?

laverna gulp output:

[Wed May 09 15:06:21 brad@icarus:~/code/laverna ] $ gulp
[15:08:53] Using gulpfile ~/code/laverna/gulpfile.js
[15:08:53] Starting 'default'...
[15:08:53] Starting 'build'...
[15:08:53] Starting 'clean:dist'...
[15:08:53] Finished 'clean:dist' after 27 ms
[15:08:53] Starting 'bundle'...
[15:08:53] Starting 'copy'...
[15:08:53] Starting 'css'...
[15:08:53] Starting 'html'...
[15:08:53] Finished 'html' after 370 ms
[15:08:59] Finished 'css' after 5.96 s
[15:09:06] Finished 'bundle' after 14 s
[15:09:06] webpack is watching for changes
[15:09:07] Finished 'copy' after 14 s
[15:09:07] Finished 'build' after 14 s
[15:09:07] Starting 'serve'...
[15:09:07] Finished 'serve' after 26 ms
[15:09:07] Finished 'default' after 14 s
[Browsersync] Access URLs:
 ------------------------------------
       Local: http://localhost:9000
    External: http://192.168.1.3:9000
 ------------------------------------
          UI: http://localhost:3001
 UI External: http://192.168.1.3:3001
 ------------------------------------
[Browsersync] Serving files from: ./dist

Signal server npm output:

[Wed May 09 14:54:27 brad@icarus:~/code/server ] $ npm start

> server@0.0.0 start /home/brad/code/server
> nodemon ./server.js

[nodemon] 1.14.11
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node ./server.js`
  lav:server connecting to mongodb... +0ms
  lav:server Server started on port 3000 +33ms
daed commented 6 years ago

Nevermind, I answered my own question and feel pretty dumb.

The initial laverna page defaults to "http://localhost:3000" for the signal server. I just got done saying that 3000 was not open on localhost. That would totally do it. Changed it to my ip and it worked.