SMB shares has stoped work #26910

Open
SpecBlackHat opened this Issue Jan 9, 2017 · 19 comments

Projects

None yet

3 participants

@SpecBlackHat

Steps to reproduce

  1. Update to owncloud-9.1.3
  2. Try to mount SMB shares
  3. It start to endless loading

Expected behaviour

It should connected and show green round instead loading circle.

Actual behaviour

Showing loading circle.

Server configuration

Operating system: FreeBSD 10.3

Web server: Apache 24

Database: MySQL 5.6.34

PHP version: 56

ownCloud version: (see ownCloud admin page) 9.1.3

Updated from an older ownCloud or fresh install: Update

Where did you install ownCloud from: Ports

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 here.

Can not access there - endless loading

SMB shares work before updating.

@SpecBlackHat

1

This is how it looks like.

@SpecBlackHat SpecBlackHat changed the title from SMB shares had stoped work to SMB shares has stoped work Jan 10, 2017
@SergioBertolinSG
Member

Just tried SMB storage with 9.1.3, no problems found.

Please note that freebsd is not a supported OS: https://doc.owncloud.org/server/latest/admin_manual/installation/system_requirements.html#supported-platforms

@PVince81
Collaborator

Any logs ?

@SpecBlackHat

SergioBertolinSG commented 10 hours ago
Just tried SMB storage with 9.1.3, no problems found.

Please note that freebsd is not a supported OS: https://doc.owncloud.org/server/latest/admin_manual/installation/system_requirements.html#supported-platforms

I know, but it works well before upgrade to last version.

@SpecBlackHat

Here is last log with warnings\errors

Error encryption Encryption Library, symmetrical encryption failed no content given 2017-01-11T01:17:11+00:00
Error PHP Undefined variable: data at /usr/local/www/owncloud/lib/private/Files/Storage/Wrapper/Wrapper.php#250 2017-01-11T01:17:10+00:00
Error PHP Missing argument 2 for OC\Files\Storage\Wrapper\Wrapper::file_put_contents(), called in /usr/local/www/owncloud/lib/private/Files/View.php on line 1119 and defined at /usr/local/www/owncloud/lib/private/Files/Storage/Wrapper/Wrapper.php#249 2017-01-11T01:17:10+00:00
Error encryption Encryption Library:error:02001002:system library:fopen:No such file or directory 2017-01-11T01:17:10+00:00
Error encryption Encryption library couldn't export users private key, please check your servers OpenSSL configuration."no user given" 2017-01-11T01:17:10+00:00
Error encryption Encryption library openssl_pkey_new() fails: error:2006D080:BIO routines:BIO_new_file:no such file 2017-01-11T01:17:10+00:00
Error encryption Encryption Library couldn't generate users key-pair for "no user given" 2017-01-11T01:17:10+00:00
Error encryption Encryption Library, symmetrical encryption failed no content given 2017-01-11T01:17:09+00:00
Error PHP Undefined variable: data at /usr/local/www/owncloud/lib/private/Files/Storage/Wrapper/Wrapper.php#250 2017-01-11T01:17:08+00:00
Error PHP Missing argument 2 for OC\Files\Storage\Wrapper\Wrapper::file_put_contents(), called in /usr/local/www/owncloud/lib/private/Files/View.php on line 1119 and defined at /usr/local/www/owncloud/lib/private/Files/Storage/Wrapper/Wrapper.php#249 2017-01-11T01:17:08+00:00
Error encryption Encryption Library:error:02001002:system library:fopen:No such file or directory 2017-01-11T01:17:08+00:00
Error encryption Encryption library couldn't export users private key, please check your servers OpenSSL configuration."no user given" 2017-01-11T01:17:08+00:00
Error encryption Encryption library openssl_pkey_new() fails: error:2006D080:BIO routines:BIO_new_file:no such file 2017-01-11T01:17:08+00:00
Error encryption Encryption Library couldn't generate users key-pair for "no user given" 2017-01-11T01:17:08+00:00
Error encryption Encryption Library, symmetrical encryption failed no content given 2017-01-11T01:17:07+00:00
Error PHP Undefined variable: data at /usr/local/www/owncloud/lib/private/Files/Storage/Wrapper/Wrapper.php#250 2017-01-11T01:17:07+00:00
Error PHP Missing argument 2 for OC\Files\Storage\Wrapper\Wrapper::file_put_contents(), called in /usr/local/www/owncloud/lib/private/Files/View.php on line 1119 and defined at /usr/local/www/owncloud/lib/private/Files/Storage/Wrapper/Wrapper.php#249 2017-01-11T01:17:07+00:00
Error encryption Encryption Library:error:02001002:system library:fopen:No such file or directory 2017-01-11T01:17:07+00:00
Error encryption Encryption library couldn't export users private key, please check your servers OpenSSL configuration."no user given" 2017-01-11T01:17:07+00:00
Error encryption Encryption library openssl_pkey_new() fails: error:2006D080:BIO routines:BIO_new_file:no such file 2017-01-11T01:17:07+00:00
Error encryption Encryption Library couldn't generate users key-pair for "no user given" 2017-01-11T01:17:07+00:00
Error encryption Encryption Library, symmetrical encryption failed no content given 2017-01-11T01:17:06+00:00
Error PHP Undefined variable: data at /usr/local/www/owncloud/lib/private/Files/Storage/Wrapper/Wrapper.php#250 2017-01-11T01:17:05+00:00

