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

"Internal server error" just after install #20

Closed
arthurlutz opened this issue Feb 7, 2017 · 8 comments
Closed

"Internal server error" just after install #20

arthurlutz opened this issue Feb 7, 2017 · 8 comments

Comments

@arthurlutz
Copy link

With YunoHost 2.5.4.

screenshot_2017-02-07_15-36-24

nothing obvious in the debug logs related to that error.

@p3k
Copy link

p3k commented Aug 6, 2017

Any news on this? Still happens with 2.6 on a fresh install.

@arthurlutz
Copy link
Author

Works now sorry for not updating this issue.

@p3k
Copy link

p3k commented Aug 7, 2017

Um, actually, it does not work for me (as noted in my previous comment)… should I file a new issue now?

@arthurlutz
Copy link
Author

Oh sorry, I'll reopen it. Is your baikal working ?

@arthurlutz arthurlutz reopened this Aug 7, 2017
@p3k
Copy link

p3k commented Aug 7, 2017

Ah, thanks.

Baïkal is running alright. (At least that’s what the browser displays when I click the ”Ba” square.)

@p3k
Copy link

p3k commented Aug 7, 2017

I now found this in the log file:

[2017-08-07 22:18:19] agendav.CRITICAL: GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: self signed certificate in certificate chain (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) (uncaught exception) at /var/www/agendav/web/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 187 {"exception":"[object] (GuzzleHttp\\Exception\\RequestException(code: 0): cURL error 60: SSL certificate problem: self signed certificate in certificate chain (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) at /var/www/agendav/web/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:187)"} []

Is this the culprit? If so, any suggestion how this could be fixed?

(There is an issue exactly about this problem at the agendav repo, too.)

@p3k
Copy link

p3k commented Aug 11, 2017

I tried out some things and what worked for me is the following:

  1. Find the ca.pem file for your self-signed domain :
    ls -la /etc/yunohost/certs/your.domain.xyz/ca.pem

  2. Edit the file /etc/php5/fpm/php.ini and set curl.cainfo to that path:

    [curl]
    curl.cainfo = /etc/yunohost/certs/your.domain.xyz/ca.pem
  3. Reload the PHP engine:
    service php5-fpm reload

However, I don’t think this is how a YunoHost app should behave as it seems to contradict the philosophy of the project. (”Y U no host?” — “Because Internal Server Error.”)

@juleswh
Copy link

juleswh commented Oct 31, 2017

Same error on yunohost 2.7.2, the fix proposed by @p3k works nicely.

@yalh76 yalh76 closed this as completed May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants