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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to export Submissions: Not allowed to write to file #2067
Comments
Did you restart your php processes? Are you using php-fpm? We had lots of errors in the past after upgrades due to cached code... |
Could you please provide the full object from the log? Including the error message? |
@Chartman123 PHP-FPM had been restarted. @susnux here is a full log entry, all I have changed is the IP address and I also ran it through {
"reqId": "oLRtH9XtF8rwtUiZidOT",
"level": 2,
"time": "2024-04-15T19:08:20+00:00",
"remoteAddr": "X.X.X.X",
"user": "--",
"app": "forms",
"method": "POST",
"url": "/ocs/v2.php/apps/forms/api/v2.4/submission/insert",
"message": "Failed to export Submissions: Not allowed to write to file",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0",
"version": "28.0.4.1",
"data": {
"app": "forms"
}
} |
Thank you, but @chriscroome what I meant is from you browser console there should be the network request that fails, could you please provide the response from the server? But for you there should be a more meaningful error message |
This is what I have after exporting it and changing the domain name: [ERROR] forms: Error while submitting the form
Object { app: "forms", level: 2, error: {鈥 }
NcSettingsSection-NSrCZ23G-6nKKlVz9.mjs:2:337806
value https://cloud.example.com/apps/forms/js/NcSettingsSection-NSrCZ23G-6nKKlVz9.mjs:2
value https://cloud.example.com/apps/forms/js/NcSettingsSection-NSrCZ23G-6nKKlVz9.mjs:2
onConfirmedSubmit https://cloud.example.com/apps/forms/js/Submit-PS6lxYc-.mjs:2 Is that what you need? |
I have also found
And this is from the Apache error log:
|
I could reproduce this on the instance, but there is not much helpful information for further debugging. Where is the file located you want to export submissions to? A groupfolder? Local storage? Is the file or parent folder shared? |
I didn't set the form up so I don't know the answers to these questions I'm afraid but I have asked our client if they know the answers. I think I have found the |
The issue is still present on the instance mentioned by chriscroome. I was able to make a new test form that leads to the same error message "There was an error submitting the form" whenever a submission is attempted by a user (except the owner of the form, for whom there is not such message). If no spreadsheet is created, or if it is created in the form owner's personal space, no such issue was noticed. |
@mariomorvan thanks for sharing this information with us. Are those "normal" shared folders or group folders or something else? |
@Chartman123 thanks for looking into this. Normal share as far as I understand the different kind of shares (we do not have installed group folders) |
the logs show the following message associated with today's submission errors:
|
@mariomorvan @susnux I could reproduce it this way:
What's strange to me is that I don't get the original warning/error message but an error 500. Perhaps something else changed in the meantime. Heres the server logfile attached that I could see: Logfile
|
Please use the 馃憤 reaction to show that you are affected by the same issue. Please don't comment if you have no relevant information to add!
Describe the bug
A Nextcloud instance that did have a working Forms app now generates an error on form submission.
To Reproduce
Steps to reproduce the behaviour:
Expected behavior
A successfully submission.
Nextcloud (please complete the following information):
Desktop (please complete the following information):
Smartphone (please complete the following information):
Browser log
Nextcloud log
The following is written to the Nextcloud log:
Server logs
There is nothing in the Apache or PHP-FPM logs.
TMPDIR
The
tempdirectory
is writable.Additional context
The error that is produced appears to be here:
forms/lib/Service/SubmissionService.php
Line 226 in 1ba3a14
The change to the server (the forms were working prior to this change), was updating from Debian Bullseye to Debian Bookworm, the instance uses PHP-FPM 8.3.
I have tried to duplicate this on another server with the same configuration but haven't been able to.
The text was updated successfully, but these errors were encountered: