Jump to content

Не работают ни какие запросы в интернет из скриптов


Recommended Posts

Здравствуйте уважаемые гуру!

Помогите чайнику в таком вопросе. Установил Entware с Debian chroot. Все отлично - работает opkg и apt, запросы из curl и wget.. а вот из любых скриптов типа php или node.js - нет.
 

node.js

FetchError: request to https://api.telegram.org/bot6675304532:[REDACTED]/sendMessage failed, reason: connect ETIMEDOUT 2001:67c:4e8:f004::9:443
    at ClientRequest.<anonymous> (/opt/home/test/node_modules/node-fetch/lib/index.js:1501:11)
    at ClientRequest.emit (node:events:514:28)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:514:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  type: 'system',
  errno: 'ETIMEDOUT',
  code: 'ETIMEDOUT'
}

php

PHP Warning:  file_get_contents(https://google.com): Failed to open stream: Connection timed out in /opt/home/1.php on line 3

Соответственно не работает тот же npm.

Характеристики системы

Цитата

Linux Keenetic_Extra 3.4.113 #1 Tue Oct 17 19:21:49 MSK 2017 mips GNU/Linux

Список установленных пакетов

Цитата

ar
busybox
ca-bundle
coreutils
coreutils-chroot
coreutils-readlink
coreutils-sha1sum
cron
curl
debootstrap
dropbear
entware-release
findutils
glib2
grep
jsonfilter
ldconfig
libatomic
libattr
libbfd
libblkid
libc
libcares
libcurl
libffi
libgcc
libiconv-full
libintl-full
libjson-c
liblzma
libmbedtls
libmount
libnghttp2
libopenssl
libopenssl-conf
libpcre2
libpthread
librt
libslang2
libsmartcols
libssh2
libssp
libstdcpp
libubox
libuuid
libuv
locales
mc
mount-utils
node
node-npm
openssl-util
opkg
opt-ndmsv2
poorbox
sudo
terminfo
wget-nossl
wget-ssl
xz
xz-utils
zlib
zoneinfo-asia
zoneinfo-core
zoneinfo-europe

Помогите, пожалуйста, ибо уже весь мозг сломал.

Заранее спасибо!

Edited by tester17
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...