pupcloud icon indicating copy to clipboard operation
pupcloud copied to clipboard

Possible Docker/Pupcloud/External data store gremlin

Open DarrenPIngram opened this issue 2 years ago • 5 comments

Note, I do not know where the possible problem may lie, but I can report it and if you have ideas what to check to isolate "who has the problem" I am happy to check.

Environment: Debian 11 server running Docker. Rclone mount (via systemd) used as datastore. Pupcloud ran as a container within. Data directory for Pupcloud is set to access this share.

version: '3.3'
services:
    pupcloud:
        restart: unless-stopped
        container_name: pupcloud
        ports:
            - '8080:17178'
        volumes:
            - '/mnt/disks/DB0-UNION:/data'
        environment:
            - PID=1001
            - PGID=1001
            - PUP_TITLE=The Archive
            - PUP_PASSWORD=downundertv
        image: 'germanorizzo/pupcloud:latest'

Pupcloud can run (in tests) and serve files. Eventually and silently it stops. You don't get an error (that I can see) and the web app continues to run, but no data is served up or shown.

docker start pupcloud restarts things, no errors are shown on restart, and the web app then (after page refresh) will deliver goodies again.

Other info:

rclone --version
rclone v1.58.1
- os/version: debian 11.3 (64 bit)
- os/kernel: 5.10.0-13-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.17.9
- go/linking: static
- go/tags: none

DarrenPIngram avatar May 12 '22 07:05 DarrenPIngram

1 - after how much time does pupcloud/docker stop? 2 - if the datastore is mounted through the cli (not rclone) does pupcloud stop?

marioscube avatar May 12 '22 08:05 marioscube

3 - can you enter the web tools by pressing F12 in the browser, and see if there are errors in the console and/or in the network tab?

A thing that I found, and may be related or not, is that if you connect Pupcloud to a dir and then mount something on that dir, pupcloud will continue to see the directory as empty, "before" the mount. If you restart it, it will see the mounted "version". This is to say: I don't know how rclone deals with mounts etc, maybe it uses FUSE, and I don't know if the mount "fluctuates", so to speak.

proofrock avatar May 12 '22 13:05 proofrock

Tentatively marking this as duplicate of #48

proofrock avatar May 16 '22 19:05 proofrock

"1 - after how much time does pupcloud/docker stop? 2 - if the datastore is mounted through the cli (not rclone) does pupcloud stop?"

Just filling in on this, in conjunction with troubleshooting problems with "Filebrowser" we are looking at memory usage overall and whether rclone's actions are contributing to the dirty closure of the fileshare, even though systemd is doing the mounting and presumably should remount. It is a work-in-progress.

On Thu, 12 May 2022 at 11:06, marioscube @.***> wrote:

1 - after how much time does pupcloud/docker stop? 2 - if the datastore is mounted through the cli (not rclone) does pupcloud stop?

— Reply to this email directly, view it on GitHub https://github.com/proofrock/pupcloud/issues/45#issuecomment-1124663474, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABV5MACAAF4RBFGXPWUGP3LVJS3Z5ANCNFSM5VXIEX3Q . You are receiving this because you authored the thread.Message ID: @.***>

DarrenPIngram avatar May 17 '22 09:05 DarrenPIngram

  1. No set time to reproduce per se.
  2. Not yet checked, but Docker would be the desired platform/mount. Must try a "screen" session maybe over the weekend to monitor for you.

On Thu, 12 May 2022 at 11:06, marioscube @.***> wrote:

1 - after how much time does pupcloud/docker stop? 2 - if the datastore is mounted through the cli (not rclone) does pupcloud stop?

— Reply to this email directly, view it on GitHub https://github.com/proofrock/pupcloud/issues/45#issuecomment-1124663474, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABV5MACAAF4RBFGXPWUGP3LVJS3Z5ANCNFSM5VXIEX3Q . You are receiving this because you authored the thread.Message ID: @.***>

DarrenPIngram avatar Oct 11 '22 08:10 DarrenPIngram