nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.72k stars 4k forks source link

Files on SMB-share corrupted while up- and downloading #26457

Closed ShinjiLE closed 3 years ago

ShinjiLE commented 3 years ago

Steps to reproduce

Using SMB Share

Expected behaviour

Files uploaded and downloaded without corruption

Actual behaviour

Datablocks are truncated to 8192 Bytes

Server configuration detail

Operating system: Linux 5.11.6-1-default #1 SMP Thu Mar 11 16:11:36 UTC 2021 (7358b30) x86_64

Webserver: Apache (fpm-fcgi)

Database: mysql 10.5.9

PHP version:

7.4.16 Modules loaded: Core, date, libxml, pcre, filter, hash, Reflection, SPL, session, SimpleXML, standard, xml, cgi-fcgi, mysqlnd, apcu, bcmath, bz2, ctype, curl, dom, enchant, mbstring, fileinfo, ftp, gd, gettext, gmp, ice, iconv, imagick, intl, json, lzf, exif, memcached, mysqli, openssl, pcntl, PDO, pdo_mysql, pdo_sqlite, zlib, posix, readline, redis, smbclient, sockets, sqlite3, tidy, tokenizer, uuid, xmlreader, xmlwriter, zip, Phar, libsmbclient, Zend OPcache

Nextcloud version: 21.0.1 RC1 - 21.0.1.0

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

