I have issue with my nextcloud server as it has proper 6 core and 6 gb of ram which is more then enough to work

My nextcloud server has 6gb ram and 6 core as a setup.

I am using true nas SMB storage and attached it externally on true nas they both communicate fine and cna see all the updates

I have more then 25000 files from my phone to sync but due to some reasons after 4000 upload which is roughly about 7 gb it throughs the error of internal server error 500.

I have made changes according to the suggestions made by community to .conf file to .php file and what not.

I really need help as i have 10 tb of storage which is going to waste.

Nextcloud is best to work with but sync seems to be not working fine from app.

I really need help here and it would be really appreciated

Check your webserver log if error is present.

+1 and also the nextcloud log file that is in NC directory.
when you say SMB you mean storage that is SmallMediumBusiness quality or Samba ? If you use Samba for the share I would strongly suggest to use instead nfs that is far more efficient and reliable :wink: (so long both systems are running on Linux !)

Probably not the solution you are looking for.
But for file syncing I switched to syncthing years ago, and just sync the files into the nextcloud directory (And to several other places).
For that to work you either need a cronjob to regularly scan for new files, or add
‘filesystem_check_changes’ => 1
to your config.

But either way, you should check your logfiles to find potential problems with your server.

There was error but it randomly generates which I don’t understand why

So no logs on next cloud log but still happy to show you if we can connect?..

As well as nectcloud instance is running on my proxmox and i have seperate hardware for true nas where i have created a share and attached it to the next cloud as a external storage device using smb/cifs using username and password

I dont think it would be helpful can i connect to the next cloud?

And CORRECTION this setup is for my home use

THIS ARE MY SERVER LOGS:

[Wed Jan 01 12:43:49.053349 2025] [ssl:error] [pid 1814:tid 1814] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=nextcloud.8.8.8.8 / issuer: CN=nextcloud.8.8.8.8 / serial: 4D94D7A68C1B3B0A1C9C6D33D4445682D744AAEA / notbefore: Dec  8 22:25:27 2024 GMT / notafter: Dec  8 22:25:27 2034 GMT]
[Wed Jan 01 12:43:49.053362 2025] [ssl:error] [pid 1814:tid 1814] AH02604: Unable to configure certificate localhost:12322:0 for stapling
[Wed Jan 01 12:43:49.086505 2025] [ssl:warn] [pid 1815:tid 1815] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jan 01 12:43:49.086625 2025] [ssl:error] [pid 1815:tid 1815] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=nextcloud.8.8.8.8 / issuer: CN=nextcloud.8.8.8.8 / serial: 4D94D7A68C1B3B0A1C9C6D33D4445682D744AAEA / notbefore: Dec  8 22:25:27 2024 GMT / notafter: Dec  8 22:25:27 2034 GMT]
[Wed Jan 01 12:43:49.086631 2025] [ssl:error] [pid 1815:tid 1815] AH02604: Unable to configure certificate localhost:443:0 for stapling
[Wed Jan 01 12:43:49.086953 2025] [ssl:warn] [pid 1815:tid 1815] AH01909: localhost:12322:0 server certificate does NOT include an ID which matches the server name
[Wed Jan 01 12:43:49.087037 2025] [ssl:error] [pid 1815:tid 1815] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=nextcloud.8.8.8.8 / issuer: CN=nextcloud.8.8.8.8 / serial: 4D94D7A68C1B3B0A1C9C6D33D4445682D744AAEA / notbefore: Dec  8 22:25:27 2024 GMT / notafter: Dec  8 22:25:27 2034 GMT]
[Wed Jan 01 12:43:49.087041 2025] [ssl:error] [pid 1815:tid 1815] AH02604: Unable to configure certificate localhost:12322:0 for stapling
[Wed Jan 01 12:43:49.091789 2025] [mpm_prefork:notice] [pid 1815:tid 1815] AH00163: Apache/2.4.62 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations
[Wed Jan 01 12:43:49.091805 2025] [core:notice] [pid 1815:tid 1815] AH00094: Command line: '/usr/sbin/apache2'
1 Like

My cronjob runs every 5 minutes

Thanks for the logs and it quite clears, you have a serious SSL configuration issue in your webserver. You have to fix that to get Nextcloud working fine or at least a better chance :wink:

Even if it’s SSL certificate issue ot should affect the working, right?

Doesn’t matter!

Well if you don’t want to listen at help we try to give you, fix the problem by yourself then :wink:
good luck and happy new year !

1 Like

Ohh. Can’t i ask real reason why it can happen if you cant answer it or help it then its alright there will be people who are willing to help

