filestash icon indicating copy to clipboard operation
filestash copied to clipboard

[bug] Middleware configuration is lost upon restart

Open Haarolean opened this issue 2 years ago • 7 comments

Description of the bug

Upon a restart my middleware configuration (passthrough for S3) is being lost like it's never been there.

Step by step instructions to reproduce the bug

  1. Set up the app (I use machines/filestash image) machines/filestash latest 1d247ef124b3 2 months ago 1.1GB
  2. Set up s3 backend with a passthrough middleware
  3. Restart the container
  4. Profit

Can you replicate that error from the demo?

Observed behavior

settings are being lost

Expected behavior

they're not

Haarolean avatar Feb 22 '23 08:02 Haarolean

My container setup:

services:
  filestash:
    container_name: filestash
    image: machines/filestash
    restart: unless-stopped
    user: "1000:998"
    networks:
      - web_ingress
    volumes:
      - ./data:/app/data/state:rw
    environment:
      - APPLICATION_URL=https://stash.xxx.dev/

Haarolean avatar Feb 22 '23 08:02 Haarolean

The way to reproduce this is to enable some middleware, change some other settings (e.g. upload checkbox in general settings) and restart the container. The middleware part of the config is gone.

Haarolean avatar Feb 26 '23 09:02 Haarolean

This one is still an issue. If I have to edit something, I get this part of the config lost anyways.

Haarolean avatar Mar 03 '23 05:03 Haarolean

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 18 '23 14:06 stale[bot]

bump

Haarolean avatar Jun 19 '23 16:06 Haarolean

same issue here, it also seems to randomly happen sometimes without touching anything. Sometimes I become unable to log into the admin page too. messing with the config file I was able to get back into it but now I can't get to the "backend" page, it just won't stop loading. the /login page works but it's just the default now.

It's weird, I haven't found a way to reproduce other than waiting. I'm lost

FAB1150 avatar Sep 01 '23 10:09 FAB1150

Same issue with SFTP backend and Passthrough middleware.

Stormrice avatar Sep 25 '23 09:09 Stormrice