Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to resume in production environment (offset=0) #443

Closed
Brice155 opened this issue Aug 29, 2024 · 2 comments
Closed

Unable to resume in production environment (offset=0) #443

Brice155 opened this issue Aug 29, 2024 · 2 comments

Comments

@Brice155
Copy link

Brice155 commented Aug 29, 2024

Description
Hi,
First of all, thanks for your wonderful library !

Here my stack :

  • Frontend : vuejs + tus-js-client
  • Backend : Symfony v6 + Apache 2.4.51

I'm facing the following issue : locally, i can resume successfully, but in production env, i can't resume...
I'm using the FileStore adapter
Here are my tus cache file according to the following the scenario : trigger an upload and stop it with the "abort" function.

Locally :
{ "tus:server:49255025-ed5a-4c28-9c96-1e42ab66ec3c": { "offset": 3309568, "name": "2020-05-03_10-18-25.mp4", "size": 95861731, "checksum": "", "location": "http:\/\/localhost:8222\/private\/video\/upload\/49255025-ed5a-4c28-9c96-1e42ab66ec3c", "file_path": "C:\/temp\/var\/data\/in\/videos\/temp\/2020-05-03_10-18-25.mp4", "metadata": { "filename": "2020-05-03_10-18-25.mp4", "filetype": "video\/mp4", "filesize": "95861731" }, "created_at": "Thu, 29 Aug 2024 15:15:26 GMT", "expires_at": "Fri, 30 Aug 2024 15:15:26 GMT", "upload_type": "normal" } }

Remote (prod env) :
{ "tus:server:5e7e4885-6962-4e0b-bdd5-16c666392e02": { "name": "2023-01-30_16-27-38.mp4", "size": 5112037, "offset": 0, "checksum": "", "location": "https:\/\/api-develop.website.fr\/private\/video\/upload\/5e7e4885-6962-4e0b-bdd5-16c666392e02", "file_path": "\/home\/web\/api\/develop\/var\/data\/in\/videos\/temp\/2023-01-30_16-27-38.mp4", "metadata": { "filename": "2023-01-30_16-27-38.mp4", "filetype": "video\/mp4", "filesize": "5112037" }, "created_at": "Thu, 29 Aug 2024 15:11:47 GMT", "expires_at": "Fri, 30 Aug 2024 15:11:47 GMT", "upload_type": "normal" } }

I tried to change the files permissions but without success.

I just followed the examples tha you provide.

Please help me :)

@Brice155
Copy link
Author

Brice155 commented Sep 2, 2024

My first investigations show me that the TUS POST request don't send the header "Connection: keep-alive" (but it is ok locally on my own server). could it be the root cause ?

@Brice155
Copy link
Author

Brice155 commented Sep 7, 2024

The issue Can be closed. I will open another issue : #445

@Brice155 Brice155 closed this as completed Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant