Uploading: "Error: An unexpected error was encountered."

1,096 views
Skip to first unread message

Robert Carey

unread,
Nov 29, 2021, 1:05:58 PM11/29/21
to ResourceSpace
Can anyone help with this?  Every time we try to upload pretty much any amount of images, some will fail and throw an error like this in the log (also see screenshot attached for visual context)

"Error: An unexpected error was encountered. Please check that the filename is valid. If the problem persists please contact your system administrator"

scanning the client-side javascript logs shows this:

"[Uppy] [12:57:02] Failed to upload MicrosoftTeams-image (74).png tus: unexpected response while uploading chunk, originated from request (method: POST, url: https://(url redacted)/pages/upload_batch.php/files/9bdd6ba3-cc07-4280-a875-1226ee4222d0, response code: 410, response text: , request id: n/a)
error @ uppy.js?397:2731"

You can restart the upload by hitting the thumbnail refresh arrow and they typically upload individually after doing so, but this is maddening.

resourcespace-Screenshot-error.jpg

Robert Carey

unread,
Feb 2, 2022, 1:59:53 PM2/2/22
to ResourceSpace
Is there really no recourse to resolve this?/ Nobody else has seen this or nobody from ResourceSpace can add any insights??   I've asked a couple questions on this forum and I haven't had any responses whatsoever.

Not trying to sound entitled - I just was hoping there would be some insights shared.  If I'm asking without providing enough info or context, please let me know and I'll happily try to provide more.

Robert Carey

unread,
Feb 2, 2022, 3:57:28 PM2/2/22
to ResourceSpace
In case it helps anyone else here, I believe this issue has been resolved for me by upgrading my PHP version to 7.4.27 from 7.2.34

This post here:

and
https://groups.google.com/g/resourcespace/c/ddkzJDMHbjk

mentions that the latest version of ResourceSpace requires at least version 7.2.5 - something I was not aware of until reading it here.   Might be worth a flag on installation to verify that the minimum version requirements have been met?

In any case, the upload issue I was encountering has seemed to stop, or at the very least reduced to the point I have not encountered it again with some initial testing.  It was something that occurred on every multiple file upload previous to this fix.

Joao Lamares

unread,
Feb 14, 2022, 9:02:32 AM2/14/22
to ResourceSpace
Hi Robert. I have the some problem and unic way to fix it it's downgrade to version 9.6. I do it and no more erros in upload.
I hope this ca help you
See you
Joao

tompl...@gmail.com

unread,
Feb 14, 2022, 9:16:20 AM2/14/22
to ResourceSpace
Hi Robert and jaol.

I have the same issue.
But donwgrade to version 9.6 can't the solution.

I try to solve it with another php Version, but this was also no solution.
So if anyone has a solution for this, some people are certainly grateful.

Joao Lamares

unread,
Feb 14, 2022, 10:00:59 AM2/14/22
to ResourceSpace
Hi Robert.
I have this problem a long time ago. May be from this new version 9.7.
Today i do downgrade to 9.6 and the problem its go.
So, because no one are a solution I share my experience. You right! Its not the solution, but in the middle time, fix it.
See you and thanks
Joao

Joao Lamares

unread,
Feb 14, 2022, 10:16:45 AM2/14/22
to ResourceSpace
Also, I check my PHP version and it's 7.4.26
I do not understand this kind of errors and the silence about this...
Ok we install RS by hour own risk, yes, but I work with this since 2010 and, Is it not easy, but with time and patience you do it (ok if you cant pay you invest you time).
Since some times ago it comes more and more difficult and now I used it only for archive and change all my system (yes I need to pay something, but I pay something I can, Not thousands I cant - I'm a Photographer and I used RS to give access to my clients)
So Robert, one more time, you right!
See you
Joao

Joao Lamares

unread,
Feb 14, 2022, 10:19:49 AM2/14/22
to ResourceSpace
Robert? My mistake, sory, Tompl...

Dmitry Vanditch

unread,
Aug 26, 2022, 8:55:56 AM8/26/22
to ResourceSpace
Hi, guys!

I have the same problem on my installation (PHP 7.4 / IIS+FastCGI ) after upgrade RS to 9.8 from 7.x.
I think that problem may be relate to tus module in RS.  This module realize upload multiple files and lost some parts of uploaded data - i found broken parts in temp directory on server. And  this case also may relate to max available php-threads on server.
So, can I ask you for details of your RS installation, e.g. server platform? It may get me more data to research problem.

My next steps:
1. Check (and update) modules in tus directory
2. Check this issue on RS 10 :)  but, this case need more time to prepare test configuration on my platform
3. Deep dive in tus config / php config and try to trace problem step-by-step

