Own cloud 8.2 External storage disconnets every time

Steps to reproduce

  1. Own cloud 8.2 External storage disconnects every time Windows server 2008 r2 (using for shared folder)

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

Server configuration

Operating system:
Centos 6.7 final
Web server:
Apache
Database:
Mysql
PHP version:
PHP 5.4.45
ownCloud version: (see ownCloud admin page)
8.2
Updated from an older ownCloud or fresh install:
no
Where did you install ownCloud from:

Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and puth the link here.

The content of config/config.php:

Log in to the web-UI with an administrator account and click on
'admin' -> 'Generate Config Report' -> 'Download ownCloud config report'
This report includes the config.php settings, the list of activated apps
and other details in a well sanitized form.

or 

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

*ATTENTION:* Do not post your config.php file in public as is. Please use one of the above
methods whenever possible. Both, the generated reports from the web-ui and from occ config:list
consistently remove sensitive data. You still may want to review the report before sending.
If done manually then it is critical for your own privacy to dilligently
remove *all* host names, passwords, usernames, salts and other credentials before posting.
You should assume that attackers find such information and will use them against your systems.

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.

Are you using external storage, if yes which one: local/smb/sftp/…

Are you using encryption: yes/no

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

LDAP configuration (delete this part if not used)

With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:

Operating system:

Logs

Web server error log

Insert your webserver log here

ownCloud log (data/owncloud.log)

Insert your ownCloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...

Hey,

i think ownCloud 8.2 is unsupported since so many years that i don’t think that there is still some one of the community able to give support for it :slightly_frowning_face:

I think an update of ownCloud to the latest and supported ownCloud 10.8 version (From what i know this also requires updating PHP to some later version but i’m not familiar with the upgrade path :slightly_frowning_face:) should be done.

If the issue still persists then i think the log files of ownCloud (the owncloud.log of the partial filled out issue template) and the log files of the file share could help to determine the origin of the problem.

Hi,
Thanks for the reply. Attaching owncloud.log. From where i can get log file of the file share please direct i will get that. Portal is not allowing to upload attachment.

