Cannot download files from within directories of named volume in ee v2.37.0 (ce is OK)
Before you start please confirm the following.
- Yes, I've searched similar issues on GitHub.
- Yes, I've checked whether this issue is covered in the Portainer documentation.
Problem Description
Portainer EE V2.37.0 when browsing a named volume, files can only be downloaded from the root directory, when in a folder the file fails to download.
DBG github.com/portainer/agent/http/proxy/agentproxy.go:34 > HTTP error | error="open /var/lib/docker/volumes/weechat_data/_data/alias.conf: no such file or directory" msg="Unable to open file" status_code=500
The file path I tried to download for this particular error message was /var/lib/docker/volumes/weechat_data/_data/.config/weechat/alias.conf
This works just fine downloading files that are not in folders. I also only had the issue since upgrading to EE, so I downgraded back to CE v2.37.0 and this error does not occur.
Expected Behavior
When clicking the download button in the named volume browser, files can be downloaded that are nested in directories (not just from the root)
Actual Behavior
Downloading a file within a directory from the volume browser generates a file not found error.
Steps to Reproduce
- Open volume browser for a named volume with files inside a directory.
- Open a folder
- Click the download link next to a file
Portainer logs or screenshots
No response
Portainer version
2.37.0
Portainer Edition
Business Edition (BE/EE) with 5NF / 3NF license
Platform and Version
Docker version 29.1.3, build f52814d454173982e6692dd7e290a41b828d9cbc
OS and Architecture
Alpine Linux 3.23 (aarch64)
Browser
Google Chrome 144
What command did you use to deploy Portainer?
name: portainer
services:
portainer:
image: portainer/portainer-ee:2.37.0-alpine
container_name: portainer
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
networks:
- shared
restart: unless-stopped
deploy:
resources:
limits:
memory: 1000M
portainer-agent:
image: portainer/agent:2.37.0-alpine
container_name: portainer-agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
- /:/host
networks:
- shared
restart: unless-stopped
deploy:
resources:
limits:
memory: 200M
depends_on:
- portainer
networks:
shared:
external: true
volumes:
portainer_data:
name: portainer_dataAdditional Information
No response
Source: portainer/portainer