aymhce / diaspora_ynh

6 stars 8 forks source link

502 Bad Gateway nginx/1.6.2 #5

Open anmol26s opened 9 years ago

anmol26s commented 9 years ago

I installed diaspora on dispora.mydomain.com. I get 502 Bad Gateway nginx/1.6.2

Any solution ?

aymhce commented 9 years ago

Hello, Sorry, the starting time is long. Have you wait 5/10 minutes for Diaspora startup ? What have you in the logs /var/www/diaspora/log/ ? especially in startscript.log.

anmol26s commented 9 years ago

Yes I have waited long but still it show 502 bad gateway. This is the installation log. https://datamol.in/zerobin/?08b054b1374902bd#gVbgWygSXcMMMF/TJCpNPUDBbyLanx1gS/3cQIDTQgk= I do not have any log file in /var/www/diaspora/log/ .

anmol26s commented 9 years ago

The /etc/nginx/conf.d/pod.datamol.in has tthis line root /var/www/diaspora//public; Isn't it be root /var/www/diaspora/public; ? With only one / in public.

aymhce commented 9 years ago

Thank you for log file. For the double /, it does not matter . However, the problem (from the log) is a GEM component that is not installed (network or server outage). Unfortunately, you have to reinstall the app from "scratch". Can you try please?

anmol26s commented 9 years ago

Still 502 bad gateway :( My server gets error every time it connection to https://rubygems.org https://datamol.in/zerobin/?65e7013f64534ace#3pPhkT4n4DStsB5SMIHYKg8L0RJBWM3J5OCtB/Ax8tc= I have read in a blog that https://rubygems.org gives problem sometime but with http it do not. Is there a solution for that ?

aymhce commented 9 years ago

Ok, I have updated install script (add --retry 5 for connections). Can you retry a installation from "scratch" please ?

anmol26s commented 9 years ago

Thanks for updating it,but it fails still. https://datamol.in/zerobin/?613d04666f1e9da4#BsIvSGQyuCsIYDfrgcqtCjKd++FYd4skPiJVyUwn9rQ= :(

aymhce commented 9 years ago

Haaa, this time it is a sudo right problem. The problem is that the Diaspora GEM components change continuously. In this case, a GEM has used sudo to install it, but diapora user can't use it at this step... I had edit the install script. So you can try again please ?

anmol26s commented 9 years ago

Rubygems are still not installing.I think its permission issue still there. https://datamol.in/zerobin/?fadd76f80c888954#8fnx+Bdi6LM3YHQ9e+bOgF8n6kCoOkd6ZNfcZDmyQkA=

aymhce commented 9 years ago

Arf, I think your server have a network mistake... Now it's RVM who's not installed. So I have added a retry connection on "curl". So, I'm sorry, can you retry installation again ?

anmol26s commented 9 years ago

Still no luck :( https://datamol.in/zerobin/?7b3f78c52fe0b92f#gRXRI//Rx8vLSLnM2lbShz9/gVA+YvwrYEdH89Li78o=

aymhce commented 9 years ago

I think this is the last chance. Also I think your server have a network issue. Can you retry install please ?

anmol26s commented 9 years ago

There is still error in connectivity, I don't know why https://datamol.in/zerobin/?0a400ddfcd687ab2#mT0Vm+Caz/GPoqIV51+Prp3P/ljHPHFP3K7r8LG8gUA= I will move to your FRIENDICA project

aymhce commented 9 years ago

Ok, i have added a correction on my last commit. You can test it when your are ready.

anmol26s commented 9 years ago

Thank you at last it worked. It was because of your effort that it worked in the end. But after creating user the system was getting unstable. It needed more resources I think. I am on a single core AMD processor. In the end it started showing gateway time out error. I waited for around five hours. All other apps started to slow down too and the everything became slow to respond. So for now I have removed it and installed FRIENDICA which is one of your other yuno bundle too and works great. Thanks

aymhce commented 9 years ago

Ok thanks. It's sad, Diaspora is a good solution, better than Friendica, I think. But Friendica is good as well. Just Diaspora has a large community and is surging. Also, it true, Diaspora is heavy. Friendica is technically simpler and is full of functionality, only, I feel that it'll being abandoned... See you soon

anmol26s commented 9 years ago

HI again After successful installation of diaspora,It stop working and gave 502 bad gateway again. I installed the ssl key on the domain after the installation of diaspora. log: https://datamol.in/zerobin/?fcfffe5b6f14e871#/uqaHpwlHV5GoM4wDAGLbdVma3Ey8MLXHY+o/S1zMl8=

anmol26s commented 9 years ago

Here is the installation log https://datamol.in/zerobin/?78a4e0d21d07b341#UQWNxQmZan9MB+LQzj49/uw5e5JvBS8qM+gOjvkHRj4=

and another log https://datamol.in/zerobin/?7a0ead0457e9929c#YuUg6Bm2fS0DmDjK8k8XOzdsTrkJOnnihxRahEvUuMk=

anmol26s commented 9 years ago

Can you fix it again please. There is still errors in rubygems.

aymhce commented 9 years ago

Hello, I don't know if you by pass this issue from this log file https://datamol.in/zerobin/?fcfffe5b6f14e871#/uqaHpwlHV5GoM4wDAGLbdVma3Ey8MLXHY+o/S1zMl8=

Regarding the other logs, I'll increase --retry option for network mistakes.

anmol26s commented 9 years ago

Hi This is the log https://datamol.in/zerobin/?104fc45fb339de1b#6XGIa8wRPo6jfU+WIoh6NLyq8Mv6M3SmUe238AGvVjA=

I don't know why rubygems gives error. Its only one time that they have installed correctly.

anmol26s commented 9 years ago

I think my port 443 is being blocked. Can you please change the sources to port 80 and to http:// ?

aymhce commented 9 years ago

Can you find a solution for unlocking your port 443 ? I can't easily help you on that...