Signing status Array ( )
List of activated apps ``` Enabled: - activity: 2.14.3 - admin_audit: 1.11.0 - announcementcenter: 5.0.0 - bookmarks: 4.1.0 - calendar: 2.2.0 - checksum: 1.1.2 - cloud_federation_api: 1.4.0 - comments: 1.11.0 - contacts: 3.5.1 - contactsinteraction: 1.2.0 - dashboard: 7.1.0 - dav: 1.17.1 - deck: 1.3.2 - duplicatefinder: 0.0.6 - event_update_notification: 1.2.0 - extract: 1.3.1 - federatedfilesharing: 1.11.0 - federation: 1.11.0 - files: 1.16.0 - files_external: 1.12.0 - files_fulltextsearch: 21.0.0 - files_fulltextsearch_tesseract: 20.0.1 - files_markdown: 2.3.3 - files_pdfviewer: 2.1.0 - files_rightclick: 1.0.0 - files_sharing: 1.13.1 - files_texteditor: 2.14.0 - files_trashbin: 1.11.0 - files_versions: 1.14.0 - files_videoplayer: 1.10.0 - firstrunwizard: 2.10.0 - fulltextsearch: 21.0.0 - fulltextsearch_elasticsearch: 21.0.0 - groupfolders: 9.0.0 - impersonate: 1.8.0 - integration_github: 1.0.0 - integration_mastodon: 1.0.0 - integration_twitter: 1.0.0 - issuetemplate: 0.7.0 - logreader: 2.6.0 - lookup_server_connector: 1.9.0 - maps: 0.1.8 - metadata: 0.13.0 - music: 1.1.0 - news: 15.3.2 - nextcloud_announcements: 1.10.0 - notes: 4.0.4 - notifications: 2.9.0 - notify_push: 0.1.6 - oauth2: 1.9.0 - passman: 2.3.7 - password_policy: 1.11.0 - phonetrack: 0.6.7 - photos: 1.3.0 - polls: 1.8.1 - previewgenerator: 3.1.1 - pride: 0.0.3 - privacy: 1.5.0 - provisioning_api: 1.11.0 - recommendations: 1.0.0 - serverinfo: 1.11.0 - settings: 1.3.0 - sharebymail: 1.11.0 - side_menu: 1.23.1 - social: 0.4.2 - spreed: 11.1.1 - support: 1.4.0 - survey_client: 1.9.0 - systemtags: 1.11.0 - tasks: 0.13.6 - telephoneprovider: 1.0.3 - text: 3.2.0 - theming: 1.12.0 - twofactor_backupcodes: 1.10.0 - updatenotification: 1.11.0 - user_status: 1.1.1 - viewer: 1.5.0 - weather_status: 1.1.0 - workflowengine: 2.3.0 Disabled: - accessibility - apporder - bruteforcesettings - circles - encryption - epubreader - files_linkeditor - files_trackdownloads - flowupload - integration_discourse - nextbackup - suspicious_login - talk_matterbridge - talk_simple_poll - user_ldap ```
Configuration (config/config.php) ``` { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "nextcloud.mybase.selfhost.de", "cloudnext.mybase.selfhost.de" ], "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "default_phone_region": "DE", "datadirectory": "***REMOVED SENSITIVE VALUE***", "tempdirectory": "\/var\/tmp\/nextcloudtemp", "overwrite.cli.url": "https:\/\/nextcloud.mybase.selfhost.de", "knowledgebaseenabled": true, "dbtype": "mysql", "version": "21.0.1.0", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "updater.release.channel": "beta", "appstore.experimental.enabled": true, "maintenance": false, "loglevel": 3, "debug": false, "htaccess.RewriteBase": "\/", "activity_use_cached_mountpoints": true, "session_keepalive": true, "session_lifetime": 86400, "versions_retention_obligation": "auto", "trashbin_retention_obligation": "auto", "enable_previews": true, "preview_max_x": 2560, "preview_max_y": 1600, "preview_max_filesize_image": 200, "preview_libreoffice_path": "\/usr\/bin\/libreoffice", "preview_office_cl_parameters": " --headless --nologo --nofirststartwizard --invisible --norestore --convert-to pdf --outdir ", "enabledPreviewProviders": [ "OC\\Preview\\PNG", "OC\\Preview\\JPEG", "OC\\Preview\\GIF", "OC\\Preview\\BMP", "OC\\Preview\\XBitmap", "OC\\Preview\\MP3", "OC\\Preview\\TXT", "OC\\Preview\\MarkDown", "OC\\Preview\\TIFF", "OC\\Preview\\SVG", "OC\\Preview\\Postscript", "OC\\Preview\\OpenDocument", "OC\\Preview\\PDF", "OC\\Preview\\Font", "OC\\Preview\\Epub", "OC\\Preview\\StarOffice", "OC\\Preview\\HEIC", "OC\\Preview\\KRITA" ], "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_smtpmode": "smtp", "mail_smtpauthtype": "LOGIN", "mail_domain": "***REMOVED SENSITIVE VALUE***", "log_type": "syslog", "logfile": "\/var\/log\/nextcloud.log", "logfilemode": 416, "log_rotate_size": 104857600, "syslog_tag": "Nextcloud", "memcache.distributed": "\\OC\\Memcache\\Memcached", "memcache.local": "\\OC\\Memcache\\Redis", "filelocking.enabled": "true", "filelocking.ttl": 3600, "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 6379, "timeout": 0, "dbindex": 0, "password": "***REMOVED SENSITIVE VALUE***" }, "memcached_servers": [ [ "192.168.1.10", 11211 ], [ "192.168.1.50", 11211 ] ], "data-fingerprint": "790e9a77b6ee76b2af214c8f58d75dfd", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpauth": 1, "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "mail_smtpsecure": "tls", "mysql.utf8mb4": true, "allow_user_to_change_display_name": true, "auth.bruteforce.protection.enabled": true, "ldapIgnoreNamingRules": false, "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory", "theme": "", "app_install_overwrite": [ "fulltextsearch", "fulltextsearch_elasticsearch", "files_fulltextsearch", "files_fulltextsearch_tesseract", "passman", "pride", "checksum", "files_markdown", "telephoneprovider", "circles", "camerarawpreviews", "files_external_gdrive", "music", "facerecognition", "groupfolders", "side_menu", "metadata", "issuetemplate" ], "updater.secret": "***REMOVED SENSITIVE VALUE***" } ```

Are you using external storage, if yes which one: smb

Are you using encryption:

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

Client configuration

