宝塔用户_lythfi 发表于 2024-8-20 16:03:33

【待反馈】无外网java项目打不开

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:9.0
系统版本:乌班图
问题描述:无外网java项目打不开,报错
相关截图(日志、错误)无外网java项目打不开,报错REQUEST_DATE: 2024-08-20 15:49:25VERSION: Ubuntu 22.04.1 LTS (Jammy Jellyfish) x86_64(Py3.7.8) - 9.0.0 REMOTE_ADDR: 192.168.1.35 REQUEST_URI: POST /mod/java/project/project_list?REQUEST_FORM: {'data': '{"p":1,"limit":10,"type_id":"","search":""}'}USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0Traceback (most recent call last):File "/www/server/panel/BTPanel/__init__.py", line 2439, in publicObject    res = run_obj.run(toObject, defs, get)File "/www/server/panel/BTPanel/__init__.py", line 2386, in run    result = getattr(toObject, get.action)(get)File "/www/server/panel/mod/modController.py", line 89, in model    raise public.PanelError(result['msg'])public.PanelError: 面板运行时发生错误: Traceback (most recent call last):File "/www/server/panel/mod/project/java/projectMod.py", line 32, in   from mod.project.java.springboot_parser import SpringConfigParser, SpringLogConfigParserFile "/www/server/panel/mod/project/java/springboot_parser.py", line 55, in   class SpringConfigParser:File "/www/server/panel/mod/project/java/springboot_parser.py", line 64, in SpringConfigParser    localhost_key = ("localhost", "127.0.0.1", "0.0.0.0", public.get_server_ip(), public.get_network_ip())File "class/public.py", line 6068, in get_network_ip    s.connect(('8.8.8.8', 80))File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/_socketcommon.py", line 628, in connect    raise _SocketError(result, strerror(result))OSError: Network is unreachable

运维技术阿闯 发表于 2024-8-20 16:18:30

您好,您说的无法打开是通过别的机器访问的吗,您部署的java项目可以使用机器ip方式来访问,需要外网访问的话得要有一个外网ip
页: [1]
查看完整版本: 【待反馈】无外网java项目打不开