Thank you

Hello @Jaimin_Soni ,

looking at your logs and you need to fix your ssl issues.
Otherwise your webserver will not work correctly.

2 Likes

Even if it’s SSL certificate issue ot should affect the working, right?

You completely ignored the support template so we really have no idea since we need more information to help you.

I’m not not clear how you’re “syncing” your photos. There are multiple ways of settings things up so please give us the step-by-step of your process.

Are you using a web browser? Or are you using one of the official Nextcloud mobile client apps? (If so, which one? Android? iOS? And which version?)

Where are you seeing the “Internal Server error 500” appear part way through your transfers? Maybe you can post a screenshot?

Are the “server logs” you posted in your follow-up from the actual container/VM/whatever running PHP/Nextcloud? They look more like they’re from a reverse proxy terminating just your HTTPS perhaps?

Hey JTR, Sorry i did not get the support template,

I am syncing my photos using NextCloud IOS mobile app.

here is the step wise process that i follow,
I log into my phone’s nextcloud account > go to auto sync > select the folder in which i want to sync my photos (i.e my SMB attached storage) > turn on the sync

i seeing internal server error on my phone’s app but i dont have screen shot and even ialso have new error called UPLOAD FILE Malformed state response from server will attach screen shot now.

Now according to this screenshot it appears after once there is a upload of about 8 to 9 GB that is about (45500 to 5000 photos)

Yes the screenshot attached is actual VM on my PROXMOX server.

Yes so my nextcloud is using cloud flare tunnel to get out to internet that way i can make sure my network is not exposed to the internet directly.

[webdav] Error: Icewind\SMB\Exception\Exception: Malformed state response from server at <>

  1. /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php line 217
    Icewind\SMB\Wrapped\Parser->parseStat()
  2. /var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php line 191
    Icewind\SMB\Wrapped\Share->stat()
  3. /var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php line 666
    OCA\Files_External\Lib\Storage\SMB->getFileInfo()
  4. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 227
    OCA\Files_External\Lib\Storage\SMB->file_exists()
  5. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php line 244
    OC\Files\Storage\Wrapper\Wrapper->file_exists()
  6. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 227
    OC\Files\Storage\Wrapper\Availability->file_exists()
  7. /var/www/nextcloud/lib/private/Files/View.php line 1367
    OC\Files\Storage\Wrapper\Wrapper->file_exists()
  8. /var/www/nextcloud/lib/private/Files/View.php line 1412
    OC\Files\View->getCacheEntry()
  9. /var/www/nextcloud/lib/private/Files/Node/Root.php line 202
    OC\Files\View->getFileInfo()
  10. /var/www/nextcloud/lib/private/Files/Node/Folder.php line 134
    OC\Files\Node\Root->get()
  11. /var/www/nextcloud/lib/private/Files/Node/Folder.php line 143
    OC\Files\Node\Folder->get()
  12. /var/www/nextcloud/apps/text/lib/Service/WorkspaceService.php line 26
    OC\Files\Node\Folder->nodeExists()
  13. /var/www/nextcloud/apps/text/lib/DAV/WorkspacePlugin.php line 110
    OCA\Text\Service\WorkspaceService->getFile()
  14. /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    OCA\Text\DAV\WorkspacePlugin->propFind()
  15. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1052
    Sabre\DAV\Server->emit()
  16. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 984
    Sabre\DAV\Server->getPropertiesByNode()
  17. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1662
    Sabre\DAV\Server->getPropertiesIteratorForPath()
  18. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1647
    Sabre\DAV\Server->writeMultiStatus()
  19. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 346
    Sabre\DAV\Server->generateMultiStatus()
  20. /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpPropFind()
  21. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 472
    Sabre\DAV\Server->emit()
  22. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod()
  23. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
  24. /var/www/nextcloud/apps/dav/lib/Server.php line 361
    Sabre\DAV\Server->exec()
  25. /var/www/nextcloud/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
  26. /var/www/nextcloud/remote.php line 172
    require_once(“/var/www/nextcl … p”)

Maybe it’s related to this bug:

I would just try out to switch from SMB to NFS.

This suggests your SMB server is sending a malformed response at some point along the way. It means the response that came from the SMB server when Nextcloud tried to stat() the file is not all in an expected format.

One thing that stands out here is that you appear to be using the smbclient binary wrapper rather than the native PHP smbclient. Before troubleshooting this much, I’d switch. It should have better performance anyhow. And due to how it works it may be less likely to hit a parsing issue (at least if it’s a valid response).