{“reqId”:“0MAXMMLZt5/fQUgh5trs”,“remoteAddr”:“192.168.180.150”,“app”:“files_external”,“message”:“Exception: {“Exception”:“Icewind\\SMB\\Exception\\AuthenticationException”,“Message”:“Invalid login”,“Code”:0,“Trace”:”#0 \/var\/www\/html\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Connection.php(43): Icewind\\SMB\\Connection->checkConnectionError(‘session setup f…’)\n#1 \/var\/www\/html\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Share.php(354): Icewind\\SMB\\Connection->read()\n#2 \/var\/www\/html\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Share.php(127): Icewind\\SMB\\Share->execute(‘allinfo \"\\\\Accou…’)\n#3 \/var\/www\/html\/owncloud\/apps\/files_external\/lib\/smb.php(110): Icewind\\SMB\\Share->stat(’\/AccountsShares’)\n#4 \/var\/www\/html\/owncloud\/apps\/files_external\/lib\/smb.php(144): OC\\Files\\Storage\\SMB->getFileInfo(’’)\n#5 \/var\/www\/html\/owncloud\/lib\/private\/files\/storage\/common.php(410): OC\\Files\\Storage\\SMB->stat(’’)\n#6 \/var\/www\/html\/owncloud\/apps\/files_external\/lib\/config.php(261): OC\\Files\\Storage\\Common->test(false)\n#7 \/var\/www\/html\/owncloud\/apps\/files_external\/controller\/storagescontroller.php(237): OC_Mount_Config::getBackendStatus(’\\\\OC\\\\Files\\\\Stora…’, Array, false)\n#8 \/var\/www\/html\/owncloud\/apps\/files_external\/controller\/storagescontroller.php(257): OCA\\Files_External\\Controller\\StoragesController->updateStorageStatus(Object(OCA\\Files_external\\Lib\\StorageConfig))\n#9 [internal function]: OCA\\Files_External\\Controller\\StoragesController->show(2)\n#10 \/var\/www\/html\/owncloud\/lib\/private\/appframework\/http\/dispatcher.php(159): call_user_func_array(Array, Array)\n#11 \/var\/www\/html\/owncloud\/lib\/private\/appframework\/http\/dispatcher.php(89): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OCA\\Files_External\\Controller\\GlobalStoragesController), ‘show’)\n#12 \/var\/www\/html\/owncloud\/lib\/private\/appframework\/app.php(108): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\Files_External\\Controller\\GlobalStoragesController), ‘show’)\n#13 \/var\/www\/html\/owncloud\/lib\/private\/appframework\/routing\/routeactionhandler.php(45): OC\\AppFramework\\App::main(‘GlobalStoragesC…’, ‘show’, Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\n#14 [internal function]: OC\\AppFramework\\routing\\RouteActionHandler->__invoke(Array)\n#15 \/var\/www\/html\/owncloud\/lib\/private\/route\/router.php(291): call_user_func(Object(OC\\AppFramework\\routing\\RouteActionHandler), Array)\n#16 \/var\/www\/html\/owncloud\/lib\/base.php(847): OC\\Route\\Router->match(’\/apps\/files_ext…’)\n#17 \/var\/www\/html\/owncloud\/index.php(39): OC::handleRequest()\n#18 {main}",“File”:"\/var\/www\/html\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Connection.php",“Line”:78}",“level”:3,“time”:“2021-08-27T08:03:31+00:00”,“method”:“GET”,“url”:"/owncloud/index.php/apps/files_external/globalstorages/2"}
{“reqId”:“lyA4TLcJvBT404E51bJQ”,“remoteAddr”:“192.168.180.150”,“app”:“core”,“message”:“Error while running background job (class: OCA\Activity\BackgroundJob\EmailNotification, arguments: ): {“Exception”:“Swift_TransportException”,“Message”:“Failed to authenticate on SMTP server with username \“cloud@iob.co.bw\” using 1 possible authenticators”,“Code”:0,“Trace”:”#0 \/var\/www\/html\/owncloud\/3rdparty\/swiftmailer\/swiftmailer\/lib\/classes\/Swift\/Transport\/EsmtpTransport.php(307): Swift_Transport_Esmtp_AuthHandler->afterEhlo(Object(Swift_SmtpTransport))\n#1 \/var\/www\/html\/owncloud\/3rdparty\/swiftmailer\/swiftmailer\/lib\/classes\/Swift\/Transport\/AbstractSmtpTransport.php(118): Swift_Transport_EsmtpTransport->_doHeloCommand()\n#2 \/var\/www\/html\/owncloud\/lib\/private\/mail\/mailer.php(192): Swift_Transport_AbstractSmtpTransport->start()\n#3 \/var\/www\/html\/owncloud\/lib\/private\/mail\/mailer.php(157): OC\\Mail\\Mailer->getSmtpInstance()\n#4 \/var\/www\/html\/owncloud\/lib\/private\/mail\/mailer.php(97): OC\\Mail\\Mailer->getInstance()\n#5 \/var\/www\/html\/owncloud\/apps\/activity\/lib\/mailqueuehandler.php(249): OC\\Mail\\Mailer->send(Object(OC\\Mail\\Message))\n#6 \/var\/www\/html\/owncloud\/apps\/activity\/lib\/backgroundjob\/emailnotification.php(135): OCA\\Activity\\MailQueueHandler->sendEmailToUser(‘admin’, ‘rejiv@iqube.co…’, ‘en’, ‘Africa\/Johannes…’, 1630051788)\n#7 \/var\/www\/html\/owncloud\/apps\/activity\/lib\/backgroundjob\/emailnotification.php(99): OCA\\Activity\\BackgroundJob\\EmailNotification->runStep(25, 1630051788)\n#8 \/var\/www\/html\/owncloud\/lib\/private\/backgroundjob\/job.php(52): OCA\\Activity\\BackgroundJob\\EmailNotification->run(NULL)\n#9 \/var\/www\/html\/owncloud\/lib\/private\/backgroundjob\/timedjob.php(53): OC\\BackgroundJob\\Job->execute(Object(OC\\BackgroundJob\\JobList), Object(OC\\Log))\n#10 \/var\/www\/html\/owncloud\/cron.php(171): OC\\BackgroundJob\\TimedJob->execute(Object(OC\\BackgroundJob\\JobList), Object(OC\\Log))\n#11 {main}",“File”:"\/var\/www\/html\/owncloud\/3rdparty\/swiftmailer\/swiftmailer\/lib\/classes\/Swift\/Transport\/Esmtp\/AuthHandler.php",“Line”:181}",“level”:3,“time”:“2021-08-27T08:09:49+00:00”,“method”:“GET”,“url”:"/owncloud/cron.php"}
{“reqId”:“fjxR86Se453r85PxM4go”,“remoteAddr”:“192.168.180.150”,“app”:“DeleteOrphanedSharesJob”,“message”:“0 orphaned share(s) deleted”,“level”:0,“time”:“2021-08-27T08:20:59+00:00”,“method”:“GET”,“url”:"/owncloud/cron.php"}
{“reqId”:“3dwClm33PxG7iS+Ivavw”,“remoteAddr”:“192.168.180.150”,“app”:“files_external”,“message”:“Exception: {“Exception”:“Icewind\\SMB\\Exception\\NotFoundException”,“Message”:“Invalid request for \/Payless_Remit (NotFoundException)”,“Code”:0,“Trace”:”#0 \/var\/www\/html\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Share.php(373): Icewind\\SMB\\Parser->checkForError(Array, ‘\/Payless_Remit’)\n#1 \/var\/www\/html\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Share.php(135): Icewind\\SMB\\Share->parseOutput(Array, ‘\/Payless_Remit’)\n#2 \/var\/www\/html\/owncloud\/apps\/files_external\/lib\/smb.php(110): Icewind\\SMB\\Share->stat(’\/Payless_Remit’)\n#3 \/var\/www\/html\/owncloud\/apps\/files_external\/lib\/smb.php(144): OC\\Files\\Storage\\SMB->getFileInfo(’’)\n#4 \/var\/www\/html\/owncloud\/lib\/private\/files\/storage\/common.php(410): OC\\Files\\Storage\\SMB->stat(’’)\n#5 \/var\/www\/html\/owncloud\/apps\/files_external\/lib\/config.php(261): OC\\Files\\Storage\\Common->test(false)\n#6 \/var\/www\/html\/owncloud\/apps\/files_external\/controller\/storagescontroller.php(237): OC_Mount_Config::getBackendStatus(’\\\\OC\\\\Files\\\\Stora…’, Array, false)\n#7 \/var\/www\/html\/owncloud\/apps\/files_external\/controller\/storagescontroller.php(257): OCA\\Files_External\\Controller\\StoragesController->updateStorageStatus(Object(OCA\\Files_external\\Lib\\StorageConfig))\n#8 [internal function]: OCA\\Files_External\\Controller\\StoragesController->show(4)\n#9 \/var\/www\/html\/owncloud\/lib\/private\/appframework\/http\/dispatcher.php(159): call_user_func_array(Array, Array)\n#10 \/var\/www\/html\/owncloud\/lib\/private\/appframework\/http\/dispatcher.php(89): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OCA\\Files_External\\Controller\\GlobalStoragesController), ‘show’)\n#11 \/var\/www\/html\/owncloud\/lib\/private\/appframework\/app.php(108): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\Files_External\\Controller\\GlobalStoragesController), ‘show’)\n#12 \/var\/www\/html\/owncloud\/lib\/private\/appframework\/routing\/routeactionhandler.php(45): OC\\AppFramework\\App::main(‘GlobalStoragesC…’, ‘show’, Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\n#13 [internal function]: OC\\AppFramework\\routing\\RouteActionHandler->__invoke(Array)\n#14 \/var\/www\/html\/owncloud\/lib\/private\/route\/router.php(291): call_user_func(Object(OC\\AppFramework\\routing\\RouteActionHandler), Array)\n#15 \/var\/www\/html\/owncloud\/lib\/base.php(847): OC\\Route\\Router->match(’\/apps\/files_ext…’)\n#16 \/var\/www\/html\/owncloud\/index.php(39): OC::handleRequest()\n#17 {main}",“File”:"\/var\/www\/html\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Parser.php",“Line”:57}",“level”:3,“time”:“2021-08-27T08:21:02+00:00”,“method”:“GET”,“url”:"/owncloud/index.php/apps/files_external/globalstorages/4"}

As @tom42 says… upgrade ownCloud to the newest version (10.8).

Regarding your logs, you have 2 errors.

  1. your SMTP configuration is wrong.
  2. And the login for the SMB is wrong as well

Verify your settings, but as I said before, upgrade your ownCloud to the newest version.

Hi Thanks, for the reply.

  1. SMB login details are correct issue some time it will connect (green) after sometime it won’t connect (red) with same SMB credentials.
  2. Is SMTP configurations related to SMB?
  3. If we want to upgrade from 8.2 which version we need to upgrade. After upgrade we wont loss any data right? Also please share document/steps how do the upgrade.
  1. The logs say that, see the first line
    "{“Exception”:“Icewind\SMB\Exception\AuthenticationException”,“Message”:“Invalid login”,“Code”:0,“Trace”:”#0
  2. SMTP is not relevant for SMB connections, but consider fixing it
  3. read the next document where you can find relevant information about the migration process.
    if you have the version. 8.2.11 you can upgrade with no issues.

ownCloud recommends PHP 7.3 or 7.4 for new installations. Sites using a version earlier than PHP 7.2 are strongly encouraged to migrate at least to PHP 7.2. So, you need to upgrade your Centos as well.

https://doc.owncloud.com/server/admin_manual/maintenance/upgrade.html

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.