OpenMarine
Black screen - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: Bug Reports (https://forum.openmarine.net/forumdisplay.php?fid=4)
+--- Thread: Black screen (/showthread.php?tid=1596)

Pages: 1 2


Black screen - cepicscepics - 2018-12-02

Hi, I was trying to instal MQTT plugin in SignalK,
the dashboard gave me an error and the server told me "restart required".
I tryed to restart only the server but the error still there, so I rebooted the pi, and on startup, no icons on the desktop,
so I rebooted again and, on new startup, the screen is Black on hdmi monitor and on vnc viewer..... but with mouse.

right click on the black screen I can open a terminal window ...

RPI 3B
OP 1.2.0
MCP2515
wireless mouse

Code:
pi@openplotter:~ $ openplotter
Could not stat /dev/ttyOP_ap: No such file or directory
Failed to initialize Interface ap
Could not stat /dev/ttyOP_gpsfix: No such file or directory
Failed to initialize Interface gpsfix
Could not stat /dev/ttyOP_wind: No such file or directory
Failed to initialize Interface wind
Warning: Stopping signalk.service, but it can still be activated by:
 signalk.socket

Tnks


RE: Black screen - e-sailing - 2018-12-02

You can disable signalk by:
sudo systemctl disable signalk.service
sudo systemctl disable signalk.socket
sudo reboot
If system restarts open a terminal
cd /usr/lib/node-module/signalk-server
npm start
Now it should show you the error.


RE: Black screen - cepicscepics - 2018-12-05

(2018-12-02, 09:49 PM)e-sailing Wrote: You can disable signalk by:
sudo systemctl disable signalk.service
sudo systemctl disable signalk.socket
sudo reboot
If system restarts open a terminal
cd /usr/lib/node-module/signalk-server
npm start
Now it should show you the error.

Code:
pi@openplotter:~ $ sudo systemctl disable signalk.service
Removed /etc/systemd/system/multi-user.target.wants/signalk.service.
pi@openplotter:~ $ sudo systemctl disable signalk.socket
Removed /etc/systemd/system/sockets.target.wants/signalk.socket.
pi@openplotter:~ $ sudo reboot

and then:

Code:
pi@openplotter:~ $ cd /usr/lib/node-module/signalk-server
bash: cd: /usr/lib/node-module/signalk-server: No such file or directory
pi@openplotter:~ $ npm start
npm ERR! path /home/pi/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2018-12-05T11_28_47_009Z-debug.log
pi@openplotter:~ $


sudo nano /home/pi/.npm/_logs/2018-12-05T11_28_47_009Z-debug.log


Code:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using npm@6.4.1
3 info using node@v8.12.0
4 verbose config Skipping project config: /home/pi/.npmrc. (matches userconfig)
5 verbose stack Error: ENOENT: no such file or directory, open '/home/pi/packag$
6 verbose cwd /home/pi
7 verbose Linux 4.14.79-v7+
8 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
9 verbose node v8.12.0
10 verbose npm  v6.4.1
11 error path /home/pi/package.json
12 error code ENOENT
13 error errno -2
14 error syscall open
15 error enoent ENOENT: no such file or directory, open '/home/pi/package.json'
16 error enoent This is related to npm not being able to find a file.
17 verbose exit [ -2, true ]

always black screen.......

tnks


Black screen - tkurki - 2018-12-05

I can not think of a way that SK server causes a black screen. It is most probably something else.

Anything in syslog?


Sent from my iPhone using Tapatalk


RE: Black screen - e-sailing - 2018-12-05

(2018-12-05, 12:38 PM)cepicscepics Wrote:
Code:
pi@openplotter:~ $ cd /usr/lib/node-module/signalk-server
bash: cd: /usr/lib/node-module/signalk-server: No such file or directory
pi@openplotter:~ $ npm start
npm ERR! path /home/pi/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2018-12-05T11_28_47_009Z-debug.log
pi@openplotter:~ $
Sorry wrong path
cd /usr/lib/node-module/signalk-server
it should be
cd /usr/lib/node_modules/signalk-server

try again

btw: Are you sure that your raspberry pi works with another sd card?


RE: Black screen - cepicscepics - 2018-12-05

(2018-12-05, 06:24 PM)tkurki Wrote: I can not think of a way that SK server causes a black screen. It is most probably something else.

Anything in syslog?


Sent from my iPhone using Tapatalk

I think the output of
sudo nano /var/log/syslog
is too long to post here!!!

Smile Smile

(2018-12-05, 09:01 PM)e-sailing Wrote:
(2018-12-05, 12:38 PM)cepicscepics Wrote:
Code:
pi@openplotter:~ $ cd /usr/lib/node-module/signalk-server
bash: cd: /usr/lib/node-module/signalk-server: No such file or directory
pi@openplotter:~ $ npm start
npm ERR! path /home/pi/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2018-12-05T11_28_47_009Z-debug.log
pi@openplotter:~ $
Sorry wrong path
cd /usr/lib/node-module/signalk-server
it should be
cd /usr/lib/node_modules/signalk-server

try again

btw: Are you sure that your raspberry pi works with another sd card?

the new output:

Code:
pi@openplotter:~ $ cd /usr/lib/node_modules/signalk-server
pi@openplotter:/usr/lib/node_modules/signalk-server $ npm start

> signalk-server@1.7.0 start /usr/lib/node_modules/signalk-server
> node bin/signalk-server

Using default configuration path: /home/pi/.signalk
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
events.js:183
     throw er; // Unhandled 'error' event
     ^

Error: listen EADDRINUSE :::10110
   at Server.setupListenHandle [as _listen2] (net.js:1360:14)
   at listenInCluster (net.js:1401:12)
   at Server.listen (net.js:1485:7)
   at Object.api.start (/usr/lib/node_modules/signalk-server/lib/interfaces/nmea-tcp.js:57:12)
   at /usr/lib/node_modules/signalk-server/lib/index.js:325:60
   at /usr/lib/node_modules/signalk-server/node_modules/lodash/lodash.js:4911:15
   at Function.forIn (/usr/lib/node_modules/signalk-server/node_modules/lodash/lodash.js:12951:11)
   at startInterfaces (/usr/lib/node_modules/signalk-server/lib/index.js:311:5)
   at /usr/lib/node_modules/signalk-server/lib/index.js:224:7
   at createServer (/usr/lib/node_modules/signalk-server/lib/index.js:274:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! signalk-server@1.7.0 start: `node bin/signalk-server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the signalk-server@1.7.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2018-12-05T20_41_31_627Z-debug.log

tnks


RE: Black screen - e-sailing - 2018-12-05

When Signal K is already running you got this error.
You disabled Signal K but it is running after reboot. I don't know why.


RE: Black screen - cepicscepics - 2018-12-06

(2018-12-05, 11:43 PM)e-sailing Wrote: When Signal K is already running you got this error.
You disabled Signal K but it is running after reboot. I don't know why.

sorry I was missing the first command!!

Code:
sudo systemctl disable signalk.service
sudo systemctl disable signalk.socket
sudo reboot

and then:

Code:
pi@openplotter:~ $ cd /usr/lib/node_modules/signalk-server
pi@openplotter:/usr/lib/node_modules/signalk-server $ npm start

> signalk-server@1.7.0 start /usr/lib/node_modules/signalk-server
> node bin/signalk-server

Using default configuration path: /home/pi/.signalk
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
signalk-server running at 0.0.0.0:3000
tnks


RE: Black screen - cepicscepics - 2018-12-06

Hi all, I realize now I'm booting in openbox......

How can I boot back to "normal" openplotter??


RE: Black screen - cepicscepics - 2018-12-06

can I follow this instruction to boot back to "normal" OpenPlotter??

or I have to start again from flashing sd card?? Undecided Undecided