Failed to start Spreed WebRTC server

After install spreedme I cannot press “Generate Spreed WebRTC config”.

Step 3) i: of this manual: nextcloud-spreedme/README.md at master ¡ strukturag/nextcloud-spreedme ¡ GitHub

Any idea?

Same with the button “Show advanced settings”

“Save settings” results into a blank page.

1 Like

What’s happens if you click the Generate Spreed WebRTC config button?
Please enable Nextcloud’s debug mode (i.e. add 'debug' => true, to the Nextcloud config/config.php), open your browser’s developer console and paste its output here.

  • Set ‘debug’ => true,
  • Restarted apache
  • Opened Firefox Console
  • Pressed “Generate Spreed WebRTC config”
  • Nothing happened:

Did you check folder permissions? After setting strong folder permissions your http-user might not be able to write the config file anymore. Read here about that: https://docs.nextcloud.com/server/11/admin_manual/maintenance/update.html#setting-permissions-for-updating

Hi my webrtc/spreed.me stuff runs fine… i have done the config manually and not with the app…so you get also a “OwnCloudConfig.js”.
It is a great video guide at this site https://nextcloud.com/webrtc/ …just scroll a bit down… at the end of video there ist the way to go to generate the config manually. The Guide works very well from a-z :wink:

What u need starts at 8:59 but maybe u should looking the part of server configuration to…because of shared secrets etc…

this should help you
regards

Have you checked the Nextcloud and/or web server error log?

I don’t know why, but now pressing “Generate …” is working.

Followed the manual above:

  • Installed SpreedWebRTC from repositories
  • Replaced content of /etc/spreed/webrtc.conf with the result of Admin-Page
  • Configured Apache
  • Restarted services spreed-webrtc and apache2

Get this error when calling the app:

The Admin-Page is still showing me this:

Nextcloud log, level Info. Apache mismatch configuration!?!?

“service spreed-webrts start” in syslog:

Dec 26 11:29:52 owncloud systemd[1]: Stopped Spreed WebRTC server.
Dec 26 11:29:56 owncloud systemd[1]: Started Spreed WebRTC server.
Dec 26 11:29:56 owncloud systemd[1]: spreed-webrtc.service: Main process exited, code=exited, status=255/n/a
Dec 26 11:29:56 owncloud systemd[1]: spreed-webrtc.service: Unit entered failed state.
Dec 26 11:29:56 owncloud systemd[1]: spreed-webrtc.service: Failed with result ‘exit-code’.
Dec 26 11:29:56 owncloud systemd[1]: spreed-webrtc.service: Service hold-off time over, scheduling restart.
Dec 26 11:29:56 owncloud systemd[1]: Stopped Spreed WebRTC server.
Dec 26 11:29:56 owncloud systemd[1]: Started Spreed WebRTC server.
Dec 26 11:29:56 owncloud systemd[1]: spreed-webrtc.service: Main process exited, code=exited, status=255/n/a
Dec 26 11:29:56 owncloud systemd[1]: spreed-webrtc.service: Unit entered failed state.
Dec 26 11:29:56 owncloud systemd[1]: spreed-webrtc.service: Failed with result ‘exit-code’.
Dec 26 11:29:56 owncloud systemd[1]: spreed-webrtc.service: Service hold-off time over, scheduling restart.
Dec 26 11:29:56 owncloud systemd[1]: Stopped Spreed WebRTC server.
Dec 26 11:29:56 owncloud systemd[1]: Started Spreed WebRTC server.
Dec 26 11:29:56 owncloud systemd[1]: spreed-webrtc.service: Main process exited, code=exited, status=255/n/a
Dec 26 11:29:56 owncloud systemd[1]: spreed-webrtc.service: Unit entered failed state.
Dec 26 11:29:56 owncloud systemd[1]: spreed-webrtc.service: Failed with result ‘exit-code’.
Dec 26 11:29:57 owncloud systemd[1]: spreed-webrtc.service: Service hold-off time over, scheduling restart.
Dec 26 11:29:57 owncloud systemd[1]: Stopped Spreed WebRTC server.
Dec 26 11:29:57 owncloud systemd[1]: Started Spreed WebRTC server.
Dec 26 11:29:57 owncloud systemd[1]: spreed-webrtc.service: Main process exited, code=exited, status=255/n/a
Dec 26 11:29:57 owncloud systemd[1]: spreed-webrtc.service: Unit entered failed state.
Dec 26 11:29:57 owncloud systemd[1]: spreed-webrtc.service: Failed with result ‘exit-code’.
Dec 26 11:29:57 owncloud systemd[1]: spreed-webrtc.service: Service hold-off time over, scheduling restart.
Dec 26 11:29:57 owncloud systemd[1]: Stopped Spreed WebRTC server.
Dec 26 11:29:57 owncloud systemd[1]: Started Spreed WebRTC server.
Dec 26 11:29:57 owncloud systemd[1]: spreed-webrtc.service: Main process exited, code=exited, status=255/n/a
Dec 26 11:29:57 owncloud systemd[1]: spreed-webrtc.service: Unit entered failed state.
Dec 26 11:29:57 owncloud systemd[1]: spreed-webrtc.service: Failed with result ‘exit-code’.
Dec 26 11:29:57 owncloud systemd[1]: spreed-webrtc.service: Service hold-off time over, scheduling restart.
Dec 26 11:29:57 owncloud systemd[1]: Stopped Spreed WebRTC server.
Dec 26 11:29:57 owncloud systemd[1]: spreed-webrtc.service: Start request repeated too quickly.
Dec 26 11:29:57 owncloud systemd[1]: Failed to start Spreed WebRTC server.

