View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
18626Bug reportsFile managerpublic2023-02-07 11:38
Reporterbbraeuer Assigned Toollehar  
PrioritynoneSeveritypartial_block 
Status closedResolutionno change required 
Product Version5.6.x 
Summary18626: Question File Upload is not working anymore.
Description

Hi,

since one of the last updates, we have problems with the file upload question type. Uploading files in a survey is not possible anymore. It does not look like settings problem in the app, because the apache error log shows:
PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0, referer: https://survey.myserver.de/index.php/123456

The execution of
php -r '$tmp_dir = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir(); die($tmp_dir."\n");'
results in "/tmp"
That folder permissions are 777.

Any ideas where the problem could be here? Sample PDF attached, file size limit is default 10240 kb

Kind regards
Benny

Steps To Reproduce

Steps to reproduce

use File upload question type in a survey

Expected result

the file is upload and the user get a success message

Actual result

the file is not uploaded and there is an error message

TagsNo tags attached.
Attached Files
Fehlerbehebung BBB.pdf (149,888 bytes)
Bug heat6
Complete LimeSurvey version number (& build)Version 5.6.4+230206
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL 5.6.51-log
Server OS (if known)
Webserver software & version (if known)
PHP Version7.2.24-0ubuntu0.18.04.16

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2023-02-06 20:02

administrator   ~73706

Check permissions in <limesurvey>/tmp/upload .
Anyway, this does not sound like a bug so our forums would be the better place to discuss this.

ollehar

ollehar

2023-02-07 02:23

administrator   ~73713

Can you enable debug = 2 in application/config/config.php and try again, please? Paste the complete error message here.

bbraeuer

bbraeuer

2023-02-07 09:03

reporter   ~73714

Hi, thanks for the reply.

<limesurvey>/tmp/upload is like usual 755. It belongs to www-data, the same user the apache is running with. Last successful file upload was on 23.01.23, so it's after the switch to 5.5.0

I have changed the debug level, but the output has not changed, the generic error message in the screenshot stays and there is no exception - what I would expect if php runs into a non writable or existent folder.
Is there any other place where LS put log output? application/logs/ has only an index.html.

Kind regards
Benny

bbraeuer

bbraeuer

2023-02-07 09:22

reporter   ~73715

Ok, php.ini ... sys_temp_dir = "/opt/tmp" and this folder belongs another user.
I am still wondering, why this folder is used, when LS has it's own, but the fault was on my side. I am sorry for the inconvenience. :-)

Kind regards
Benny

ollehar

ollehar

2023-02-07 11:37

administrator   ~73716

Glad it worked out. :)

Issue History

Date Modified Username Field Change
2023-02-06 17:24 bbraeuer New Issue
2023-02-06 17:24 bbraeuer File Added: Fehlerbehebung BBB.pdf
2023-02-06 17:24 bbraeuer File Added: Bildschirm­foto 2023-02-06 um 17.22.50.png
2023-02-06 20:02 c_schmitz Note Added: 73706
2023-02-06 20:02 c_schmitz Bug heat 0 => 2
2023-02-07 02:23 ollehar Note Added: 73713
2023-02-07 02:23 ollehar Bug heat 2 => 4
2023-02-07 02:23 ollehar Assigned To => ollehar
2023-02-07 02:23 ollehar Status new => feedback
2023-02-07 09:03 bbraeuer Note Added: 73714
2023-02-07 09:03 bbraeuer File Added: Bildschirm­foto 2023-02-07 um 09.00.36.png
2023-02-07 09:03 bbraeuer File Added: Bildschirm­foto 2023-02-07 um 09.00.19.png
2023-02-07 09:03 bbraeuer File Added: Bildschirm­foto 2023-02-07 um 08.59.48.png
2023-02-07 09:03 bbraeuer Bug heat 4 => 6
2023-02-07 09:03 bbraeuer Status feedback => assigned
2023-02-07 09:22 bbraeuer Note Added: 73715
2023-02-07 11:37 ollehar Note Added: 73716
2023-02-07 11:38 ollehar Status assigned => closed
2023-02-07 11:38 ollehar Resolution open => no change required