Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live broken after git pull from today #4775

Closed
morbificagent opened this issue Mar 23, 2021 · 35 comments
Closed

Live broken after git pull from today #4775

morbificagent opened this issue Mar 23, 2021 · 35 comments
Labels

Comments

@morbificagent
Copy link

After your changes on the live part today this is very broken for me.

Onpublish.php and the other once dont work anymore:

Screenshot_20210323-193404_Chrome.jpg

Screenshot_20210323-190958_Chrome.jpg

Screenshot_20210323-191027_Chrome.jpg

Screenshot_20210323-193535_Chrome.jpg

@morbificagent
Copy link
Author

As result the stream only shows offline :-(

@011248163264
Copy link

seems like this one
#4773

@011248163264
Copy link

011248163264 commented Mar 23, 2021

i have the same after the meeting livestream is startet the stream is not showing on the startpage
the same with obs livestreaming

@morbificagent
Copy link
Author

In my case its showing on the start page but only with a big OFFLINE picture.
When i click on it rhe stream is playing fine but the big OFFLINE Image doesnt go away, no preview pictures are extracted, and so i think like the errormessages indicates:

All onpublish.php etc scipts which are called from nginx for the stream arent working with the updated version of the live part from today...

@DanielnetoDotCom help?

@011248163264
Copy link

try to clear the cache

@morbificagent
Copy link
Author

Done already... And restarted apache and nginx... Nope

@DanielnetoDotCom
Copy link
Member

Seems to me your socket is not working

@morbificagent
Copy link
Author

Its up and running:

image

image

have restarted the socket plugin and the server.php but makes no difference

@morbificagent
Copy link
Author

Here everything in one screenshot.

  • server.php is running on :2053 and looks fine
  • Website/Socket-plugin says "Connected"
  • And the errormessage in the log when starting a stream

image

BTW the chat2 via the socket is running fine too... so its really working

@karlkunc
Copy link

I also did the git pull, and I just tested the live stream and it is working. I tested from my mobile android browser to a pc. I have not tested the app.

@morbificagent
Copy link
Author

while the socket-errors filling my logs this is what happens on the Website:

Even if my log shows these onpublish.php/socketConnect-errors the site is informed about a starting stream somehow.
OK, its shown as OFFLINE again...hm...:

image

when i reload the page now all information about the running stream is gone:

image

@011248163264
Copy link

i have make ap git pull now, no differrence
avideo.error.log:
[Tue Mar 23 23:50:55.771517 2021] [php7:error] [pid 16287] [client :54810] script '/var/www/AVideo/plugin/Live/droplive.json.php' not found or unable to stat, referer: https://*/meet/191/011235-media-danmarkvaagner

@011248163264
Copy link

[23-Mar-2021 22:51:02 Europe/Dublin] PHP Fatal error: Uncaught Error: Call to undefined method LiveTransmitionHistory::isAdaptive() in path/to/my/streamer/site/plugin/Live/Objects/LiveTransmitionHistory.php:131

@morbificagent
Copy link
Author

Clearing the cache "first site cache" helps for a moment as the Stream is shown online after that.
But i have to do this all the time manually after starting a stream.

So as you said in another thread the "on_publish etc.. -files" are doing a cache clean normally and my log shows errors with these files i have to repeat my guess:

Something with these files or the things they try to do is wrong

@morbificagent
Copy link
Author

For reminding (and as we know the socket is up and running, and displays connected):

image

@milehighkaraoke
Copy link

do a git pull again mine was doing the same thing. most recent Git Pull Fixed it.

@morbificagent
Copy link
Author

image

@milehighkaraoke
Copy link

Ok, Dan will look at this for you.....

@morbificagent
Copy link
Author

Eventually this is part of the problem!?
image

When i start to stream nginx logs an error that he couldnt open the .m3u8 from that stream.
But if i do a cat on this it works without problems and i can request it from external via browser too...

@011248163264
Copy link

011248163264 commented Mar 24, 2021

When i start to stream nginx logs an error that he couldnt open the .m3u8 from that stream.

same here

@DanielnetoDotCom
Copy link
Member

@morbificagent I just notice, are you using a nonsecure socket?

If your site is HTTPS you MUST use the secure one, so make sure it is unchecked
image

regarding it could not open, it always tries to access your server thru the public domain, you can try to add this into your hosts file and point it directly to 127.0.0.1

https://websiteforstudents.com/how-to-edit-the-local-hosts-file-on-ubuntu-18-04-16-04/

@morbificagent
Copy link
Author

image

Its all https in my config...

@morbificagent
Copy link
Author

and as it listens on 0.0.0.0, the certs are used properly and i can connect to it via my avideo https website i cant find any problem.

image

@morbificagent
Copy link
Author

Only the nginx calls for on_publish etc. are http because nginx doesnt can use https here:

image

@peterflitz
Copy link

Only the nginx calls for on_publish etc. are http because nginx doesnt can use https here:

image

did you also test with your server ip?

@morbificagent
Copy link
Author

morbificagent commented Mar 24, 2021

No i didnt because my nginx-config is hostheader-based. So it needs the FQDN of the server to route the request to the right site...

But i have verified that these URLs are accessable from internal and they are ok.

@011248163264
Copy link

Thats my nginx, why you have on_publish_done ?

on_publish http://localhost/plugin/Live/on_publish.php;
on_play http://localhost/plugin/Live/on_play.php;
on_record_done http://localhost/plugin/Live/on_record_done.php;

@morbificagent
Copy link
Author

The howto from Daniel is outdated i think.
At some points he said we should use this:

#4713 (comment)

@morbificagent
Copy link
Author

morbificagent commented Mar 24, 2021

Found out an interesting part:

My Site is serverd by https and by http because it was nessesary for the on_publish.php's in nginx.

As i was playing and searching for the problem with the disappearing livestreams i mentiond that this seams only be a problem on the https-version of my site.
If i use the http version the problem isnt there!!!

@DanielnetoDotCom
Copy link
Member

Hi,

Regarding the notification, I got a customer with a similar problem, and I could look directly into his server.
I am pretty sure it is fixed now, please update and try again.

@morbificagent
Copy link
Author

Hallelujah...... Its working!

Daniel, thank you for your hard work!

@011248163264
Copy link

hm i have updatete the notification to 2.2 and make a git pull, så i am live but the message on the startpage are not shown

@011248163264
Copy link

so i can see the message 2sec also under the streaming puldown.

@011248163264
Copy link

[25-Mar-2021 11:17:08 Europe/Dublin] AVideoLog::DEBUG: Video:clearCache(528) SCRIPT_NAME: /objects/aVideoEncoder.json.php

[25-Mar-2021 11:17:08 Europe/Dublin] AVideoLog::DEBUG: Video:clearCacheFromFilename(EmptyTitleon25Mar21121404_YPTuniqid_605c70edc68780.51556706_360.mp4) SCRIPT_NAME: /objects/aVideoEncoder.json.php

[25-Mar-2021 11:17:08 Europe/Dublin] AVideoLog::DEBUG: NGINX Live::on_publish_socket_notification end SCRIPT_NAME: path/to/my/streamer/site/plugin/Live/on_publish_socket_notification.php

[25-Mar-2021 11:17:08 Europe/Dublin] AVideoLog::DEBUG: decideMoveUploadedToVideos: destinationFile path/to/my/streamer/site/videos/EmptyTitleon25Mar21121404_YPTuniqid_605c70edc68780.51556706_360.mp4 filesize=3088577 (2.95MB) SCRIPT_NAME: /objects/aVideoEncoder.json.php

[25-Mar-2021 11:17:08 Europe/Dublin] AVideoLog::DEBUG: NGINX Live::on_publish_socket_notification SocketMessageToAll END SCRIPT_NAME: path/to/my/streamer/site/plugin/Live/on_publish_socket_notification.php

[25-Mar-2021 11:17:08 Europe/Dublin] AVideoLog::ERROR: sendSocketMessage SCRIPT_NAME: path/to/my/streamer/site/plugin/Live/on_publish_socket_notification.php

@DanielnetoDotCom
Copy link
Member

Hi, the notification plugin has nothing to do with the Live notification.

you need to update the streamer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants