You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

无法启动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尝试直接用路径发起请求,无法识别通信协议,最终触发报错。

解决步骤

  1. 编辑Wings配置文件:
    nano /etc/pterodactyl/config.yml
    
  2. 找到remote配置块中的url字段,确保值包含完整的协议前缀(http或https):
    • 错误配置示例:
      remote:
        url: "your-panel-domain.com"
      
    • 正确配置示例:
      remote:
        url: "https://your-panel-domain.com"
      
  3. 保存配置文件(按Ctrl+O回车确认,再按Ctrl+X退出编辑器)
  4. 重启Wings服务:
    systemctl restart wings
    
  5. 验证服务状态:
    systemctl status wings
    

额外检查项

  • 确保Wings所在服务器能正常访问配置的面板URL(可通过curl https://your-panel-domain.com测试连通性,同时检查防火墙规则、端口是否开放)
  • 确认配置文件中remote下的token字段与面板生成的Wings密钥一致,避免因权限问题引发其他错误

内容的提问来源于stack exchange,提问作者Theja

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.24 10:55:05