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

使用docker部署后一直提示超时,另外能不能使用php或者django开发一个,.net的搞不懂啊。。。 #21

Open
1537372393 opened this issue Aug 1, 2023 · 14 comments

Comments

@1537372393
Copy link

使用docker部署后一直提示超时,另外能不能使用php或者django开发一个,.net的搞不懂啊。。。

@ModernWMS
Copy link
Contributor

“使用docker部署后一直提示超时” 描述得清楚一点,有没有对应截图。

@ModernWMS
Copy link
Contributor

“另外能不能使用php或者django开发一个” ,你是打算二开么......

@1537372393
Copy link
Author

用docker部署后,只要有访问接口的地方,比如登录,都提示登录超时。

@1537372393
Copy link
Author

想试试二开,比如增加点功能啥的

@1537372393
Copy link
Author

怎么样大哥,你用docker部署有问题吗

@ModernWMS
Copy link
Contributor

你看下能telnet 通对应的服务端口么。

@leucoon
Copy link
Contributor

leucoon commented Aug 4, 2023

image
检查这几个步骤是否有做完整

@1537372393
Copy link
Author

image 检查这几个步骤是否有做完整

这几步做了的,提示连接超时的

@1537372393
Copy link
Author

你看下能telnet 通对应的服务端口么。

Connection to xxx.16.3.110 port 20011 [tcp/*] succeeded!
alpha@gankenongdeMacBook-Pro ~ % nc -vz 172.16.3.110 80
Connection to xxx.16.3.110 port 80 [tcp/http] succeeded!
是这样吗

@leucoon
Copy link
Contributor

leucoon commented Aug 4, 2023

image 检查这几个步骤是否有做完整

这几步做了的,提示连接超时的

请打开浏览器检查-->网络 ,将浏览器调用后端的地址截图出来看下

@1537372393
Copy link
Author

docker exec -it ffc /bin/bash
root@ffcd88e5118e:/app# grep -rl "http://127.0.0.1:20011" /frontend | xargs sed -i 's#http://127.0.0.1:20011#http://1XX.XX.3.110:20011#g'
sed: no input files
root@ffcd88e5118e:/app# exit
exit
idex@idex:~$ docker exec -it ffc /bin/bash
root@ffcd88e5118e:/app# rep -rl "http://127.0.0.1:20011" /frontend
bash: rep: command not found
root@ffcd88e5118e:/app#

@1537372393
Copy link
Author

我知道原因了:
grep -rl "http://127.0.0.1:20011" /frontend | xargs sed -i 's#http://127.0.0.1:20011#http://IP address:20011#g'
一开始我就执行了这句命令
后面重新执行换成自己服务器的ip,但是/frontend/assets/request-0e11976b.js的数据已经修改不了了,
所以就grep -rl "http://IP address:20011" /frontend | xargs sed -i 's#http://IP address:20011#http://172.16.3.110:20011#g'替换成功,已经能正确访问了,非常感谢!

@ModernWMS
Copy link
Contributor

好的。能跑起来就好。

@gongjiangnan
Copy link

gongjiangnan commented Jan 4, 2024

改对了以后,chrome 要清空浏览器缓存 ,edge 仍任有问题

i18n-8c339f5c.js:1 TypeError: Cannot destructure property 'data' of '(intermediate value)' as it is undefined.
at Proxy.login (login-758d9571.js:1:5020)
Wu @ i18n-8c339f5c.js:1
ln @ i18n-8c339f5c.js:1
(匿名) @ i18n-8c339f5c.js:1
Promise.catch(异步)
He @ i18n-8c339f5c.js:1
He @ i18n-8c339f5c.js:1
n @ i18n-8c339f5c.js:1
request-0e11976b.js:3

    POST http://127.0.0.1:20011/login?culture=zh-cn net::ERR_CONNECTION_REFUSED

(匿名) @ request-0e11976b.js:3
xhr @ request-0e11976b.js:3
ye @ request-0e11976b.js:3
Promise.then(异步)
request @ request-0e11976b.js:3
(匿名) @ request-0e11976b.js:1
Y @ login-758d9571.js:1
login @ login-758d9571.js:1
await in login(异步)
l.onClick.e..e. @ login-758d9571.js:1
(匿名) @ i18n-8c339f5c.js:1
yt @ i18n-8c339f5c.js:1
He @ i18n-8c339f5c.js:1
He @ i18n-8c339f5c.js:1
n @ i18n-8c339f5c.js:1
i18n-8c339f5c.js:1 TypeError: Cannot destructure property 'data' of '(intermediate value)' as it is undefined.
at Proxy.login (login-758d9571.js:1:5020)
Wu @ i18n-8c339f5c.js:1
ln @ i18n-8c339f5c.js:1
(匿名) @ i18n-8c339f5c.js:1
Promise.catch(异步)
He @ i18n-8c339f5c.js:1
He @ i18n-8c339f5c.js:1
n @ i18n-8c339f5c.js:1
request-0e11976b.js:3

    POST http://127.0.0.1:20011/login?culture=zh-cn net::ERR_CONNECTION_REFUSED

(匿名) @ request-0e11976b.js:3
xhr @ request-0e11976b.js:3
ye @ request-0e11976b.js:3
Promise.then(异步)
request @ request-0e11976b.js:3
(匿名) @ request-0e11976b.js:1
Y @ login-758d9571.js:1
login @ login-758d9571.js:1
await in login(异步)
l.onClick.e..e. @ login-758d9571.js:1
(匿名) @ i18n-8c339f5c.js:1
yt @ i18n-8c339f5c.js:1
He @ i18n-8c339f5c.js:1
He @ i18n-8c339f5c.js:1
n @ i18n-8c339f5c.js:1

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