Browser: Mozilla/5.0 (X11; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0

Operating system:

Logs

Web server error log ``` Insert your web server log here ```
Nextcloud log ``` Apr 08 10:37:33 rin libsmbclient[2213]: {"reqId":"ipoKR7FMx5eRhV7BUHwF","level":3,"time":"2021-04-08T08:37:33+00:00","remoteAddr":"84.134.23.233","user":"shinji","app":"PHP","method":"GET","url":"/index.php/apps/files/api/v1/thumbnail/256/256/Bilder/Photos/2021/04/IMG_20210408_103713.jpg","message":"{\"Exception\":\"Error\",\"Message\":\"fread(): Icewind\\\\SMB\\\\Native\\\\NativeReadStream::stream_read - read 253952 bytes more data than requested (262144 read, 8192 max) - excess data will be lost at /srv/www/vhosts/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php#55\",\"Code\":0,\"Trace\":[{\"function\":\"onError\",\"class\":\"OC\\\\Log\\\\ErrorHandler\",\"type\":\"::\",\"args\":[2,\"fread(): Icewind\\\\SMB\\\\Native\\\\NativeReadStream::stream_read - read 253952 bytes more data than requested (262144 read, 8192 max) - excess data will be lost\",\"/srv/www/vhosts/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php\",55,{\"count\":8192}]},{\"file\":\"/srv/www/vhosts/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php\",\"line\":55,\"function\":\"fread\",\"args\":[null,8192]},{\"file\":\"/srv/www/vhosts/nextcloud/apps/files_external/3rdparty/icewind/streams/src/CallbackWrapper.php\",\"line\":96,\"function\":\"stream_read\",\"class\":\"Icewind\\\\Streams\\\\Wrapper\",\"type\":\"->\",\"args\":[8192]},{\"function\":\"stream_read\",\"class\":\"Icewind\\\\Streams\\\\CallbackWrapper\",\"type\":\"->\",\"args\":[8192]},{\"file\":\"/srv/www/vhosts/nextcloud/lib/private/Preview/ProviderV2.php\",\"line\":92,\"function\":\"file_put_contents\",\"args\":[\"/tmp/oc_tmp_XQQFAM\",null]},{\"file\":\"/srv/www/vhosts/nextcloud/lib/private/Preview/Image.php\",\"line\":50,\"function\":\"getLocalFile\",\"class\":\"OC\\\\Preview\\\\ProviderV2\",\"type\":\"->\",\"args\":[{\"__class__\":\"OC\\\\Files\\\\Node\\\\File\"}]},{\"file\":\"/srv/www/vhosts/nextcloud/lib/private/Preview/GeneratorHelper.php\",\"line\":63,\"function\":\"getThumbnail\",\"class\":\"OC\\\\Preview\\\\Image\",\"type\":\"->\",\"args\":[{\"__class__\":\"OC\\\\Files\\\\Node\\\\File\"},2560,1600]},{\"file\":\"/srv/www/vhosts/nextcloud/lib/private/Preview/Generator.php\",\"line\":244,\"function\":\"getThumbnail\",\"class\":\"OC\\\\Preview\\\\GeneratorHelper\",\"type\":\"->\",\"args\":[{\"__class__\":\"OC\\\\Preview\\\\JPEG\"},{\"__class__\":\"OC\\\\Files\\\\Node\\\\File\"},2560,1600]},{\"file\":\"/srv/www/vhosts/nextcloud/lib/private/Preview/Generator.php\",\"line\":140,\"function\":\"getMaxPreview\",\"class\":\"OC\\\\Preview\\\\Generator\",\"type\":\"->\",\"args\":[{\"__class__\":\"OC\\\\Files\\\\SimpleFS\\\\SimpleFolder\"},{\"__class__\":\"OC\\\\Files\\\\Node\\\\File\"},\"image/jpeg\",\"\"]},{\"file\":\"/srv/www/vhosts/nextcloud/lib/private/Preview/Generator.php\",\"line\":109,\"function\":\"generatePreviews\",\"class\":\"OC\\\\Preview\\\\Generator\",\"type\":\"->\",\"args\":[{\"__class__\":\"OC\\\\Files\\\\Node\\\\File\"},[{\"width\":256,\"height\":256,\"crop\":true,\"mode\":\"fill\"}],\"image/jpeg\"]},{\"file\":\"/srv/www/vhosts/nextcloud/lib/private/PreviewManager.php\",\"line\":190,\"function\":\"getPreview\",\"class\":\"OC\\\\Preview\\\\Generator\",\"type\":\"->\",\"args\":[{\"__class__\":\"OC\\\\Files\\\\Node\\\\File\"},256,256,true,\"fill\",null]},{\"file\":\"/srv/www/vhosts/nextcloud/apps/files/lib/Controller/ApiController.php\",\"line\":130,\"function\":\"getPreview\",\"class\":\"OC\\\\PreviewManager\",\"type\":\"->\",\"args\":[{\"__class__\":\"OC\\\\Files\\\\Node\\\\File\"},256,256,true]},{\"file\":\"/srv/www/vhosts/nextcloud/lib/private/AppFramework/Http/Dispatcher.php\",\"line\":218,\"function\":\"getThumbnail\",\"class\":\"OCA\\\\Files\\\\Controller\\\\ApiController\",\"type\":\"->\",\"args\":[256,256,{\"__class__\":\"OC\\\\Files\\\\Node\\\\File\"}]},{\"file\":\"/srv/www/vhosts/nextcloud/lib/private/AppFramework/Http/Dispatcher.php\",\"line\":127,\"function\":\"executeController\",\"class\":\"OC\\\\AppFramework\\\\Http\\\\Dispatcher\",\"type\":\"->\",\"args\":[{\"__class__\":\"OCA\\\\Files\\\\Controller\\\\ApiController\"},\"getThumbnail\"]},{\"file\":\"/srv/www/vhosts/nextcloud/lib/private/AppFramework/App.php\",\"line\":157,\"function\":\"dispatch\",\"class\":\"OC\\\\AppFramework\\\\Http\\\\Dispatcher\",\"type\":\"->\",\"args\":[{\"__class__\":\"OCA\\\\Files\\\\Controller\\\\ApiController\"},\"getThumbnail\"]},{\"file\":\"/srv/www/vhosts/nextcloud/lib/private/Route/Router.php\",\"line\":302,\"function\":\"main\",\"class\":\"OC\\\\AppFramework\\\\App\",\"type\":\"::\",\"args\":[\"APIController\",\"getThumbnail\",{\"__class__\":\"OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer\"},{\"x\":\"256\",\"y\":\"256\",\"file\":\"Bilder/Photos/2021/04/IMG_20210408_103713.jpg\",\"_route\":\"files.API.getThumbnail\"}]},{\"file\":\"/srv/www/vhosts/nextcloud/lib/base.php\",\"line\":993,\"function\":\"match\",\"class\":\"OC\\\\Route\\\\Router\",\"type\":\"->\",\"args\":[\"/apps/files/api/v1/thumbnail/256/256/Bilder/Photos/2021/04/IMG_20210408_103713.jpg\"]},{\"file\":\"/srv/www/vhosts/nextcloud/index.php\",\"line\":37,\"function\":\"handleRequest\",\"class\":\"OC\",\"type\":\"::\",\"args\":[]}],\"File\":\"/srv/www/vhosts/nextcloud/lib/private/Log/ErrorHandler.php\",\"Line\":92,\"CustomMessage\":\"--\"}","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.15.1","version":"21.0.1.0"} ```
Browser log Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ...

720-1455-max

Taomyn commented 2 years ago

Hardly a solution, SMB should just work full stop.

MarcS1975 commented 2 years ago

I agree. I always have trouble after a NC upgrade to get my SMB shares working again. It's a shame because NC is supposed to be a cloud solution and therefore SMB connectivity is a pretty basic feature. I have around 20 shares and fixing that after NC upgrades is painful.

On Sat, 16 Apr 2022, 09:48 Taomyn, @.***> wrote:

Hardly a solution, SMB should just work full stop.

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/server/issues/26457#issuecomment-1100610479, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNNHGRZHNX6ZBIQQKHIVQ3VFJ5D3ANCNFSM42SOJOXQ . You are receiving this because you commented.Message ID: @.***>

glorenzutti commented 2 years ago

Totally! I have 1500 users, 20 smb servers, 100 groups, and about 120 shares. Impossible to do otherwise.

This has to work right out of the box.

Even the importance of everything that needs to be done to make it work on that scale is not well documented and clarified.

As I read this, I'm looking to get something up and running to index the files. Because in parallel I have people who use the nextcloud, and people who access the shares by other means. That breaks the sync and files created by other means are not seen via nextcloud.

The documentation makes reference to leaving a connection open to detect file changes in shares. IMPOSSIBLE for that to work when you have more than 4 or 5 shares.

Don't get me started on the fulltextsearch plugin. No way to make it work with that many shares/files.

MarcS1975 commented 2 years ago

Strange inalso have people accessing SMB via maped drives directly and via Nextcloud smb connection. File integrity is no problem. They always seem in sync. For me the issue is that file access via NC is super slow. Opening a 200kb word doc takes 20 seconds in Nextcloud accessing an SMB share.

On Sat, 16 Apr 2022, 15:47 glorenzutti, @.***> wrote:

Totally! I have 1500 users, 20 smb servers, 100 groups, and about 120 shares. Impossible to do otherwise.

This has to work right out of the box.

Even the importance of everything that needs to be done to make it work on that scale is not well documented and clarified.

As I read this, I'm looking to get something up and running to index the files. Because in parallel I have people who use the nextcloud, and people who access the shares by other means. That breaks the sync and files created by other means are not seen via nextcloud.

The documentation makes reference to leaving a connection open to detect file changes in shares. IMPOSSIBLE for that to work when you have more than 4 or 5 shares.

Don't get me started on the fulltextsearch plugin. No way to make it work with that many shares/files.

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/server/issues/26457#issuecomment-1100679774, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNNHGU7WXN2XTET543JDITVFLHJDANCNFSM42SOJOXQ . You are receiving this because you commented.Message ID: @.***>

glorenzutti commented 2 years ago

The speed is good. I have nc 23.0.2 and i dont remember right now if I use smbclient or php-smbclient to browse the files. Do you mean using the libreoffice, or to download the doc? I have collabora office on another virtual machine and it works great.

MarcS1975 commented 2 years ago

I don't use colobra office. I use the Nextcloud browser login and download files or i use mobile app on Android and IPhone. Both are quite user friendly but very slow when accessing files.

On Sat, 16 Apr 2022, 15:54 glorenzutti, @.***> wrote:

The speed is good. I have nc 23.0.2 and i dont remember right now if I use smbclient or php-smbclient to browse the files. Do you mean using the libreoffice, or to download the doc? I have collabora office on another virtual machine and it works great.

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/server/issues/26457#issuecomment-1100681606, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNNHGTXPPK7A5OJANZMSBTVFLIBHANCNFSM42SOJOXQ . You are receiving this because you commented.Message ID: @.***>

glorenzutti commented 2 years ago

This works good for me.

Without knowing how you have everything configured, I would suggest that you start with the performance of the webserver, the memory usage, having redis and the php cache, see the mysql. There are several things to check.

The same happends when you access a file that isnt on the smb share?

dariodsa commented 2 years ago

Also check filelocking on the nextcloud side, for me that took a huge ammount of time.

On Sat, 16 Apr 2022, 17:03 glorenzutti, @.***> wrote:

This works good for me.

Without knowing how you have everything configured, I would suggest that you start with the performance of the webserver, the memory usage, having redis and the php cache, see the mysql. There are several things to check.

The same happends when you access a file that isnt on the smb share?

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/server/issues/26457#issuecomment-1100684159, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7DGPXP47XINVX2ZQLMP33VFLJFZANCNFSM42SOJOXQ . You are receiving this because you were mentioned.Message ID: @.***>

glorenzutti commented 2 years ago

This is the bug about the sync on the share with multiples clients:

https://github.com/nextcloud/server/issues/31067

MarcS1975 commented 2 years ago

Thanks .I have 33gb memory and it's a dedicated server. Php cache all fine. Do not have redis unfortunately.

Yes it's also slow but not as bad for non smb files.

On Sat, 16 Apr 2022, 16:04 glorenzutti, @.***> wrote:

This works good for me.

Without knowing how you have everything configured, I would suggest that you start with the performance of the webserver, the memory usage, having redis and the php cache, see the mysql. There are several things to check.

The same happends when you access a file that isnt on the smb share?

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/server/issues/26457#issuecomment-1100684159, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNNHGVUYTSECSMNES4EOWTVFLJGBANCNFSM42SOJOXQ . You are receiving this because you commented.Message ID: @.***>

MarcS1975 commented 2 years ago

Thanks. How do I check this please?

Btw I also found an incredibly fast alternative as a filesharing server called Filerun. Functionality is a bit limited for the free version but I can link the sane smb shares to Filelink and files open within half a second.

On Sat, 16 Apr 2022, 16:09 Dario Sindičić, @.***> wrote:

Also check filelocking on the nextcloud side, for me that took a huge ammount of time.

On Sat, 16 Apr 2022, 17:03 glorenzutti, @.***> wrote:

This works good for me.

Without knowing how you have everything configured, I would suggest that you start with the performance of the webserver, the memory usage, having redis and the php cache, see the mysql. There are several things to check.

The same happends when you access a file that isnt on the smb share?

— Reply to this email directly, view it on GitHub < https://github.com/nextcloud/server/issues/26457#issuecomment-1100684159>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AA7DGPXP47XINVX2ZQLMP33VFLJFZANCNFSM42SOJOXQ

. You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/server/issues/26457#issuecomment-1100685329, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNNHGQJ2WU6FZKHRXMLRCTVFLJ2RANCNFSM42SOJOXQ . You are receiving this because you commented.Message ID: @.***>

glorenzutti commented 2 years ago

Using redis its like day and night. it should help, by a lot.

MarcS1975 commented 2 years ago

Unfortunately I run this server under Synology (Debian based) and although I am able to install Redis and it runs well, I cannot get the phpredis extention. So Nextcloud cannot utilise Redis.

On Sat, 16 Apr 2022, 16:22 glorenzutti, @.***> wrote:

Using redis its like day and night. it should help, by a lot.

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/server/issues/26457#issuecomment-1100687684, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNNHGTLE7BWDHHJCEE5UWDVFLLJNANCNFSM42SOJOXQ . You are receiving this because you commented.Message ID: @.***>

glorenzutti commented 2 years ago

I dont have access to a synology right now. But I do recall you have the tools to compile php modules. So you should be able to add it that way.

MarcS1975 commented 2 years ago

Ok. If have installed it and updated the config php. It seems quicker butnthis could be subjective. Is there a way to check if PhpCache and Redis are actually working and utilised by NC?

On Sat, 16 Apr 2022, 17:24 glorenzutti, @.***> wrote:

I dont have access to a synology right now. But I do recall you have the tools to compile php modules. So you should be able to add it that way.

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/server/issues/26457#issuecomment-1100700818, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNNHGVAYFW2NAOF4Q6JDN3VFLSVHANCNFSM42SOJOXQ . You are receiving this because you commented.Message ID: @.***>

glorenzutti commented 2 years ago

I guess you could benchmark with some speed test plugins on your browser.

MarcS1975 commented 2 years ago

I am getting these NC warnings. Strangely the NC server is still running fine but I am concerned about these messages. Anyone seen this?

Current status: 1 (Interrupted) Standard output/error: PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /volume1/web/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php:92 Stack trace:

0

/volume1/web/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php(92): PDOStatement->execute(NULL)

1 /volume1/web/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1057):

