After this command:
./mtproto-proxy -u nobody -p 8888 -H 443 -S 69529dc4287accaefedc4aee6cc46eb4 —aes-pwd proxy-secret proxy-multi.conf -M 1
I face this message and client cant connect to the proxy server:
[root@static bin]# ./mtproto-proxy -u nobody -p 8888 -H 443 -S 69529dc4287accaefedc4aee6cc46eb4 —aes-pwd proxy-secret proxy-multi.conf -M 1
[25098][2018-06-01 11:05:28.779760 local] Invoking engine mtproxy-0.01 compiled at Jun 1 2018 03:58:18 by gcc 4.8.5 20150623 (Red Hat 4.8.5-28) 64-bit after commit e231d04
[25098][2018-06-01 11:05:28.780387 local] config_filename = ‘proxy-multi.conf’
[25098][2018-06-01 11:05:28.781581 local] creating 1 workers
[25098][2018-06-01 11:05:28.784651 local] Started as [xxx.xxx.xxx.xxx:8888:25098:1527865528]
[25098][2018-06-01 11:05:28.784771 local] configuration file proxy-multi.conf re-read successfully (797 bytes parsed), new configuration active
[25098][2018-06-01 11:05:28.785102 local] main loop
READ: Resource temporarily unavailable
[25099][2018-06-01 11:05:28.796551 local] Started as [xxx.xxx.xxx.xxx:8888:25099:1527865528]
[25099][2018-06-01 11:05:28.796658 local] configuration file proxy-multi.conf re-read successfully (797 bytes parsed), new configuration active
[25099][2018-06-01 11:05:28.796890 local] main loop
Any solution?
thanks. I edited the first post.
+1 Have the same error when using docker image
reproduced this error READ: Resource temporarily unavailable — closed outgoing ports 8888 and 80 on the firewall, check it
I have same problems, but only on servers behind NAT.
Outgoing ports 8888 and 80 accepted, telnet to servers telegram (into proxy-multi.conf) establish.
I tried flags —nat-info, but it did’t help.
Have some error «READ: Resource temporarily unavailable»
Same problem, but only in docker. It’s working, if I run mtproto-proxy
directly.
I have same problem and still on main loop and get message:
Resource temporarily unavailable
[10439][2018-08-06 17:46:30.574472 local] configuration file proxy-multi.conf re-read successfully (797 bytes parsed), new configuration active
[10439][2018-08-06 17:46:30.574520 local] main loop
READ: Resource temporarily unavailable
[10397][2018-08-06 17:46:30.579185 local] Started as [my_server_ip:8888:10397:1533561390]
[10397][2018-08-06 17:46:30.579450 local] configuration file proxy-multi.conf re-read successfully (797 bytes parsed), new configuration active
[10397][2018-08-06 17:46:30.579528 local] main loop
please help me
uprt
mentioned this issue
Mar 9, 2019
My Script throws the error read error: 0: Resource temporarily unavailable
the second time user input ( Unix Username ) is expected.
I suspect this has something to do with the first background process (linux_fetch &) going wrong.
How do I work around this so that the user prompt ( Unix Username ) post the background process does not get affected.
Here is short snippet of the script.
if [ -r $linux_host_list ]
then
echo
read -p 'Linux Username:' LUSERNAME
read -p 'Linux Password:' LPASS
linux_fetch &
clear screen
else
echo "No Linux Servers found"
fi
if [ -r $unix_host_list ]
then
echo
read -p 'Unix Username:' UNIXUNAME
read -p 'Unix Password:' UPASS
unix_fetch &
clear screen
else
echo "No Unix Servers found."
fi
masegaloeh
18.1k10 gold badges56 silver badges105 bronze badges
asked Aug 4, 2009 at 9:21
I’ll bet that the unix_fetch
process is closing or doing something else insane with stdin. Try running unix_fetch
with </dev/null
, so that it’s stdin is redirected away to somewhere it can’t do any damage.
answered Aug 4, 2009 at 9:39
womble♦womble
95.6k29 gold badges173 silver badges229 bronze badges
3
A simple redirection of error to /dev/null did the trick for me.
linux_fetch 2> /dev/null &
unix_fetch 2> /dev/null &
answered Nov 30, 2009 at 13:30
SharjeelSharjeel
3474 silver badges18 bronze badges
У меня есть сценарий bash, который запрашивает ввод данных пользователем несколько раз и обрабатывает ввод в фоновом режиме, пока ожидается следующий ввод. Время от времени я получаю эту ошибку.
read error: 0: Resource temporarily unavailable
Я подозревал, что это могут быть фоновые процессы в моем скрипте, поэтому я попытался поставить <dev / null в конце команд, которые выполняются в фоновом режиме, но это очень помогло.
./somescript.sh >> log.txt & < /dev/null
Любая помощь приветствуется.
2 ответы
Это трудно диагностировать, не зная больше о том, что делает ваша программа, но …
По какой-то причине какая-то часть моего мозга говорит мне, что это исходит от ядра и связано с разветвлением, но я не могу определить причину, по которой я так думаю. Попробуйте запустить свой скрипт и понаблюдайте за использованием памяти (процессор тоже, но мне кажется, что это как память). Для более подробной статистики [чем вверху] запустите watch -d cat /proc/meminfo
и посмотрите, что произойдет, когда вы начнете получать эту ошибку.
Создан 17 сен.
Простое перенаправление ошибки на / dev / null помогло мне.
some_function1 2> /dev/null &
some_function2 2> /dev/null &
Создан 30 ноя.
Не тот ответ, который вы ищете? Просмотрите другие вопросы с метками
bash
input
ssh
background
bash4
or задайте свой вопрос.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.