nextcloud / nextcloud/app_api

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

Open
#674 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
196
Forks
26
Avg merge
4d 15h
Merged PRs (30d)
31

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the AppAPI configuration panel and the logging output described in the issue, then compare its connection attempt with the successful curl request to /_ping. Review the Docker command, port mapping, and configured HaRP server value. Done means the Nextcloud test connection succeeds for this Synology and Docker setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, php
Domain
api, backend, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.