web-pdf-toolbox icon indicating copy to clipboard operation
web-pdf-toolbox copied to clipboard

Does not work if running with Speedtest Tracker Container

Open Unrepentant-Atheist opened this issue 3 years ago • 2 comments

I have a Synology DS918+ with Docker running. I created a Stack and deployed it successfully

---
version: '3.3'
services:
    web-pdf-toolbox:
        container_name: webpdf
        ports:
            - 25568:80
        environment:
            - PUID=1026
            - PGID=100
            - TZ=Europe/Berlin
        labels:
            - deunhealth.restart.on.unhealthy=true
        volumes:
            - /volume1/docker/webpdf:/tmp/pdf/
        restart: always
        image: zpex/web-pdf-toolbox
networks:
  default:
    name: dockernet
    external: true

The /volume1/docker/webpdf is the folder on my Synology. Upload doesn't work. Whenever I try to upload, a folder is created in stay_login=1; . It looks like this on my Synology: /volume1/docker/webpdf/stay_login=1;/ .

I changed

volumes:
    pdf:/tmp/pdf/

so, that docker creates a volume by itself. Still same problem: I still get a folder stay_login=1;, but this time inside the pdf-Volume docker created. I spun um my Ubuntu-VM on VirtualBox and deployed via docker-compose:

---
version: '3.3'
services:
    web-pdf-toolbox:
        container_name: webpdftoolbox
        ports:
            - 25568:80
        environment:
            - PUID=1026
            - PGID=100
            - TZ=Europe/Berlin
        labels:
            - deunhealth.restart.on.unhealthy=true
        volumes:
            - pdf:/tmp/pdf/
        restart: always
        image: zpex/web-pdf-toolbox
volumes:
  pdf:

tested it and it works. Why doesn't it work on my Synology?

More Info here: https://github.com/natpuch/web-pdf-toolbox/issues/22#issuecomment-939321845

Unrepentant-Atheist avatar Oct 09 '21 09:10 Unrepentant-Atheist

It works on my Synology DS418Play so that's a weird bug. I don't really know how to help you at the moment. Did you use the same browser? There is an issue saying upload does not work on Chrome.

natpuch avatar Oct 09 '21 15:10 natpuch

Yes, tried it on Chrome, Chromium, Opera, Firefox and Edge.

Firefox = doesn't work Opera = buggy Chrome, Chromium, Edge, Brave = works

On Opera I can upload it, then compress, etc. , but I can't download it. But there's a folder in /volume1/docker/webpdf/ after I compress with Opera, where the file is _compressed.pdf. I can open it fine, so at least that works.

Edit: Okay, now Firefox and Opera works too, I had to clear everything, history, cache, cookies, etc.

Edit2: It doesn't work again. I have more than one container running on the same internal IP 196.168.178.xxx, all they differ from are the ports 196.168.178.xxx:port, whenever I sign into another container other than web pdf toolbox, it stops working. I need to clear the cookies again for it to work. I thinks the hint is somewhere in the folder that's being created stay_login=1;

Edit3: Managed to narrow it down to 1 container that's causing this problem, not sure whether it's this or the other container that's doing it. The other container being: https://github.com/henrywhitaker3/Speedtest-Tracker , it doesn't have any log in, so I think stay_login=1; belongs to it, but not sure. Opened an issue: https://github.com/henrywhitaker3/Speedtest-Tracker/issues/736

Unrepentant-Atheist avatar Oct 09 '21 16:10 Unrepentant-Atheist