AppAPI Deploy Daemon “not accessible” in Synology+Docker despite healthy container and curl OK

未关闭
#674 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
docker, php
领域
api, backend, devops

调研方向

从 AppAPI 配置面板和 issue 中描述的日志输出开始,然后将其连接尝试与对 /_ping 的成功 curl 请求进行比较。检查 Docker 命令、端口映射以及配置的 HaRP 服务器值。当此 Synology 和 Docker 配置的 Nextcloud 测试连接成功时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

Describe the bug

After deploying AppAPI daemon via Docker under Synology, the daemon appears healthy in Portainer, responds correctly with curl using basic auth, but the Nextcloud

Image Image Image Image Image Image

and test connection fails.

Steps/Code to Reproduce

What works

What fails

  • Nextcloud always shows “Failed to connect to Daemon. Check logs”
  • Logging (settings/admin/logging) shows:
  • ConnectException cURL error 7: Failed to connect to 127.0.0.1 port 5013
  • Deploy daemon "harp_proxy_host" is not accessible by Nextcloud...

What I’ve tried

  • Verified every field and protocol, restarted containers, updated Nextcloud, tried from different browsers.
  • AppAPI does not show updates in “Aplications”.
  • Daemon and Nextcloud runs as root/http, no firewall blocks, Synology ports OK.

Suspected bug

  • Similar to #153, but persists in new versions and not solved by changes or restarts.
  • The shared key is correctly stored, proven by curl, but the panel cannot connect.

Steps to reproduce

  1. Deploy AppAPI daemon as above.
  2. Register and test in Nextcloud config panel using described fields.
  3. Observe error, although direct curl OK
Expected Results

Expected behavior
Daemon should be reachable for Nextcloud if curl from host is OK and daemon shown “healthy”.

Actual Results

admin panel always shows "Daemon not accessible"

Setup configuration

Versions

  • Nextcloud version: 32.0.0
  • AppAPI version: 3.2.3
  • Daemon Docker image: ghcr.io/nextcloud/nextcloud-appapi-dsp:release
    System details
  • Synology NAS (describe tu modelo), Docker, Portainer
  • Nextcloud running in [Docker/native]
  • Daemon command docker run -e NC_HAPROXY_PASSWORD="MI_CLAVE"
    -v /var/run/docker.sock:/var/run/docker.sock
    --name nextcloud-appapi-dsp
    --restart unless-stopped --privileged
    -p 5013:2375
    -d ghcr.io/nextcloud/nextcloud-appapi-dsp:release
  • Daemon state: “healthy” in Portainer

Config in Nextcloud

  • "Servidor HaRP": http://127.0.0.1:5013
  • "Clave compartida": [same to daemon]
  • "docker-install", net bridge
主要语言
PHP
星标
202
派生
30
平均合并
3 天 20 小时
30 天内合并 PR
24

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/app_api 的其他 Issue

查看 nextcloud/app_api 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。