tail -f /var/log/spreed/webrtc/server.log

server 2016/12/26 11:29:56 Unable to find client. Path correct and compiled css?
server 2016/12/26 11:29:56 Unable to find client. Path correct and compiled css?
server 2016/12/26 11:29:56 Unable to find client. Path correct and compiled css?
server 2016/12/26 11:29:57 Unable to find client. Path correct and compiled css?
server 2016/12/26 11:29:57 Unable to find client. Path correct and compiled css?

These both folders are still empty. Is this correct?

ll /var/www/nextcloud/apps/spreedme/config/
total 12
drwxr-xr-x  2 www-data www-data 4096 Dec 26 00:55 ./
drwxr-xr-x 18 www-data www-data 4096 Dec 26 00:55 ../
-rw-r--r--  1 www-data www-data 1978 Dec 26 00:55 config.php.in


ll /var/www/nextcloud/apps/spreedme/extra/static/config/
total 12
drwxr-xr-x 2 www-data www-data 4096 Dec 26 00:55 ./
drwxr-xr-x 5 www-data www-data 4096 Dec 26 00:55 ../
-rw-r--r-- 1 www-data www-data  830 Dec 26 00:55 OwnCloudConfig.js.in

Actual Spreed.ME config in Admin-Page:

Have u ever watched the video wich i posted and / or following the video guide step by step, so that u generate the config manually ?

Thanks @nitroese.

I think the only different is that I used Ubuntu repositories. You downloaded and compiled manually from github?

No way:

service spreed-webrtc restart

results into

server 2016/12/26 14:55:25 Unable to find client. Path correct and compiled css?

:tired_face:

$ sudo systemctl status spreed-webrtc

● spreed-webrtc.service - Spreed WebRTC server
   Loaded: loaded (/lib/systemd/system/spreed-webrtc.service; enabled; vendor preset: enabled)
   Active: inactive (dead) (Result: exit-code) since Mon 2016-12-26 15:22:44 CET; 36min ago
  Process: 33533 ExecStart=/usr/sbin/spreed-webrtc-server -c ${WEBRTC_CONF} -l ${WEBRTC_LOG} ${WEBRTC_ARGS} (code=e
 Main PID: 33533 (code=exited, status=255)

Dec 26 15:22:44 owncloud systemd[1]: spreed-webrtc.service: Unit entered failed state.
Dec 26 15:22:44 owncloud systemd[1]: spreed-webrtc.service: Failed with result 'exit-code'.
Dec 26 15:22:44 owncloud systemd[1]: spreed-webrtc.service: Service hold-off time over, scheduling restart.
Dec 26 15:22:44 owncloud systemd[1]: Stopped Spreed WebRTC server.
Dec 26 15:22:44 owncloud systemd[1]: spreed-webrtc.service: Start request repeated too quickly.
Dec 26 15:22:44 owncloud systemd[1]: Failed to start Spreed WebRTC server.

OMG … got it:

In /etc/spreed/webrtc.conf I had to add this to **http** section:

root = /usr/share/spreed-webrtc-server/www/

If installed from repositories for Ubuntu seems to be mandatory.

@spreed.me developers: Please add this to your documentation / installation scripts!!!

Found solution here: https://github.com/strukturag/spreed-webrtc/issues/383#issuecomment-257289125

PS: I’m using the stable repositories:

$ sudo apt-add-repository ppa:strukturag/spreed-webrtc
$ sudo apt-get update
$ sudo apt-get install spreed-webrtc
1 Like

Hi Nitrosee, I am also unable to configure Spreed.ME on my linux shared server. Except this everything is working fine on NC 13 version.

error details

config/config.php was not found. We will use the Nextcloud database to read/write config values.

You can change them here:
A new SPREED_WEBRTC_CONFIG was generated.
Simply remove everything from your current server.conf and paste the new config in instead.
Restart Spreed WebRTC afterwards.

; Minimal Spreed WebRTC configuration for Nextcloud

[http]
listen = 127.0.0.1:8080
basePath =
;root = /usr/share/spreed-webrtc-server/www

Pls help me in this regards

Here is a complete installation guide:
https://www.allerstorfer.at/install-spreed-me-on-nextcloud/