Coder Social home page Coder Social logo

Comments (4)

base2code avatar base2code commented on June 30, 2024 2

First I had the same issue, but I forget to pass REDIS_HOST and FILE_DIR explicity. With this Docker run command the deployment should be working fine (Replace Redis host IP):

(Copied from /docs/docker.md)
# create a network for the send backend and redis containers to talk to each other
$ docker network create timviseesend

# start the redis container
$ docker run --net=timviseesend -v $PWD/redis:/data redis-server --appendonly yes

# start the send backend container
docker run -d \
    --net=timviseesend \
    -v $PWD/uploads:/uploads \
    -p 1443:1443 \
    -e 'BASE_URL=https://send.example.com' \
    -e 'MAX_FILE_SIZE=21474836480' \
    -e 'MAX_EXPIRE_SECONDS=2592000' \
    -e 'NODE_ENV=production' \
    -e 'FILE_DIR=/uploads' \
    -e 'REDIS_HOST=172.18.0.2' \
    -e 'SEND_FOOTER_DMCA_URL=https://example.com' \
    --name send_app \
    registry.gitlab.com/timvisee/send:latest

from send.

sufd4 avatar sufd4 commented on June 30, 2024 1

Thank you, that solved it

from send.

timvisee avatar timvisee commented on June 30, 2024

Please make sure you run Send in production mode by setting NODE_ENV=production.

For a Docker set-up, set the following property: https://github.com/timvisee/send-docker-compose/blob/6f517849cd6ef0a784bd02265346baade612d7f9/docker-compose.yaml#L46

Redis should be used when running in production mode. If you're still experiencing issues you can run MONITOR within Redis to watch if any operation is coming through.

from send.

sufd4 avatar sufd4 commented on June 30, 2024

MONITOR

Great, thank you for this assistance. I missed putting it in production. I can see it now does communicate with redis and links survive restarts of the docker container. However, while the link is active the file cannot be downloaded. It just goes to the download progress bar and then back to the link page.

I notice that the upload folder is still unused and the tmp folder contains a new /send-XXXXXX folder each time the docker container restarts. Moving files from the previous tmp folder to the current one does enable all the previous links to function again but this is definitely not what you intend. The log just shows [ 'https://[...MYBASEURL...]', 'wss://...MYBASEURL...' ] repeatedly.

Have you encountered anything like this? Thank you.

from send.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.