Forums | Mahara Community

Support /
Conection erros in the error log (Mahara 17.10.9)


Juan Menéndez's profile picture
Posts: 36

13 June 2019, 21:28

Hi,

The administration panel shows that the cron does not work and I have reviewed the error log and I have seen that the following types of errors appear:

 

[WAR] 9b (lib/web.php:4540) Curl error: 7: Failed to connect to 2001:67c:1560:8003::8003: Network is unreachable

 

I do not know if this error will be the cause of the problem, but my server can not connect to a IP v6 address and I would like to know if there is a solution or if it is possible to deactivate these attempts to connect to an IPv6

 

 Thank you

Cheers

Juan

Robert Lyon's profile picture
Posts: 757

24 June 2019, 10:53

Hi Juan,

There is no setting to ignore IPv6 URLs

But on line 4539 of file htdocs/lib/web.php there is some code that produces that error message you see.

You could try putting before that line

        if (filter_var($config[CURLOPT_URL], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
            $quiet = true;
        }

That should force all URLs that are recognised as IPv6 URLs to not leave a log warning message

Cheers

Robert

Juan Menéndez's profile picture
Posts: 36

24 June 2019, 20:28

Hi Robert.

Thank you very much for your response and for your help.

Cheers

Juan

3 results