@PVince81
Collaborator

Hmm, are you using encryption ? Are files on the SMB storage encrypted ?
It is possible that the SMB storage code fails because of these encryption errors, so you might want to try and solve these first.

@SpecBlackHat

Hmm, are you using encryption ? Are files on the SMB storage encrypted ?
It is possible that the SMB storage code fails because of these encryption errors, so you might want to try and solve these first.

Yes we are using encryption.
Files on SMB are not encrypted.

@SpecBlackHat
SpecBlackHat commented Jan 11, 2017 edited

It is possible that the SMB storage code fails because of these encryption errors, so you might want to try and solve these first. - how to solve this? I can open any files on share without any problems so i don't think that they are encrypted. And in SMB mount options i off using encryption (you can see it on screenshot above)

@SpecBlackHat

Maby you need any other logs?
Today i'd try again to connect an external smb storage.
No any new errors like in log above, and as before - did not work.

@PVince81
Collaborator

Do you have the php5-libsmbclient module installed maybe ? Usually it helps fixing SMB issues.
Did you have it before the upgrade and maybe it disappeared after ?

@SpecBlackHat

Do you have the php5-libsmbclient module installed maybe ?
I think yep
/usr/local/include/libsmbclient.h
/usr/local/lib/libsmbclient.a
/usr/local/lib/libsmbclient.so
/usr/local/lib/libsmbclient.so.0

Did you have it before the upgrade and maybe it disappeared after ?
I have this after upgrade. Everything works well before.

@PVince81
Collaborator

I meant the PHP library for libsmbclient: /usr/lib64/php5/extensions/libsmbclient.so

@SpecBlackHat

"I meant the PHP library for libsmbclient: /usr/lib64/php5/extensions/libsmbclient.so" - i think the directory depends of OS. On freebsd it place here /usr/local/lib/libsmbclient.so
BTW, pkg install php5-libsmbclient return that it can not find such package.
If i run make config from /usr/ports/php56-extensions - there is no such module in the list.

How to reinstall this library?

@SpecBlackHat

Here my php library

/usr/local/lib/php/20131226/smbclient.so

@PVince81
Collaborator

Maybe try updating it. Not sure how on FreeBSD.

@SpecBlackHat

1

Here is all PHP extensions on my OS.

Maybe try updating it. Not sure how on FreeBSD. - it's uptodate, nothing to update.

@SpecBlackHat

Try to reinstall owncloud.
No changes.

Any other logs need?

@SpecBlackHat

Return old version from backup - same result. Endless circle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment