AVideo
AVideo copied to clipboard
keep getting logged out
Hi i keep getting logged out. Seems to happen in all browsers but not brave.
Any idea where to look Dan?
No errors in apache or avideo log.
Where are the sessions stored?
sessions are stored in your server.
cookies in your browser
can you reproduce that on the demo site?
i will have a look but im logged out of the site once i log into the encoder. When i go back to the homepage after logging in to the encodernetwork or the local encoder im then logged out from the streamer site.
This 100% something you have done. I have spend 2 solid days on this and even caused me to wipe out my whole server starting all over again, and will take days to restore Tbs of data.
New install:
- Ubuntu 22
- No control panel
- mod_php/apache2/php8.3
- Brand new files for testing AVideo/Encoder on same server
- I login to the encoder on safari iMAC and on mobile devices and then i am logged out of the site over and over again
This is NOT my setup, how can it be? You made changes to the encoder the other day and this is when the problem started. Never ever happened before that period. Massively frustrating as it has caused me to much grief and so much work and destruction to my site which will take days to get my site up and running again.
This can be sometimes your pc
Try a different computer and network
I have tried 2 different servers, same thing on both
Not servers I am talking about your pc/ browser
It is happening on my iMac, mobile phone in both safari, and chrome on the phone and my ipad and a user emailed in saying he could not login. Doesnt happen in firefox or brave.
Also how can the same thing happen on a brand new server with all new files. Im not even using my site files for testing just the fresh avideo and encoder files so how can this be an issue with me and also happens on another server.
Does it happen on demo site? Did you install a ssl?
Yes i dunno if this means anything.
| Limit: 0.1s | Location: path/to/my/streamer/site/view/info.php Line 5071 [getImageFromFilename_(6g4a9Jren6G2SrJUWEsb, video)] IP=192.99.46.228 USER_AGENT=Undefined server={"REDIRECT_proto":"https","REDIRECT_HTTPS":"on","REDIRECT_SSL_TLS_SNI":"www.mysite.com","REDIRECT_STATUS":"200","proto":"https","HTTPS":"on","SSL_TLS_SNI":"www.mysite.com","HTTP_HOST":"www.mysite.com","HTTP_CONNECTION":"close","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin","SERVER_SIGNATURE":"","SERVER_SOFTWARE":"Apache/2.4.52 (Ubuntu)","SERVER_NAME":"www.mysite.com","SERVER_ADDR":"95.216.112.95","SERVER_PORT":"443","REMOTE_ADDR":"192.99.46.228","DOCUMENT_ROOT":"/home/www/html/myMySQLUser","REQUEST_SCHEME":"https","CONTEXT_PREFIX":"","CONTEXT_DOCUMENT_ROOT":"/home/www/html/myMySQLUser","SERVER_ADMIN":"[no address given]","SCRIPT_FILENAME":"/home/www/html/myMySQLUser/view/info.php","REMOTE_PORT":"50288","REDIRECT_URL":"/info","REDIRECT_QUERY_STRING":"modified=2024-03-20+07%3A07%3A11","GATEWAY_INTERFACE":"CGI/1.1","SERVER_PROTOCOL":"HTTP/1.1","REQUEST_METHOD":"GET","QUERY_STRING":"modified=2024-03-20+07%3A07%3A11","REQUEST_URI":"/info?modified=2024-03-20+07%3A07%3A11","SCRIPT_NAME":"/view/info.php","PHP_SELF":"/view/info.php","REQUEST_TIME_FLOAT":1711134662.644406,"REQUEST_TIME":1711134662,"HTTP_USER_AGENT":""} SCRIPT_NAME: /view/info.php
i see that endlessly in my logs:
[22-Mar-2024 19:11:13 Europe/London] AVideoLog::DEBUG: Time: 0.162s | Limit: 0.1s | Location: path/to/my/streamer/site/view/info.php Line 5071 [getImageFromFilename_(PZIG9WkZsp7rMZmYyaob, video)] IP=192.99.46.228 USER_AGENT=Undefined server={"REDIRECT_proto":"https","REDIRECT_HTTPS":"on","REDIRECT_SSL_TLS_SNI":"www.mysite.com","REDIRECT_STATUS":"200","proto":"https","HTTPS":"on","SSL_TLS_SNI":"www.mysite.com","HTTP_HOST":"www.mysite.com","HTTP_CONNECTION":"close","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin","SERVER_SIGNATURE":"","SERVER_SOFTWARE":"Apache/2.4.52 (Ubuntu)","SERVER_NAME":"www.mysite.com","SERVER_ADDR":"95.216.112.95","SERVER_PORT":"443","REMOTE_ADDR":"192.99.46.228","DOCUMENT_ROOT":"/home/www/html/myMySQLUser","REQUEST_SCHEME":"https","CONTEXT_PREFIX":"","CONTEXT_DOCUMENT_ROOT":"/home/www/html/myMySQLUser","SERVER_ADMIN":"[no address given]","SCRIPT_FILENAME":"/home/www/html/myMySQLUser/view/info.php","REMOTE_PORT":"50288","REDIRECT_URL":"/info","REDIRECT_QUERY_STRING":"modified=2024-03-20+07%3A07%3A11","GATEWAY_INTERFACE":"CGI/1.1","SERVER_PROTOCOL":"HTTP/1.1","REQUEST_METHOD":"GET","QUERY_STRING":"modified=2024-03-20+07%3A07%3A11","REQUEST_URI":"/info?modified=2024-03-20+07%3A07%3A11","SCRIPT_NAME":"/view/info.php","PHP_SELF":"/view/info.php","REQUEST_TIME_FLOAT":1711134662.644406,"REQUEST_TIME":1711134662,"HTTP_USER_AGENT":""} SCRIPT_NAME: /view/info.php
[22-Mar-2024 19:17:03 Europe/London] PHP Warning: Cannot modify header information - headers already sent by (output started at path/to/my/streamer/site/videos/configuration.php:1) in Unknown on line 0
[22-Mar-2024 19:17:03 Europe/London] PHP Warning: Cannot modify header information - headers already sent by (output started at path/to/my/streamer/site/videos/configuration.php:1) in Unknown on line 0
This is weird and this can cause the session issue
I do not know how you edit your configuration.php but this seems to be corrupted
make sure you do not have any extra space or line before <?php ...
wowwww well spotted i had a \ before the <?php and i dunno how and now everything is sweet. No more logout issues. Thats a really good find thanks a lot bro!
You are welcome
Problem is still there mate. The only point i get logged out is logging into the encoder. It doesnt happen anywhere else and ive had this issue before. It doesnt matter what i do it will not go away and is only happening on certain browsers. Ive turned off every single plugin too. I have no errors in logs in relation to this.
I do not get
What is the issue?
Where it is not login?
Maybe you have other files with the magic spaces or lines before <?php
ive overwritten all files with the fresh install files and i have a new configuration file. Ive just installed the encoder again in another folder and still the same issue. I can login to the encoder from the streamer site no problem. And once logged in i am not logged out from the encoder but logging in to the encoder will always log me out of the streamer site every single time, no matter what. I see no errors anywhere and none in developer tools.
What is the site and encoder domains ?
Are you using a proxy to them?
Maybe it is mixing the session name from them
The site and encoder domains are the same https://ourtube.co.uk and https://ourtube.co.uk/encoder. I’m Not using a proxy.Jason KellyOn 22 Mar 2024, at 20:57, Daniel Neto @.***> wrote: What is the site and encoder domains ? Are you using a proxy to them? Maybe it is mixing the session name from them
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
try to set this encoder as your default encoder
https://encoder1.wwbn.net/
try to login and check if the error persists
Right i have just finished a new install on contabo ubuntu 22
Followed this to the letter https://github.com/WWBN/AVideo/wiki/How-to-install-LAMP,-FFMPEG-and-Git-on-a-fresh-Ubuntu-22.x-for-AVideo-Platform-version-11.x-or-newer and did nothing else with the server.
Installed fresh files from git for AVideo and Encoder and as soon as i logged in to the encoder from safari i was logged out.
Thats 2 fresh installs on 2 seperate hosting companys and your telling me their isnt a problem? All started the day you updated the encoder files. I stated this eariler.
here is the brand new install https://encoder2.ourtube.co.uk/
No i do not get logged out using https://encoder1.wwbn.net/
in your encoder can you use a different domain as the *.ourtube.co.uk
to be honest I have no idea, but I suspect it is something with your domain
but encoder2.ourtube.co.uk and ourtube.co.uk are are different locations with different ips and different hosts. Nothing was changed on the domain when this issue started happening and has been working fine for years.
I see, but just try a different domain or try to use the server ip to use the encoder
ok
I dont get logged off if using the ip.
so on ourtube.co.uk if i use the remote encoder2 ip instead of encoder2.ourtube.co.uk it doesnt log me out.
It is probably something regarding the cookies and your domain
I am not sure what configuration is causing that
But this is not happening on my domain