If problem still actual, please answer me. And I inform about my results.

WBR,
Dmitry

P.S. Joao, I setup and start using RS from same time, about 2010 :)
понедельник, 14 февраля 2022 г. в 18:19:49 UTC+3, joaol...@gmail.com:

EZEQUIEL Lio

unread,
Sep 16, 2022, 5:52:54 AM9/16/22
to ResourceSpace
hello there really is quite a lot of silence with this problem. I have it too. and it is a desperate behavior. since they changed to the new upload module it is happening to me. when there are more than 5 or 6 files. curiously it doesn't happen when you upload the Alternative files. I think it's something in the initial process. can someone help. this is a big problem. Thank you

Brian Irwin

unread,
Sep 16, 2022, 12:23:21 PM9/16/22
to ResourceSpace
Hello!

I have been testing version 10 this week (before I commit to an upgrade from 9.7) and have just encountered this same error that seems to occur at random.  (I usually upload batches of images as alternative files in my workflow so I didn't catch this until it was mentioned here.) 
I did a test batch upload of 100 png images and one of them failed with the same error message:
_______________________________________________________
vlcsnap-2022-07-19-11h21m42s606.png - Created 37
vlcsnap-2022-07-19-11h21m37s682.png - Created 38
vlcsnap-2022-07-19-11h21m48s989.png: An unexpected error was encountered. Please check that the filename is valid. If the problem persists please contact your system administrator        
       
         []

vlcsnap-2022-07-19-11h21m43s563.png - Created 39
vlcsnap-2022-07-19-11h21m45s865.png - Created 40
vlcsnap-2022-07-19-11h21m51s197.png - Created 42
______________________________________________________

I'm using RS 10.0 r20676 with PHP 7.4.30 on Ubuntu 20.04.4 LTS

This error does not happen on my 9.7 installation. 

I'll continue to test, compare the code from 9.7, and report back!  

Best Regards,

Brian

Brian Irwin

unread,
Sep 20, 2022, 2:47:53 PM9/20/22
to ResourceSpace
I haven't been able to replicate this anymore on my end.  It happened just that one time and I have uploaded about 800 files since without any problems. 
I did upgrade to PHP 8.0.23 due to a custom plugin that I was creating.  Not entirely sure if that was the root cause, but my RS 10 installation seems to be in a more stable state at the moment. 
Best Regards

Robert Carey

unread,
Jan 8, 2024, 12:29:04 PM1/8/24
to ResourceSpace
Everyone - 

I had to migrate my resourcespace installation to a new server this week and in doing so I spent a great deal of time trying various PHP versions and in particular,  playing with the php-apcu extension.

I have discovered that upon disabling this extension, it seems to have eliminated all my upload issues I was having with bilk uploads.   Extremely counterintuitive given the message in the installation check that assures the contrary:  "The php-apcu extension is not installed. Enable this to make uploads faster and more resilient"

My guess is that on some platforms or installations, that even though php-apcu may be reporting in resourcespace as "OK", it is actually not fully baked or functioning.  Or Resourcespace is not utilizing this extension properly accounting for various distro nuances maybe?

In either case, disabling it 100% at the php level might help those with the same issues.

Mike Perry

unread,
Jan 8, 2024, 5:10:10 PM1/8/24
to ResourceSpace
I had upload issues with later versions of RD that used php-acpu.  Turned out my shared server configuration wouldn't play nice with php-apcu. php-apcu is highly recommended with the Uppy upload platform now incorporated in RS. I had to disable  php-apcu in php.ini to eliminate the errors. Dan at Montela was surprised that Uppy worked without php-apcu enabled. It seems to upload okay -- it's just not as efficient. I didn't try it with the various Uppy Companion services - just the local upload. . .
Reply all
Reply to author
Forward
0 new messages