Y
Y
Yuri Matveenko2017-08-22 16:32:49
linux
Yuri Matveenko, 2017-08-22 16:32:49

Lost network on ubuntu 14.?

I rented a server on reg.ru (Ubuntu 14) and installed Symfony on it, everything worked fine for a long time.

$ajson=file_get_contents('https://oauth.vk.com/access_token?client_id=********&client_secret=**********&redirect_uri='.$uri.'&code='.$_GET['code']);

Suddenly stopped working with an error:
Warning: file_get_contents(https://oauth.vk.com/access_token?client_id=**********&client_secret=**************&redirect_uri=************&code=****************): failed to open stream: Connection timed out

Also, when calling apt-get update
a0fdae6477774ad99988e5699ddc9987.png
Last time, a complete reinstallation of the OS helped. But I can't do this all the time.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vadim Zarazhevsky, 2017-08-22
@Chelbeh

Try uncommenting line 54 in the /etc/gai.conf file:
precedence ::ffff:0:0/96 100

Y
Yuri Matveenko, 2017-08-22
@letsrock_inita

Unfortunately it didn't help.
Found something similar, but did not understand what to do
forum.ubuntu.ru/index.php?topic=131452.0

P
poisons, 2017-08-22
@poisons

Something tells me (apt-get exhaust) that you have ipv6 configured on the machine, but it does not work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question