Sonerezh / sonerezh

A self-hosted, web-based application to stream your music, everywhere.
https://www.sonerezh.bzh
GNU Affero General Public License v3.0
767 stars 122 forks source link

Unable to find /install or /login : requested black-holed. #245

Open huxandy opened 7 years ago

huxandy commented 7 years ago

Hey ! I've got this issue on Sonerezh :

"The request has been black-holed
Error: The requested address '/login' was not found on this server."

then : Error: The requested address '/install' was not found on this server." (when I tried to reinstall it)

gnome-shell-imgur-g7ansy

My server was working yesterday perfectly. Really :-) Everything is working fine : rewrite module is ok, my virtualhost was working perfectly I tried to reinstall everything but my problem remains. Is anyone having the same issue ? Thx for your answers ;-) ++ Andy

MightyCreak commented 7 years ago

I had that problem, but when I upgraded to the 1.1.3. You didn't touch anything?

huxandy commented 7 years ago

Nope, I didn't touch anything. I've Headphone running as well on this server, but it hasn't damaged by Sonerezh. I had this issue directly with 1.1.3 as well. I installed it directly (I mean, I didn't have to upgrade)...

MightyCreak commented 7 years ago

Have you tried simply entering http://yoursonerezhdomain.example/install in your browser?

huxandy commented 7 years ago

Yep. whatever I'm typing, it always rewrite to /install

MightyCreak commented 7 years ago

Weird... I did had this problem but fixed it by reinstalling Sonerezh from scratch. It included a restart of all the web services (web server, php-fpm and mysql). I think that's what did the trick actually...

Can you try reinstalling everything and do a restart (not reload) of all your web services before going to /install?

huxandy commented 7 years ago

Yeah, that is what I'm going to do anyway... But guess what, I tried on another browser and I've got a different error log (even if I had remove the firefox's cache : On Chrome, i have :

Notice (8): Undefined index: id [APP/Model/User.php, line 152]
Code Context

User::isThereAnAdmin() - APP/Model/User.php, line 152
CakeValidationRule::process() - CORE/Cake/Model/Validator/CakeValidationRule.php, line 275
CakeValidationSet::validate() - CORE/Cake/Model/Validator/CakeValidationSet.php, line 135
ModelValidator::errors() - CORE/Cake/Model/ModelValidator.php, line 268
ModelValidator::validates() - CORE/Cake/Model/ModelValidator.php, line 99
Model::validates() - CORE/Cake/Model/Model.php, line 3469
Model::_doSave() - CORE/Cake/Model/Model.php, line 1829
Model::save() - CORE/Cake/Model/Model.php, line 1751
InstallersController::index() - APP/Controller/InstallersController.php, line 227
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 491
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 108
MightyCreak commented 7 years ago

Just to be sure, did you delete the database before install the 1.1.3?

huxandy commented 7 years ago

Yes I did it. I even reinstall everything on a brandnew virtual machine... Weird, indeed... :-S

huxandy commented 7 years ago

Apparently, the error is coming from : sonerezh/app/Model/User.php

I've a message on chrome, that the error is coming from this line :

public function isThereAnAdmin() {
    if (AuthComponent::user('id') == $this->data[$this->alias]['id'] && isset($this->data[$this->alias]['role']))
TheCrazyMax commented 7 years ago

Hey! Surprisingly, I had exactly the same issue today and I had to browse the install link in a private window to get it working...

MightyCreak commented 7 years ago

Maybe it's still trying to use the old cookies! Nice catch!

TheCrazyMax commented 7 years ago

That's possible. I had cleared the cache, but not the cookies.

avma commented 7 years ago

Hi I ran into the exact same issue. On raspberry Pi 3, headless Rasbian Jessie lite, Nginx 1.62 and php7... I Tryed reinstall on an older RPI2 with the same results, tryed frome deferent browsers (crhome, explorer, edge)... I added the debug line to the nginx server block but cant figure it out. Any ideas?

Thank you all for your replies Avi

capture

PiperMp3 commented 7 years ago

Anyone got any on this? Fresh install, during installation - black holed, doing a refresh ends up back in the installation form.

Cleared Cache, Cookies, tried Private Session, all modules needed enabled. Ubuntu 16.04.3 Php 5.6 (Because pfft, 7.0 is horrible with anything) Apache2 Virtual host created properly (Because the installation form does show) MySQL running remotely, but is accessible by ip and user (Tested separately)