无法启动Pterodactyl节点服务器:请求创建失败报错求助
解决Pterodactyl Wings启动时API请求协议缺失错误
问题现象
- Wings服务启动失败,报错信息:
"/api/remote/servers?page=0&per_page=50": unsupported protocol scheme "", http: request creation failed - 执行
systemctl restart wings后,日志显示配置加载、系统用户验证均正常,但拉取服务器列表时触发致命错误,日志详情:INFO: [May 7 09:06:52.066] loading configuration from file config_file=/etc/pterodactyl/config.yml INFO: [May 7 09:06:52.066] configured wings with system timezone timezone=Etc/UTC INFO: [May 7 09:06:52.066] checking for pterodactyl system user username=pterodactyl INFO: [May 7 09:06:52.066] configured system user successfully gid=997 uid=997 username=pterodactyl INFO: [May 7 09:06:52.068] fetching list of servers from API FATAL: [May 7 09:07:19.665] failed to load server configurations error=http: request creation failed: Get "/api/remote/servers?page=0&per_page=50": unsupported protocol scheme "" Stacktrace:
问题原因
这个错误的核心原因是Wings配置文件中的面板API地址未指定http/https协议前缀,导致Wings尝试直接用路径发起请求,无法识别通信协议,最终触发报错。
解决步骤
- 编辑Wings配置文件:
nano /etc/pterodactyl/config.yml - 找到
remote配置块中的url字段,确保值包含完整的协议前缀(http或https):- 错误配置示例:
remote: url: "your-panel-domain.com" - 正确配置示例:
remote: url: "https://your-panel-domain.com"
- 错误配置示例:
- 保存配置文件(按
Ctrl+O回车确认,再按Ctrl+X退出编辑器) - 重启Wings服务:
systemctl restart wings - 验证服务状态:
systemctl status wings
额外检查项
- 确保Wings所在服务器能正常访问配置的面板URL(可通过
curl https://your-panel-domain.com测试连通性,同时检查防火墙规则、端口是否开放) - 确认配置文件中
remote下的token字段与面板生成的Wings密钥一致,避免因权限问题引发其他错误
内容的提问来源于stack exchange,提问作者Theja
相关产品推荐
相关产品推荐