Doctrine\DBAL\Driver\PDO\Statement->execute()

On Sat, 16 Apr 2022, 17:24 glorenzutti, @.***> wrote:

I dont have access to a synology right now. But I do recall you have the tools to compile php modules. So you should be able to add it that way.

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/server/issues/26457#issuecomment-1100700818, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNNHGVAYFW2NAOF4Q6JDN3VFLSVHANCNFSM42SOJOXQ . You are receiving this because you commented.Message ID: @.***>

glorenzutti commented 2 years ago

Check your mysql logs, on the mysql server side.

MarcS1975 commented 2 years ago

I found these entries. Does anyone know what the issue might be?

2022-04-18 16:00:25 0 [Note] /usr/local/mariadb10/bin/mysqld (initiated by: unknown): Normal shutdown 2022-04-18 16:00:25 0 [Note] InnoDB: FTS optimize thread exiting. 2022-04-18 16:00:25 0 [Note] InnoDB: Starting shutdown... 2022-04-18 16:00:25 0 [Note] InnoDB: Dumping buffer pool(s) to @.***/mariadb10/ib_buffer_pool 2022-04-18 16:00:25 0 [Note] InnoDB: Instance 0, restricted to 255 pages due to innodb_buf_pool_dump_pct=25 2022-04-18 16:00:25 0 [Note] InnoDB: Buffer pool(s) dump completed at 220418 16:00:25 2022-04-18 16:00:26 0 [Note] InnoDB: Shutdown completed; log sequence number 2258492082; transaction id 3739114 2022-04-18 16:00:26 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1" 2022-04-18 16:00:26 0 [Note] /usr/local/mariadb10/bin/mysqld: Shutdown complete

