Rise Player won't autostart on Raspberry Pi?

  • 1
  • Problem
  • Updated 4 years ago
  • Solved
Hi!
I just bought my first Raspberry Pi B+ to use for Digital Signage.
I followed the Rise Vision Raspberry Pi Player Optimization Guide and got the player to work.
The only thing that's not working is the autostart. Every time i Reboot it won't open again.
I searched the internet but didn't really find a solution for it.

I even tried to add the RisePlayer.jar to the autostart (sudo leafpad /etc/xdg/lxsession/LXDE/autostart &)

But that did not work? Any clues of what I might do to fix the autostart?

Thanks in advance!
/Simon
Photo of Go Screen

Go Screen

  • 172 Points 100 badge 2x thumb

Posted 4 years ago

  • 1
Photo of Neal

Neal

  • 61,252 Points 50k badge 2x thumb
Simon,

If you were to look at the installer.log, chromium.log and RisePlayer.log files within the /rvplayer folder, is there any indication as to why the Player wouldn't start?  Also, after a reboot, are you seeing any java processes running?

Thanks.
Photo of Go Screen

Go Screen

  • 172 Points 100 badge 2x thumb
Thanks for your reply!I don't really know what to look for. Here are the logs.
I don't see any javascript running - at least that I know of :)

Installer.log
HOME=/root
USER=root
SUDO_USER=pi
SUDO_HOME=/root
USER_HOME=/home/pi
Rise Vision Player Installer ver.2.2.0030rsp.1 running with User root
reset CLAIM_ID
Package openjdk-7-jre is already installed
Default Java Version is 1.7
Package libvpx1 required by chromium is already installed
Package libspeex1 required by chromium is already installed
Package at is already installed
Checking for updates...
https://rvaserver2.appspot.com/v2/player/components?os=rsp&id=EWDRMMKRQMAX
--2014-11-22 15:21:39--  https://rvaserver2.appspot.com/v2/player/components?os=rsp&id=EWDRMMKRQMAX
Resolving rvaserver2.appspot.com (rvaserver2.appspot.com)... 64.233.165.141, 2a00:1450:4010:c08::8d
Connecting to rvaserver2.appspot.com (rvaserver2.appspot.com)|64.233.165.141|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: `STDOUT'


     0K                                                        1.11M=0s


2014-11-22 15:21:47 (1.11 MB/s) - written to stdout [485]


PlayerVersion=2.0.036.rsp.1
PlayerURL=http://storage.googleapis.com/raspbian-production/player/RisePlayer_Rsp_1.zip
InstallerVersion=2.2.0030rsp.1
InstallerURL=https://rvaserver2.appspot.com/player/download?os=rsp
BrowserVersion=22.0.1229.94
BrowserURL=http://storage.googleapis.com/raspbian-production/chromium/chrome-linux-raspbian-22.0.1229.94.zip
CacheVersion=1.0.009.rsp.1
CacheURL=http://storage.googleapis.com/raspbian-production/cache/RiseCache_Rsp_1.zip
JavaVersion=
JavaURL=
Installer is up to date.
Closing Chromium and clearing its cache...
RisePlayer is up to date.
RiseCache is up to date.
chrome: no process found
no Chromiums to kill
ownership of `/usr/lib/chromium/chromium-sandbox' retained as root:root
mode of `/usr/lib/chromium/chromium-sandbox' changed from 0755 (rwxr-xr-x) to 4755 (rwsr-xr-x)
no crontab for pi
warning: commands will be executed using /bin/sh
job 7 at Sat Nov 22 15:22:00 2014
Starting Rise Vision Player...
warning: commands will be executed using /bin/sh
job 8 at Sat Nov 22 15:22:00 2014

Chromium.log
[1:1:171491632916:ERROR:nss_util.cc(692)] Failed to load NSS libraries.[8535:8535:171494648041:ERROR:browser_main_loop.cc(165)] GLib-GObject: Attempt to add property GtkSettings::gtk-label-select-on-focus after class was initialised
[8535:8535:171494684903:ERROR:browser_main_loop.cc(165)] GLib-GObject: Attempt to add property GtkSettings::gtk-entry-select-on-focus after class was initialised
[8535:8535:171494689463:ERROR:browser_main_loop.cc(165)] GLib-GObject: Attempt to add property GtkSettings::gtk-entry-password-hint-timeout after class was initialised
[8535:8535:171495260702:ERROR:browser_main_loop.cc(165)] GLib-GObject: Attempt to add property GtkSettings::gtk-menu-bar-popup-delay after class was initialised
[8535:8535:171495266282:ERROR:browser_main_loop.cc(165)] GLib-GObject: Attempt to add property GtkSettings::gtk-can-change-accels after class was initialised
[8535:8535:171495267256:ERROR:browser_main_loop.cc(165)] GLib-GObject: Attempt to add property GtkSettings::gtk-menu-popup-delay after class was initialised
[8535:8535:171495306627:ERROR:browser_main_loop.cc(165)] GLib-GObject: Attempt to add property GtkSettings::gtk-menu-popdown-delay after class was initialised
[8535:8535:171495556648:ERROR:browser_main_loop.cc(165)] GLib-GObject: Attempt to add property GtkSettings::gtk-button-images after class was initialised
[8535:8535:171495972961:ERROR:browser_main_loop.cc(165)] GLib-GObject: Attempt to add property GtkSettings::gtk-menu-images after class was initialised
[4:4:171496601748:ERROR:nss_util.cc(452)] Error initializing NSS without a persistent database: libsoftokn3.so: cannot open shared object file: Permission denied
failed to create drawable
[8573:8573:171501302854:ERROR:gl_surface_glx.cc(276)] glXCreatePbuffer failed.
[8573:8573:171501303932:ERROR:gpu_info_collector.cc(25)] gfx::GLContext::CreateOffscreenGLSurface failed
[8535:8535:171502882348:ERROR:notification_promo.cc(239)] Malformed JSON: not ntp_notification_promo

Riseplayer.log
Nov 22 02:59:58.526 INFO: ***** RisePlayer version 2.0.036.rsp.1 *****Nov 22 02:59:58.823 INFO: Loading application properties...
Nov 22 02:59:58.846 INFO: Loading display properties...
Nov 22 02:59:59.190 INFO: Exec: [bash, -c, '/home/pi/rvplayer/chrome-linux/chrome' --kiosk --no-default-browser-check --noerrdialogs --no-message-box --disable-desktop-notifications --allow-running-insecure-content --always-authorize-plugins --allow-outdated-plugins --user-data-dir='/root/.config/rvplayer' --disk-cache-dir='/root/.cache/rvplayer' --ppapi-flash-path='/home/pi/rvplayer/chrome-linux/libflashplayer.so' 'http://rvashow.appspot.com/Viewer.html?type=display&player=true&id=&claimId=&sysinfo...' > '/home/pi/rvplayer/chromium.log' 2>&1]
Nov 22 02:59:59.425 INFO: Server started
Nov 22 03:01:13.834 INFO: Exec: [killall, chrome]
Nov 22 03:01:16.004 INFO: Exec: [bash, -c, '/home/pi/rvplayer/chrome-linux/chrome' --kiosk --no-default-browser-check --noerrdialogs --no-message-box --disable-desktop-notifications --allow-running-insecure-content --always-authorize-plugins --allow-outdated-plugins --user-data-dir='/root/.config/rvplayer' --disk-cache-dir='/root/.cache/rvplayer' --ppapi-flash-path='/home/pi/rvplayer/chrome-linux/libflashplayer.so' 'http://rvashow.appspot.com/Viewer.html?type=display&player=true&id=EWDRMMKRQMAX&claimId=...' > '/home/pi/rvplayer/chromium.log' 2>&1]
Nov 22 03:01:32.695 INFO: restart_required received
Nov 22 03:01:32.754 INFO: Exec: [bash, -c, /home/pi/rvplayer/rvplayer /S /C > /home/pi/rvplayer/installer.log  2>&1 &]
Nov 22 03:02:00.707 INFO: shutdown command received
Nov 22 03:02:00.726 INFO: Exec: [killall, chrome]
Nov 22 03:02:21.516 INFO: ***** RisePlayer version 2.0.036.rsp.1 *****
Nov 22 03:02:21.751 INFO: Loading application properties...
Nov 22 03:02:21.775 INFO: Loading display properties...
Nov 22 03:02:22.142 INFO: Exec: [bash, -c, '/home/pi/rvplayer/chrome-linux/chrome' --kiosk --no-default-browser-check --noerrdialogs --no-message-box --disable-desktop-notifications --allow-running-insecure-content --always-authorize-plugins --allow-outdated-plugins --user-data-dir='/root/.config/rvplayer' --disk-cache-dir='/root/.cache/rvplayer' --ppapi-flash-path='/home/pi/rvplayer/chrome-linux/libflashplayer.so' 'http://rvashow.appspot.com/Viewer.html?type=display&player=true&id=EWDRMMKRQMAX&claimId=...' > '/home/pi/rvplayer/chromium.log' 2>&1]
Nov 22 03:02:22.384 INFO: Server started
Nov 22 03:21:36.135 INFO: restart_required received
Nov 22 03:21:36.157 INFO: Exec: [bash, -c, /home/pi/rvplayer/rvplayer /S /C > /home/pi/rvplayer/installer.log  2>&1 &]
Nov 22 03:21:51.510 INFO: shutdown command received
Nov 22 03:21:51.527 INFO: Exec: [killall, chrome]
Nov 22 03:22:12.145 INFO: ***** RisePlayer version 2.0.036.rsp.1 *****
Nov 22 03:22:12.428 INFO: Loading application properties...
Nov 22 03:22:12.449 INFO: Loading display properties...
Nov 22 03:22:12.799 INFO: Exec: [bash, -c, '/home/pi/rvplayer/chrome-linux/chrome' --kiosk --no-default-browser-check --noerrdialogs --no-message-box --disable-desktop-notifications --allow-running-insecure-content --always-authorize-plugins --allow-outdated-plugins --user-data-dir='/root/.config/rvplayer' --disk-cache-dir='/root/.cache/rvplayer' --ppapi-flash-path='/home/pi/rvplayer/chrome-linux/libflashplayer.so' 'http://rvashow.appspot.com/Viewer.html?type=display&player=true&id=EWDRMMKRQMAX&claimId=...' > '/home/pi/rvplayer/chromium.log' 2>&1]
Nov 22 03:22:13.037 INFO: Server started
Nov 22 03:23:29.434 INFO: reboot_required received
Nov 22 03:23:29.458 INFO: Exec: [shutdown, -r, 0]
Nov 22 03:38:00.713 INFO: ***** RisePlayer version 2.0.036.rsp.1 *****
Nov 22 03:38:00.898 INFO: Loading application properties...
Nov 22 03:38:00.926 INFO: Loading display properties...
Nov 22 03:38:01.326 INFO: Exec: [bash, -c, '/home/pi/rvplayer/chrome-linux/chrome' --kiosk --no-default-browser-check --noerrdialogs --no-message-box --disable-desktop-notifications --allow-running-insecure-content --always-authorize-plugins --allow-outdated-plugins --user-data-dir='/home/pi/.config/rvplayer' --disk-cache-dir='/home/pi/.cache/rvplayer' --ppapi-flash-path='/home/pi/rvplayer/chrome-linux/libflashplayer.so' 'http://rvashow.appspot.com/Viewer.html?type=display&player=true&id=EWDRMMKRQMAX&claimId=...' > '/home/pi/rvplayer/chromium.log' 2>&1]
Nov 22 03:38:01.738 INFO: Server started
Nov 22 03:42:01.198 INFO: Exec: [killall, chrome]
Nov 22 03:42:03.385 INFO: Exec: [bash, -c, '/home/pi/rvplayer/chrome-linux/chrome' --kiosk --no-default-browser-check --noerrdialogs --no-message-box --disable-desktop-notifications --allow-running-insecure-content --always-authorize-plugins --allow-outdated-plugins --user-data-dir='/home/pi/.config/rvplayer' --disk-cache-dir='/home/pi/.cache/rvplayer' --ppapi-flash-path='/home/pi/rvplayer/chrome-linux/libflashplayer.so' 'http://rvashow.appspot.com/Viewer.html?type=display&player=true&id=EWDRMMKRQMAX&claimId=...' > '/home/pi/rvplayer/chromium.log' 2>&1]
Nov 22 03:50:32.093 INFO: ***** RisePlayer version 2.0.036.rsp.1 *****
Nov 22 03:50:32.270 INFO: Loading application properties...
Nov 22 03:50:32.295 INFO: Loading display properties...
Nov 22 03:50:32.660 INFO: Exec: [bash, -c, '/home/pi/rvplayer/chrome-linux/chrome' --kiosk --no-default-browser-check --noerrdialogs --no-message-box --disable-desktop-notifications --allow-running-insecure-content --always-authorize-plugins --allow-outdated-plugins --user-data-dir='/home/pi/.config/rvplayer' --disk-cache-dir='/home/pi/.cache/rvplayer' --ppapi-flash-path='/home/pi/rvplayer/chrome-linux/libflashplayer.so' 'http://rvashow.appspot.com/Viewer.html?type=display&player=true&id=EWDRMMKRQMAX&claimId=...' > '/home/pi/rvplayer/chromium.log' 2>&1]
Nov 22 03:50:32.989 INFO: Server started
Nov 24 03:25:33.307 INFO: Exec: [killall, chrome]
Nov 24 03:25:35.465 INFO: Exec: [bash, -c, '/home/pi/rvplayer/chrome-linux/chrome' --kiosk --no-default-browser-check --noerrdialogs --no-message-box --disable-desktop-notifications --allow-running-insecure-content --always-authorize-plugins --allow-outdated-plugins --user-data-dir='/home/pi/.config/rvplayer' --disk-cache-dir='/home/pi/.cache/rvplayer' --ppapi-flash-path='/home/pi/rvplayer/chrome-linux/libflashplayer.so' 'http://rvashow.appspot.com/Viewer.html?type=display&player=true&id=EWDRMMKRQMAX&claimId=...' > '/home/pi/rvplayer/chromium.log' 2>&1]
Photo of Neal

Neal

  • 61,252 Points 50k badge 2x thumb
Thanks.

I'm not seeing anything jump out regarding a reason for the Player not to run.

Can you try clearing the following folders of their content:
/home/pi/.config/rvplayer
/root/.config/rvplayer
/root/.cache/rvplayer
The last two you'll need to do with sudo access.

Is there anything else installed on this Pi besides the Rise Player?
Photo of Go Screen

Go Screen

  • 172 Points 100 badge 2x thumb
I removed the files of the folders using:
rm -r /root/.config/rvplayer/Was that correct?
Only the standard Raspbian apps. I installed Noobs on the microSD and then I followed your guide for installation. When I restarted now the rvplayer won't run.

Can I add it to an autostart or should I do a clean install of noobs and rvplayer?
Photo of Neal

Neal

  • 61,252 Points 50k badge 2x thumb
You can try adding it to an autostart to see if that will correct it for you.

Other than that, I'm not seeing anything that would prevent the Player from starting automatically.  Its possible that there's something in the operating system that's preventing it and a clean install will correct that.

Thanks
Photo of Go Screen

Go Screen

  • 172 Points 100 badge 2x thumb
Okay, thanks. I tried adding it like this to the autostart file but it won't work.
@/home/pi/rvplayer/RisePlayer.jar

Autostart-file: /etc/xdg/lxsession/LXDE/autostart

Is that totally wrong?
Photo of Neal

Neal

  • 61,252 Points 50k badge 2x thumb
I have a question with a developer to verify the startup location that is used for the Pi.  I can tell you that there's nothing in that file you provide on my Pi that would start up the Rise Player.
Photo of Go Screen

Go Screen

  • 172 Points 100 badge 2x thumb
Okay. I did a clean install using this method: https://community.risevision.com/rise_vision_inc/topics/working_raspberry_pi_installer
Autostart works great but now the screensaver starts. I have xscreensaver and followed all the steps off your guide. A new challenge to overcome :)
Thanks for your help
Photo of Neal

Neal

  • 61,252 Points 50k badge 2x thumb
This page goes over a couple of different methods to shut off the screensaver, can you try one of those methods and let us know which one works for you? 

Thanks.