2022-04-18 16:00:27 0 [Note] InnoDB: Using Linux native AIO 2022-04-18 16:00:27 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2022-04-18 16:00:27 0 [Note] InnoDB: Uses event mutexes 2022-04-18 16:00:27 0 [Note] InnoDB: Compressed tables use zlib 1.2.8 2022-04-18 16:00:27 0 [Note] InnoDB: Number of pools: 1 2022-04-18 16:00:27 0 [Note] InnoDB: Using SSE2 crc32 instructions 2022-04-18 16:00:27 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M 2022-04-18 16:00:27 0 [Note] InnoDB: Completed initialization of buffer pool 2022-04-18 16:00:27 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man pa ge of setpriority(). 2022-04-18 16:00:28 0 [Note] InnoDB: 128 out of 128 rollback segments are active. 2022-04-18 16:00:28 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2022-04-18 16:00:28 0 [Note] InnoDB: Setting file '/var/packages/MariaDB10/target/mysql/ibtmp1' size to 12 MB. Physically writing the file f ull; Please wait ... 2022-04-18 16:00:28 0 [Note] InnoDB: File '/var/packages/MariaDB10/target/mysql/ibtmp1' size is now 12 MB. 2022-04-18 16:00:28 0 [Note] InnoDB: Waiting for purge to start 2022-04-18 16:00:28 0 [Note] InnoDB: 10.3.7 started; log sequence number 2258492082; transaction id 3739007 2022-04-18 16:00:28 0 [Note] InnoDB: Loading buffer pool(s) from @.***/mariadb10/ib_buffer_pool 2022-04-18 16:00:28 0 [Note] InnoDB: Buffer pool(s) load completed at 220418 16:00:28 2022-04-18 16:00:28 0 [Note] Plugin 'FEEDBACK' is disabled. 2022-04-18 16:00:28 0 [Note] Server socket created on IP: '0.0.0.0'. 2022-04-18 16:00:28 0 [Note] Reading of all Master_info entries succeded 2022-04-18 16:00:28 0 [Note] Added new Master_info '' to hash table 2022-04-18 16:00:28 0 [Note] /usr/local/mariadb10/bin/mysqld: ready for connections.

On Mon, Apr 18, 2022 at 5:18 PM glorenzutti @.***> wrote:

Check your mysql logs, on the mysql server side.

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/server/issues/26457#issuecomment-1101536700, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNNHGR4RL5BYIBSHS2BND3VFWDLTANCNFSM42SOJOXQ . You are receiving this because you commented.Message ID: @.***>