Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't sync files with special chars (ç, õ, á, etc)to WinServer2008 shared folders. #13967

Closed
adrianoafonso opened this issue Feb 8, 2015 · 39 comments

Comments

@adrianoafonso
Copy link

adrianoafonso commented Feb 8, 2015

Steps to reproduce

  1. Install owncloud client on any windows machine
  2. Connect user accounts to their WinServer2008 shared folders trough Personal > External Storage > SMB/CIFS
  3. Initiate sync

I found some workarounds for this problem over the web, I tried many of them but whit no results. The upgrade from PHP 5.4. to 5.6 at least gave me a different error has you can see.
One new thing that happens sometimes now and is not listed is that the file is uploaded to the share in windows server, I see a part (testão321442.part.txt), but owncloud can't rename it.

Expected behaviour

Sync all the files

Actual behaviour

All the files that doesn't have special chars are synced, the others fail.
Folders whit especial char are synced (strange).

Server configuration

Operating system:

Debian 3.2.65-1+deb7u1 i686

Web server:

Server version: Apache/2.2.22 (Debian)
Server built:   Dec 27 2014 21:24:33
Server's Module Magic Number: 20051115:30

Database:

psql (PostgreSQL) 9.1.15

PHP version:

** *From PHP 5.4. > 5.5 > 5.6* **
PHP 5.6.5-1~dotdeb.1 (cli) (built: Jan 28 2015 06:02:53)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies

ownCloud version: (see ownCloud admin page)

ownCloud 7.0.4 (stable)

Updated from an older ownCloud or fresh install:
Fresh install

List of activated apps:
Activity
Calendar
Contacts
Deleted Files
Documents
External storage support
First run wizard
Full text Search
Mail template editor
PDF Viewer
Pictures
Share files
Text editor
Updater
Versions
Video Viewer

The content of config/config.php:

$CONFIG = array (
  'instanceid' => 'oc2247f578c9',
  'passwordsalt' => '*** Removed for security reasons',
  'trusted_domains' =>
  array (
    0 => '192.168.1.25',
    1 => 'futurcabo.no-ip.info',
    2 => 'cloud.futurcabo.pt',
  ),
  'datadirectory' => '/var/www/owncloud/data',
  'overwritewebroot' => '/owncloud',
  'overwrite.cli.url' => 'http://192.168.1.25/owncloud',
  'dbtype' => 'pgsql',
  'version' => '7.0.4.2',
  'dbname' => 'owncloud_db',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'admin_user_here',
'dbpassword' => '*** Removed for security reasons',
  'installed' => true,
  'loglevel' => '1',
  'theme' => '',
  'maintenance' => false,
  'secret' => 'secret_here',
  'mail_smtpmode' => 'smtp',
  'mail_from_address' => 'owncloud',
  'mail_domain' => '',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '',
  'mail_smtpport' => '25',
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
);

Are you using external storage, if yes which one: local/smb/sftp/...
Yes, as I said, SMB/CIFS to a WinServer

Are you using encryption: yes/no
No

Client configuration

Browser:

Operating system:
Windows Vista (Home and Business) and 7 Professional

Logs

Web server error log

18:47     desktop.ini                                                     mydocuments    File is listed on the ignore list.                   
18:47     Futurcabo/adrianoafonso/testão.txt                              mydocuments    Error downloading http://10.0.0.25:81/owncloud/remote.php/webdav/Futurcabo/adrianoafonso/testão.txt - server replied: Bad request (expected filesize 7 got 0</s:message>
  <s:sabredav-version>1.8.10</s:sabredav-version>
</d:error>
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
  <s:message>expected filesize 7 got 0)          

ownCloud log (data/owncloud.log)

Before PHP update

Fatal   webdav  Sabre\DAV\Exception\BadRequest: expected filesize 115777 got 0  2015-01-26T11:32:55+00:00
Error   PHP stat(): stat failed for smb://xxx:[email protected]/Data/User/UserFolder/Controlo+RH%2FPagina+CCO%2FCCO%2FCCO%2FEscala+Actual%2FLinks%2Fzontec%2FZONtec+SP+N%C2%BA96.pdf.ocTransferId844108911.part at /var/www/owncloud/apps/files_external/lib/smb.php#73  2015-01-26T11:32:55+00:00
Error   PHP url_stat(): path 'User\UserFolder\Controlo RH\Pagina CCO\CCO\CCO\Escala Actual\Links\zontec\ZONtec SP Nº96.pdf.ocTransferId844108911.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-01-26T11:32:55+00:00
Fatal   webdav  Sabre\DAV\Exception\BadRequest: expected filesize 98304 got 0   2015-01-26T11:32:53+00:00
Fatal   webdav  Sabre\DAV\Exception\BadRequest: expected filesize 2071456 got 0 2015-01-26T11:32:53+00:00
Error   PHP stat(): stat failed for smb://xxx:[email protected]/Data/User/UserFolder/Controlo+RH%2FPagina+CCO%2FCCO%2FCCO%2FEscala+Actual%2FLinks%2Fzontec%2FZONtec+SP+N%C2%BA95.pdf.ocTransferId1791853924.part at /var/www/owncloud/apps/files_external/lib/smb.php#73 2015-01-26T11:32:52+00:00
Error   PHP url_stat(): path 'User\UserFolder\Controlo RH\Pagina CCO\CCO\CCO\Escala Actual\Links\zontec\ZONtec SP Nº95.pdf.ocTransferId1791853924.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260    2015-01-26T11:32:52+00:00
Error   PHP stat(): stat failed for smb://xxx:[email protected]/Data/User/UserFolder/Controlo+RH%2FPagina+CCO%2FCCO%2FCCO%2FEscala+Actual%2FLinks%2Fzontec%2FZONtec+SP+N%C2%BA94.pdf.ocTransferId501973698.part at /var/www/owncloud/apps/files_external/lib/smb.php#73  2015-01-26T11:32:52+00:00
Error   PHP url_stat(): path 'User\UserFolder\Controlo RH\Pagina CCO\CCO\CCO\Escala Actual\Links\zontec\ZONtec SP Nº94.pdf.ocTransferId501973698.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-01-26T11:32:52+00:00
Fatal   webdav  Sabre\DAV\Exception\BadRequest: expected filesize 268934 got 0  2015-01-26T11:32:50+00:00
Error   PHP stat(): stat failed for smb://xxx:[email protected]/Data/User/UserFolder/Controlo+RH%2FPagina+CCO%2FCCO%2FCCO%2FEscala+Actual%2FLinks%2Fzontec%2FZONtec+SP+N%C2%BA93.pdf.ocTransferId2020864996.part at /var/www/owncloud/apps/files_external/lib/smb.php#73 2015-01-26T11:32:50+00:00
Error   PHP url_stat(): path 'User\UserFolder\Controlo RH\Pagina CCO\CCO\CCO\Escala Actual\Links\zontec\ZONtec SP Nº93.pdf.ocTransferId2020864996.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260    2015-01-26T11:32:50+00:00
Fatal   webdav  Sabre\DAV\Exception\BadRequest: expected filesize 65027 got 0   2015-01-26T11:32:48+00:00
Error   PHP stat(): stat failed for smb://xxx:[email protected]/Data/User/UserFolder/Controlo+RH%2FPagina+CCO%2FCCO%2FCCO%2FEscala+Actual%2FLinks%2Fzontec%2FZONtec+SP+N%C2%BA92.pdf.ocTransferId820633077.part at /var/www/owncloud/apps/files_external/lib/smb.php#73  2015-01-26T11:32:47+00:00
Error   PHP url_stat(): path 'User\UserFolder\Controlo RH\Pagina CCO\CCO\CCO\Escala Actual\Links\zontec\ZONtec SP Nº92.pdf.ocTransferId820633077.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-01-26T11:32:47+00:00
Fatal   webdav  Sabre\DAV\Exception\BadRequest: expected filesize 127322 got 0  2015-01-26T11:32:47+00:00
Error   PHP stat(): stat failed for smb://xxx:[email protected]/Data/User/UserFolder/Controlo+RH%2FPagina+CCO%2FCCO%2FCCO%2FEscala+Actual%2FLinks%2Fzontec%2FZONtec+SP+N%C2%BA91.pdf.ocTransferId177056494.part at /var/www/owncloud/apps/files_external/lib/smb.php#73  2015-01-26T11:32:46+00:00
Error   PHP url_stat(): path 'User\UserFolder\Controlo RH\Pagina CCO\CCO\CCO\Escala Actual\Links\zontec\ZONtec SP Nº91.pdf.ocTransferId177056494.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-01-26T11:32:46+00:00
Fatal   webdav  Sabre\DAV\Exception\BadRequest: expected filesize 64056 got 0   2015-01-26T11:32:45+00:00
Error   PHP stat(): stat failed for smb://xxx:[email protected]/Data/User/UserFolder/Controlo+RH%2FPagina+CCO%2FCCO%2FCCO%2FEscala+Actual%2FLinks%2Fzontec%2FZONtec+SP+N%C2%BA90.pdf.ocTransferId1948191395.part at /var/www/owncloud/apps/files_external/lib/smb.php#73 2015-01-26T11:32:45+00:00
Error   PHP url_stat(): path 'User\UserFolder\Controlo RH\Pagina CCO\CCO\CCO\Escala Actual\Links\zontec\ZONtec SP Nº90.pdf.ocTransferId1948191395.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260    2015-01-26T11:32:45+00:00
Fatal   webdav  Sabre\DAV\Exception\BadRequest: expected filesize 210550 got 0  2015-01-26T11:32:43+00:00
Error   PHP stat(): stat failed for smb://xxx:[email protected]/Data/User/UserFolder/Controlo+RH%2FPagina+CCO%2FCCO%2FCCO%2FEscala+Actual%2FLinks%2Fzontec%2FZONtec+SP+N%C2%BA89.pdf.ocTransferId106517455.part at /var/www/owncloud/apps/files_external/lib/smb.php#73  2015-01-26T11:32:43+00:00
Error   PHP url_stat(): path 'User\UserFolder\Controlo RH\Pagina CCO\CCO\CCO\Escala Actual\Links\zontec\ZONtec SP Nº89.pdf.ocTransferId106517455.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-01-26T11:32:43+00:00
Fatal   webdav  Sabre\DAV\Exception\BadRequest: expected filesize 247469 got 0  2015-01-26T11:32:42+00:00
Error   PHP stat(): stat failed for smb://xxx:[email protected]/Data/User/UserFolder/Controlo+RH%2FPagina+CCO%2FCCO%2FCCO%2FEscala+Actual%2FLinks%2Fzontec%2FZONtec+SP+N%C2%BA88.pdf.ocTransferId1635338035.part at /var/www/owncloud/apps/files_external/lib/smb.php#73 2015-01-26T11:32:42+00:00
Error   PHP url_stat(): path 'User\UserFolder\Controlo RH\Pagina CCO\CCO\CCO\Escala Actual\Links\zontec\ZONtec SP Nº88.pdf.ocTransferId1635338035.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260    2015-01-26T11:32:42+00:00
Fatal   webdav  Sabre\DAV\Exception\BadRequest: expected filesize 64588 got 0   2015-01-26T11:32:40+00:00
Error   PHP stat(): stat failed for smb://xxx:[email protected]/Data/User/UserFolder/Controlo+RH%2FPagina+CCO%2FCCO%2FCCO%2FEscala+Actual%2FLinks%2Fzontec%2FZONtec+SP+N%C2%BA87.pdf.ocTransferId1795797276.part at /var/www/owncloud/apps/files_external/lib/smb.php#73 2015-01-26T11:32:40+00:00

After the update to PHP 5.6 and a test file

Fatal   webdav  Sabre\DAV\Exception\Forbidden:  2015-02-07T20:32:57+00:00
Error   PHP     url_stat(): path 'Utilizadores\adrianoafonso\testecão.txt.ocTransferId543903658.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260  2015-02-07T20:32:57+00:00
Fatal   webdav  Sabre\DAV\Exception\Forbidden:  2015-02-07T20:32:54+00:00
Error   PHP url_stat(): path 'Utilizadores\adrianoafonso\testecão.txt.ocTransferId543903658.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260  2015-02-07T20:32:54+00:00
Error   PHP url_stat(): path 'Utilizadores\adrianoafonso\testecão.txt.ocTransferId543903658.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260  2015-02-07T20:32:54+00:00
Error   PHP url_stat(): path 'Utilizadores\adrianoafonso\testecão.txt.ocTransferId543903658.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260  2015-02-07T20:32:20+00:00
Error   PHP url_stat(): path 'Utilizadores\adrianoafonso\testecão.txt.ocTransferId543903658.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260  2015-02-07T20:32:19+00:00
Error   PHP url_stat(): path 'Utilizadores\adrianoafonso\testecão.txt.ocTransferId543903658.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260  2015-02-07T20:32:16+00:00
Fatal   webdav  Sabre\DAV\Exception: Could not rename part file to final file   2015-02-07T20:32:15+00:00
Error   webdav  \OC\Files\Filesystem::rename() failed   2015-02-07T20:32:15+00:00
Error   PHP url_stat(): path 'Utilizadores\adrianoafonso\testecão.txt.ocTransferId543903658.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260  2015-02-07T20:32:15+00:00
Error   PHP stat(): stat failed for smb://xxx:[email protected]/Dados/Utilizadores/adrianoafonso/testec%C3%A3o.txt.ocTransferId543903658.part.ocTransferId240512749.part at /var/www/owncloud/apps/files_external/lib/smb.php#73 2015-02-07T20:32:14+00:00
Error   PHP url_stat(): path 'Utilizadores\adrianoafonso\testecão.txt.ocTransferId543903658.part.ocTransferId240512749.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260   2015-02-07T20:32:14+00:00
Error   PHP fopen(smb://[email protected]/Dados/Utilizadores/adrianoafonso/testec%C3%A3o.txt.ocTransferId543903658.part): failed to open stream: &quot;smb_stream_wrapper::stream_open&quot; call failed at /var/www/owncloud/apps/files_external/lib/streamwrapper.php#64   2015-02-07T20:32:04+00:00
Fatal   webdav  Sabre\DAV\Exception\Forbidden:  2015-02-07T20:25:16+00:00
Error   PHP url_stat(): path 'Utilizadores\adrianoafonso\testecão.txt.ocTransferId1119691426.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-02-07T20:25:16+00:00
Fatal   webdav  Sabre\DAV\Exception\Forbidden:  2015-02-07T20:25:12+00:00
Error   PHP url_stat(): path 'Utilizadores\adrianoafonso\testecão.txt.ocTransferId1119691426.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-02-07T20:25:12+00:00
Error   PHP url_stat(): path 'Utilizadores\adrianoafonso\testecão.txt.ocTransferId1119691426.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-02-07T20:25:12+00:00
Error   PHP url_stat(): path 'Utilizadores\adrianoafonso\testecão.txt.ocTransferId1119691426.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-02-07T20:25:08+00:00
Error   PHP url_stat(): path 'Utilizadores\adrianoafonso\testecão.txt.ocTransferId1119691426.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-02-07T20:25:08+00:00
Error   PHP url_stat(): path 'Utilizadores\adrianoafonso\testecão.txt.ocTransferId1119691426.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-02-07T20:25:06+00:00
Fatal   webdav  Sabre\DAV\Exception: Could not rename part file to final file   2015-02-07T20:25:05+00:00
Error   webdav  \OC\Files\Filesystem::rename() failed   2015-02-07T20:25:05+00:00
Error   PHP url_stat(): path 'Utilizadores\adrianoafonso\testecão.txt.ocTransferId1119691426.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-02-07T20:25:05+00:00
Error   PHP stat(): stat failed for smb://xxx:[email protected]/Dados/Utilizadores/adrianoafonso/testec%C3%A3o.txt.ocTransferId1119691426.part.ocTransferId1785725999.part at /var/www/owncloud/apps/files_external/lib/smb.php#73   2015-02-07T20:25:05+00:00
Error   PHP url_stat(): path 'Utilizadores\adrianoafonso\testecão.txt.ocTransferId1119691426.part.ocTransferId1785725999.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-02-07T20:25:05+00:00
Error   PHP fopen(smb://[email protected]/Dados/Utilizadores/adrianoafonso/testec%C3%A3o.txt.ocTransferId1119691426.part): failed to open stream: &quot;smb_stream_wrapper::stream_open&quot; call failed at /var/www/owncloud/apps/files_external/lib/streamwrapper.php#64  2015-02-07T20:25:01+00:00
Info    files_external  checking path /var/www/owncloud/data/adriano.afonso/files_external/uploads/ 2015-02-07T19:19:47+00:00
Fatal   remote  SQLSTATE[08006] [7] could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? 2015-02-07T19:00:41+00:00
Fatal   remote  SQLSTATE[08006] [7] could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? 2015-02-07T19:00:39+00:00
Info    files_external  checking path /var/www/owncloud/data/adriano.afonso/files_external/uploads/ 2015-02-07T15:02:37+00:00
Error   PHP stat(): stat failed for smb://xxx:[email protected]/Dados/Utilizadores/adrianoafonso/teste_a++xSeries336 at /var/www/owncloud/apps/files_external/lib/smb.php#73

Browser log

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

a) The javascript console log
b) The network log 
c) ...
@ghost
Copy link

ghost commented Feb 8, 2015

Could be related to: #10625 or one of the linked issues in this comment here: #10625 (comment)

@adrianoafonso
Copy link
Author

Owncloud 8.0.2

Just updated to OC 8.0.2, the problem continues.
When I upload to the OC server (folder inside debian server), no problem at all, but When I move to the folder that are inside WinServer2008, the problem persists.


Client Log

18:21 adrianoafonso/app_tek/não.txt ownCloud Error downloading http://---/owncloud/remote.php/webdav/adrianoafonso/app_tek/não.txt - server replied: Internal Server Error (Could not rename part file to final file) 18:20 adrianoafonso/app_tek/não.txt ownCloud Error downloading http://-----/owncloud/remote.php/webdav/adrianoafonso/app_tek/não.txt - server replied: Internal Server Error (Could not rename part file to final file) 18:20 adrianoafonso/owncloud.xml ownCloud Deleted 18:19 não.txt ownCloud Moved to adrianoafonso/não.txt 18:19 New Text Document.txt ownCloud Moved to não.txt

ownCloud log (data/owncloud.log)

Error PHP stat(): stat failed for smb://xxx:[email protected]/adrianoafonso/n++owncloud.xml at /var/www/owncloud/apps/files_external/lib/smb.php#73 2015-03-20T18:17:13+00:00 Error PHP stat(): stat failed for smb://xxx:[email protected]/adrianoafonso/n++owncloud.xml at /var/www/owncloud/apps/files_external/lib/smb.php#73 2015-03-20T18:16:27+00:00 Error PHP stat(): stat failed for smb://xxx:[email protected]/adrianoafonso/n++owncloud.xml at /var/www/owncloud/apps/files_external/lib/smb.php#73 2015-03-20T18:16:27+00:00 Fatal webdav Exception: {"Message":"Could not rename part file to final file","Code":0,"Trace":"#0 \/var\/www\/owncloud\/lib\/private\/connector\/sabre\/directory.php(84): OC_Connector_Sabre_File->put(Resource id #110)\n#1 \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/Sabre\/DAV\/Server.php(1647): OC_Connector_Sabre_Directory->createFile('n\\xC3\\xA3o.txt', Resource id #110)\n#2 \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/Sabre\/DAV\/Server.php(900): Sabre\\DAV\\Server->createFile('adrianoafonso\/a...', Resource id #110, NULL)\n#3 [internal function]: Sabre\\DAV\\Server->httpPut('adrianoafonso\/a...')\n#4 \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/Sabre\/DAV\/Server.php(474): call_user_func(Array, 'adrianoafonso\/a...')\n#5 \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/Sabre\/DAV\/Server.php(214): Sabre\\DAV\\Server->invokeMethod('PUT', 'adrianoafonso\/a...')\n#6 \/var\/www\/owncloud\/apps\/files\/appinfo\/remote.php(61): Sabre\\DAV\\Server->exec()\n#7 \/var\/www\/owncloud\/remote.php(54): require_once('\/var\/www\/ownclo...')\n#8 {main}","File":"\/var\/www\/owncloud\/lib\/private\/connector\/sabre\/file.php","Line":142} 2015-03-20T18:16:17+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt.ocTransferId539518410.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:16:17+00:00 Error webdav \OC\Files\Filesystem::rename() failed 2015-03-20T18:16:17+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:16:17+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:16:17+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:16:17+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:16:17+00:00 Error PHP stat(): stat failed for smb://xxx:[email protected]/adrianoafonso/app_tek%2Fn%C3%A3o.txt.ocTransferId539518410.part at /var/www/owncloud/apps/files_external/lib/smb.php#73 2015-03-20T18:16:17+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt.ocTransferId539518410.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:16:17+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:16:16+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:16:16+00:00 Error PHP stat(): stat failed for smb://xxx:[email protected]/adrianoafonso/n++owncloud.xml at /var/www/owncloud/apps/files_external/lib/smb.php#73 2015-03-20T18:16:13+00:00 Error PHP stat(): stat failed for smb://xxx:[email protected]/adrianoafonso/n++owncloud.xml at /var/www/owncloud/apps/files_external/lib/smb.php#73 2015-03-20T18:16:13+00:00 Fatal webdav Exception: {"Message":"Could not rename part file to final file","Code":0,"Trace":"#0 \/var\/www\/owncloud\/lib\/private\/connector\/sabre\/directory.php(84): OC_Connector_Sabre_File->put(Resource id #110)\n#1 \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/Sabre\/DAV\/Server.php(1647): OC_Connector_Sabre_Directory->createFile('n\\xC3\\xA3o.txt', Resource id #110)\n#2 \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/Sabre\/DAV\/Server.php(900): Sabre\\DAV\\Server->createFile('adrianoafonso\/a...', Resource id #110, NULL)\n#3 [internal function]: Sabre\\DAV\\Server->httpPut('adrianoafonso\/a...')\n#4 \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/Sabre\/DAV\/Server.php(474): call_user_func(Array, 'adrianoafonso\/a...')\n#5 \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/Sabre\/DAV\/Server.php(214): Sabre\\DAV\\Server->invokeMethod('PUT', 'adrianoafonso\/a...')\n#6 \/var\/www\/owncloud\/apps\/files\/appinfo\/remote.php(61): Sabre\\DAV\\Server->exec()\n#7 \/var\/www\/owncloud\/remote.php(54): require_once('\/var\/www\/ownclo...')\n#8 {main}","File":"\/var\/www\/owncloud\/lib\/private\/connector\/sabre\/file.php","Line":142} 2015-03-20T18:15:15+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt.ocTransferId704205283.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:15:15+00:00 Error webdav \OC\Files\Filesystem::rename() failed 2015-03-20T18:15:15+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:15:15+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:15:14+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:15:14+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:15:14+00:00 Error PHP stat(): stat failed for smb://xxx:[email protected]/adrianoafonso/app_tek%2Fn%C3%A3o.txt.ocTransferId704205283.part at /var/www/owncloud/apps/files_external/lib/smb.php#73 2015-03-20T18:15:14+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt.ocTransferId704205283.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:15:14+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:15:14+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:15:14+00:00 Error PHP stat(): stat failed for smb://xxx:[email protected]/adrianoafonso/n++owncloud.xml at /var/www/owncloud/apps/files_external/lib/smb.php#73 2015-03-20T18:15:13+00:00 Fatal webdav Exception: {"Message":"Could not rename part file to final file","Code":0,"Trace":"#0 \/var\/www\/owncloud\/lib\/private\/connector\/sabre\/directory.php(84): OC_Connector_Sabre_File->put(Resource id #110)\n#1 \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/Sabre\/DAV\/Server.php(1647): OC_Connector_Sabre_Directory->createFile('n\\xC3\\xA3o.txt', Resource id #110)\n#2 \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/Sabre\/DAV\/Server.php(900): Sabre\\DAV\\Server->createFile('adrianoafonso\/a...', Resource id #110, NULL)\n#3 [internal function]: Sabre\\DAV\\Server->httpPut('adrianoafonso\/a...')\n#4 \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/Sabre\/DAV\/Server.php(474): call_user_func(Array, 'adrianoafonso\/a...')\n#5 \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/Sabre\/DAV\/Server.php(214): Sabre\\DAV\\Server->invokeMethod('PUT', 'adrianoafonso\/a...')\n#6 \/var\/www\/owncloud\/apps\/files\/appinfo\/remote.php(61): Sabre\\DAV\\Server->exec()\n#7 \/var\/www\/owncloud\/remote.php(54): require_once('\/var\/www\/ownclo...')\n#8 {main}","File":"\/var\/www\/owncloud\/lib\/private\/connector\/sabre\/file.php","Line":142} 2015-03-20T18:14:11+00:00 Error webdav \OC\Files\Filesystem::rename() failed 2015-03-20T18:14:11+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:14:11+00:00 Error PHP stat(): stat failed for smb://xxx:[email protected]/adrianoafonso/n++owncloud.xml at /var/www/owncloud/apps/files_external/lib/smb.php#73 2015-03-20T18:14:11+00:00 Warning sharing No fileinfo available for: /adrianoafonso/app_tek/não.txt 2015-03-20T18:14:11+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:14:11+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:14:11+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:14:10+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:14:10+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:14:10+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:14:10+00:00 Error PHP stat(): stat failed for smb://xxx:[email protected]/adrianoafonso/app_tek%2Fn%C3%A3o.txt.ocTransferId789033054.part at /var/www/owncloud/apps/files_external/lib/smb.php#73 2015-03-20T18:14:10+00:00 Error PHP url_stat(): path '\adrianoafonso\app_tek\não.txt.ocTransferId789033054.part' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:14:10+00:00 Error PHP stat(): stat failed for smb://xxx:[email protected]/adrianoafonso/n++owncloud.xml at /var/www/owncloud/apps/files_external/lib/smb.php#73 2015-03-20T18:14:09+00:00 Error PHP url_stat(): path '\adrianoafonso\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:13:45+00:00 Warning sharing No fileinfo available for: /adrianoafonso/não.txt 2015-03-20T18:13:45+00:00 Error PHP url_stat(): path '\adrianoafonso\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:13:45+00:00 Error PHP url_stat(): path '\adrianoafonso\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:13:45+00:00 Error PHP url_stat(): path '\adrianoafonso\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:13:45+00:00 Warning sharing No fileinfo available for: /adrianoafonso/não.txt 2015-03-20T18:13:45+00:00 Error PHP url_stat(): path '\adrianoafonso\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:13:45+00:00 Error PHP url_stat(): path '\adrianoafonso\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:13:45+00:00 Error PHP url_stat(): path '\adrianoafonso\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:13:45+00:00 Error PHP url_stat(): path '\adrianoafonso\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:13:45+00:00 Error PHP url_stat(): path '\adrianoafonso\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:13:45+00:00 Error PHP url_stat(): path '\adrianoafonso\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:13:44+00:00 Error PHP url_stat(): path '\adrianoafonso\não.txt' not found at /var/www/owncloud/apps/files_external/3rdparty/smb4php/smb.php#260 2015-03-20T18:13:44+00:00

@DeepDiver1975
Copy link
Member

@icewind1991 can you please add unit tests for these characters? TH

@anduz
Copy link

anduz commented May 29, 2015

I'm also having issues with a foldername containing the german umlaut character ä.
In the OC web interface this folder is not shown, and the next folder "F" is also not shown.
My server config:
Debian 7
OC 8.0.2
External storage support 0.2.3 (SMB / CIFS mounted shared folder on Windows SBS2008)

@DeepDiver1975 DeepDiver1975 added this to the 8.2-next milestone May 29, 2015
@ghost ghost modified the milestones: 8.2.1-next-maintenance, 8.2-current Sep 21, 2015
@PVince81
Copy link
Contributor

Please have a try with 8.1.3 which contains an updated SMB library that uses a different approach.

@anduz
Copy link

anduz commented Oct 19, 2015

i've installed it, but external storage now doesn't work anymore and an
error appears:

Exception: {"Message":"Invalid request for
\/owncloud\/public","Code":0,"Trace":"
0 \/var\/www\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Share.php(364):
Icewind\\SMB\\Parser->checkForError(Array, '\/owncloud\/publi...')\n
1 \/var\/www\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Share.php(128):
Icewind\\SMB\\Share->parseOutput(Array, '\/owncloud\/publi...')\n
2 \/var\/www\/owncloud\/apps\/files_external\/lib\/smb.php(102):
Icewind\\SMB\\Share->stat('\/owncloud\/publi...')\n
3 \/var\/www\/owncloud\/apps\/files_external\/lib\/smb.php(136):
OC\\Files\\Storage\\SMB->getFileInfo('')\n
4 \/var\/www\/owncloud\/lib\/private\/files\/storage\/common.php(167):
OC\\Files\\Storage\\SMB->stat('')\n
5 \/var\/www\/owncloud\/apps\/files_external\/lib\/smb.php(171):
OC\\Files\\Storage\\Common->filemtime('')\n
6 \/var\/www\/owncloud\/lib\/private\/files\/storage\/wrapper\/wrapper.php(376):
OC\\Files\\Storage\\SMB->hasUpdated('', 1444725846)\n
7 \/var\/www\/owncloud\/lib\/private\/files\/storage\/wrapper\/wrapper.php(376):
OC\\Files\\Storage\\Wrapper\\Wrapper->hasUpdated('', 1444725846)\n
8 \/var\/www\/owncloud\/lib\/private\/files\/cache\/watcher.php(89):
OC\\Files\\Storage\\Wrapper\\Wrapper->hasUpdated('', 1444725846)\n
9 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1187):
OC\\Files\\Cache\\Watcher->checkUpdate('', Array)\n
10 \/var\/www\/owncloud\/lib\/private\/connector\/sabre\/objecttree.php(148):
OC\\Files\\View->getFileInfo('SMB-Public')\n
11 \/var\/www\/owncloud\/lib\/private\/connector\/sabre\/custompropertiesbackend.php(101):
OC\\Connector\\Sabre\\ObjectTree->getNodeForPath('SMB-Public')\n
12 \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/DAV\/PropertyStorage\/Plugin.php(86):
OC\\Connector\\Sabre\\CustomPropertiesBackend->propFind('SMB-Public',
Object(Sabre\\DAV\\PropFind))\n
13 [internal function]: Sabre\\DAV\\PropertyStorage\\Plugin->propFind(Object(Sabre\\DAV\\PropFind),
Object(OC\\Connector\\Sabre\\Directory))\n
14 \/var\/www\/owncloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105):
call_user_func_array(Array, Array)\n
15 \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(1016):
Sabre\\Event\\EventEmitter->emit('propFind', Array)\n
16 \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(936):
Sabre\\DAV\\Server->getPropertiesByNode(Object(Sabre\\DAV\\PropFind),
Object(OC\\Connector\\Sabre\\Directory))\n
17 \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php(327):
Sabre\\DAV\\Server->getPropertiesForPath('', Array, 1)\n
18 [internal function]: Sabre\\DAV\\CorePlugin->httpPropfind(Object(Sabre\\HTTP\\Request),
Object(Sabre\\HTTP\\Response))\n
19 \/var\/www\/owncloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105):
call_user_func_array(Array, Array)\n
20 \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(469):
Sabre\\Event\\EventEmitter->emit('method:PROPFIND', Array)\n
21 \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(254):
Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request),
Object(Sabre\\HTTP\\Response))\n
22 \/var\/www\/owncloud\/apps\/files\/appinfo\/remote.php(83):
Sabre\\DAV\\Server->exec()\n
23 \/var\/www\/owncloud\/remote.php(132): require_once('\/var\/www\/ownclo...')\n
24 {main}","File":"\/var\/www\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Parser.php","Line":49}

@PVince81
Copy link
Contributor

@icewind1991 any idea about this "Invalid request" message ?

@icewind1991
Copy link
Contributor

Not without knowing the exact class of the exception

@anduz
Copy link

anduz commented Oct 20, 2015

So what shoud I do?
I've already reverted the update, but I can try again if it helps resolve
that issue.
I just need to know where I can find the info you need.

2015-10-19 16:44 GMT+02:00 Robin Appelman [email protected]:

Not without knowing the exact class of the exception


Reply to this email directly or view it on GitHub
#13967 (comment).

@anduz
Copy link

anduz commented Oct 21, 2015

I've tried the upgrade again using apt-get update, apt-get upgrade, apt-get
install owncloud

Fatal webdav Exception: {"Message":"Invalid request for
/owncloud/andreas/Airport (Junction)/A/Aeroporto di
Bolzano-Originale-CD/Sottoquadri/Q. wc","Code":0,"Trace":"#0
/var/www/owncloud/apps/files_external/3rdparty/icewind/smb/src/Share.php(364):
Icewind\SMB\Parser->checkForError(Array, '/owncloud/andre...')\n#1
/var/www/owncloud/apps/files_external/3rdparty/icewind/smb/src/Share.php(128):
Icewind\SMB\Share->parseOutput(Array, '/owncloud/andre...')\n#2
/var/www/owncloud/apps/files_external/lib/smb.php(102):
Icewind\SMB\Share->stat('/owncloud/andre...')\n#3
/var/www/owncloud/apps/files_external/lib/smb.php(136):
OC\Files\Storage\SMB->getFileInfo('Airport (Ju...')\n#4
/var/www/owncloud/lib/private/files/storage/common.php(167):
OC\Files\Storage\SMB->stat('Airport (Ju...')\n#5
/var/www/owncloud/apps/files_external/lib/smb.php(171):
OC\Files\Storage\Common->filemtime('Airport (Ju...')\n#6
/var/www/owncloud/lib/private/files/storage/wrapper/wrapper.php(376):
OC\Files\Storage\SMB->hasUpdated('Airport (Ju...', 1176803813)\n#7
/var/www/owncloud/lib/private/files/storage/wrapper/wrapper.php(376):
OC\Files\Storage\Wrapper\Wrapper->hasUpdated('Airport (Ju...',
1176803813)\n#8
/var/www/owncloud/lib/private/files/cache/watcher.php(89):
OC\Files\Storage\Wrapper\Wrapper->hasUpdated('Airport (Ju...',
1176803813)\n#9 /var/www/owncloud/lib/private/files/view.php(1187):
OC\Files\Cache\Watcher->checkUpdate('Airport (Ju...', Array)\n#10
/var/www/owncloud/lib/private/connector/sabre/objecttree.php(148):
OC\Files\View->getFileInfo('SMB-Andreas/...')\n#11
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(920):
OC\Connector\Sabre\ObjectTree->getNodeForPath('SMB-Andreas/...')\n#12
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(327):
Sabre\DAV\Server->getPropertiesForPath('SMB-Andreas/...', Array,
1)\n#13 [internal function]:
Sabre\DAV\CorePlugin->httpPropfind(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#14
/var/www/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php(105):
call_user_func_array(Array, Array)\n#15
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(469):
Sabre\Event\EventEmitter->emit('method:PROPFIND', Array)\n#16
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(254):
Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#17
/var/www/owncloud/apps/files/appinfo/remote.php(83):
Sabre\DAV\Server->exec()\n#18 /var/www/owncloud/remote.php(132):
require_once('/var/www/ownclo...')\n#19
{main}","File":"/var/www/owncloud/apps/files_external/3rdparty/icewind/smb/src/Parser.php","Line":49}
2015-10-21T07:12:33+00:00

@anduz
Copy link

anduz commented Oct 21, 2015

Debug OC\Files\Cache\Scanner !!! Path '' is not accessible or present !!!

2015-10-21 9:20 GMT+02:00 Andreas Pircher [email protected]:

I've tried the upgrade again using apt-get update, apt-get upgrade,
apt-get install owncloud

Fatal webdav Exception: {"Message":"Invalid request for
/owncloud/andreas/ABD Airport (Junction)/A/Aeroporto di
Bolzano-Originale-CD/Sottoquadri/Q. wc","Code":0,"Trace":"#0
/var/www/owncloud/apps/files_external/3rdparty/icewind/smb/src/Share.php(364):
Icewind\SMB\Parser->checkForError(Array, '/owncloud/andre...')\n#1
/var/www/owncloud/apps/files_external/3rdparty/icewind/smb/src/Share.php(128):
Icewind\SMB\Share->parseOutput(Array, '/owncloud/andre...')\n#2
/var/www/owncloud/apps/files_external/lib/smb.php(102):
Icewind\SMB\Share->stat('/owncloud/andre...')\n#3
/var/www/owncloud/apps/files_external/lib/smb.php(136):
OC\Files\Storage\SMB->getFileInfo('ABD Airport (Ju...')\n#4
/var/www/owncloud/lib/private/files/storage/common.php(167):
OC\Files\Storage\SMB->stat('ABD Airport (Ju...')\n#5
/var/www/owncloud/apps/files_external/lib/smb.php(171):
OC\Files\Storage\Common->filemtime('ABD Airport (Ju...')\n#6
/var/www/owncloud/lib/private/files/storage/wrapper/wrapper.php(376):
OC\Files\Storage\SMB->hasUpdated('ABD Airport (Ju...', 1176803813)\n#7
/var/www/owncloud/lib/private/files/storage/wrapper/wrapper.php(376):
OC\Files\Storage\Wrapper\Wrapper->hasUpdated('ABD Airport (Ju...',
1176803813)\n#8
/var/www/owncloud/lib/private/files/cache/watcher.php(89):
OC\Files\Storage\Wrapper\Wrapper->hasUpdated('ABD Airport (Ju...',
1176803813)\n#9 /var/www/owncloud/lib/private/files/view.php(1187):
OC\Files\Cache\Watcher->checkUpdate('ABD Airport (Ju...', Array)\n#10
/var/www/owncloud/lib/private/connector/sabre/objecttree.php(148):
OC\Files\View->getFileInfo('SMB-Andreas/ABD...')\n#11
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(920):
OC\Connector\Sabre\ObjectTree->getNodeForPath('SMB-Andreas/ABD...')\n#12
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(327):
Sabre\DAV\Server->getPropertiesForPath('SMB-Andreas/ABD...', Array,
1)\n#13 [internal function]:
Sabre\DAV\CorePlugin->httpPropfind(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#14
/var/www/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php(105):
call_user_func_array(Array, Array)\n#15
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(469):
Sabre\Event\EventEmitter->emit('method:PROPFIND', Array)\n#16
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(254):
Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#17
/var/www/owncloud/apps/files/appinfo/remote.php(83):
Sabre\DAV\Server->exec()\n#18 /var/www/owncloud/remote.php(132):
require_once('/var/www/ownclo...')\n#19
{main}","File":"/var/www/owncloud/apps/files_external/3rdparty/icewind/smb/src/Parser.php","Line":49}
2015-10-21T07:12:33+00:00

@PVince81
Copy link
Contributor

@adrianoafonso did you have any more luck with 8.1.3 ?

@icewind1991 any hint how to get the class of the exception for @anduz ? Adding more logging statements maybe ?

@PVince81
Copy link
Contributor

PVince81 commented Nov 3, 2015

@anduz this file name looks strange "/owncloud/andreas/ABD Airport (Junction)/A/Aeroporto di Bolzano-Originale-CD/Sottoquadri/Q. wc". Do you have a file called "Q. wc" in that folder ? Or is this a sign and perhaps a clue for a possible bug ?

@anduz
Copy link

anduz commented Nov 3, 2015

Q. wc is a folder
Am 03.11.2015 17:19 schrieb "Vincent Petry" [email protected]:

@anduz https://github.com/anduz this file name looks strange
"/owncloud/andreas/ABD Airport (Junction)/A/Aeroporto di
Bolzano-Originale-CD/Sottoquadri/Q. wc". Do you have a file called "Q.
wc" in that folder ? Or is this a sign and perhaps a clue for a possible
bug ?


Reply to this email directly or view it on GitHub
#13967 (comment).

@icewind1991
Copy link
Contributor

/owncloud/andreas/ABD Airport (Junction)/A/Aeroporto di Bolzano-Originale-CD/Sottoquadri/Q

Are you using DFS?

@PVince81
Copy link
Contributor

PVince81 commented Nov 9, 2015

If you're using DFS it could be this known issue: #18398

@anduz
Copy link

anduz commented Nov 9, 2015

I don't think so. I'm using a share on a sbs2008
Am 09.11.2015 10:53 schrieb "Vincent Petry" [email protected]:

If you're using DFS it could be this known issue: #18398
#18398


Reply to this email directly or view it on GitHub
#13967 (comment).

@SergioBertolinSG
Copy link
Contributor

I've tested the behaviour of files with special characters using 8.2.1rc1 tarball using postgresql, syncing using the os x client 2.0.0 with a folder mounted from a windows server 2008 rc2 using external storage app (SMB/CIFS). No problems found.

@PVince81
Copy link
Contributor

@anduz the SMB library has two modes, one using the old "smbclient" as fallback. That does not work with DFS. Looking at the stack trace it looks like that is what is happening.

The regular mode for the SMB library is to use libsmbclient and its php5 binding. So it looks like your system might be missing that library.

Did you install using the packages from https://download.owncloud.org/download/repositories/stable/owncloud/ or did you use the tarball ?
Note that the packages from that site should automatically install the package php5-libsmbclient.
You could check if your distro provides such package ?

@ghost
Copy link

ghost commented Nov 10, 2015

closing. Please re-open if this doesn't work.

@ghost ghost closed this as completed Nov 10, 2015
@anduz
Copy link

anduz commented Nov 10, 2015

Can't try it right now. Will try as soon as possible.
Am 10.11.2015 16:48 schrieb "C. Montero Luque" [email protected]:

closing. Please re-open if this doesn't work.


Reply to this email directly or view it on GitHub
#13967 (comment).

@jnweiger
Copy link
Contributor

@kawohl can you add php5-libsmbclient to our ce:8.2 projects please? apparently also needed for community...

@JKawohl
Copy link
Contributor

JKawohl commented Nov 16, 2015

submitted and building...

@anduz
Copy link

anduz commented Dec 30, 2015

I've now upgraded to 8.1.5 an then to 8.2.2 using apt-get.
i have then reactivated external files,
now this is part of my error log:

ErrorindexException:
{"Exception":"OC\NeedsUpdateException","Message":"","Code":0,"Trace":"#0
/var/www/owncloud/lib/private/app.php(118):
OC_App::loadApp('files_trashbin')\n#1
/var/www/owncloud/lib/private/util.php(130):
OC_App::loadApps(Array)\n#2 /var/www/owncloud/lib/base.php(850):
OC_Util::setupFS()\n#3 /var/www/owncloud/index.php(39):
OC::handleRequest()\n#4
{main}","File":"/var/www/owncloud/lib/private/app.php","Line":139}
2015-12-30T08:30:05+00:00FatalwebdavException: {"Message":"HTTP/1.1 503
Could not open
file","Exception":"Sabre\DAV\Exception\ServiceUnavailable","Code":0,"Trace":"#0
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(82):
OC\Connector\Sabre\File->get()\n#1 internal function:
Sabre\DAV\CorePlugin->httpGet(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#2
/var/www/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php(105):
call_user_func_array(Array, Array)\n#3
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(469):
Sabre\Event\EventEmitter->emit('method:GET', Array)\n#4
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(254):
Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#5
/var/www/owncloud/apps/files/appinfo/remote.php(56):
Sabre\DAV\Server->exec()\n#6 /var/www/owncloud/remote.php(137):
require_once('/var/www/ownclo...')\n#7
{main}","File":"/var/www/owncloud/lib/private/connector/sabre/file.php","Line":268}
2015-12-30T08:29:53+00:00FatalwebdavException: {"Message":"HTTP/1.1 503
Could not open
file","Exception":"Sabre\DAV\Exception\ServiceUnavailable","Code":0,"Trace":"#0
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(82):
OC\Connector\Sabre\File->get()\n#1 internal function:
Sabre\DAV\CorePlugin->httpGet(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#2
/var/www/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php(105):
call_user_func_array(Array, Array)\n#3
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(469):
Sabre\Event\EventEmitter->emit('method:GET', Array)\n#4
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(254):
Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#5
/var/www/owncloud/apps/files/appinfo/remote.php(56):
Sabre\DAV\Server->exec()\n#6 /var/www/owncloud/remote.php(137):
require_once('/var/www/ownclo...')\n#7
{main}","File":"/var/www/owncloud/lib/private/connector/sabre/file.php","Line":268}
2015-12-30T08:29:49+00:00FatalwebdavException: {"Message":"HTTP/1.1 503
Failed to open file:
","Exception":"Sabre\DAV\Exception\ServiceUnavailable","Code":0,"Trace":"#0
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(82):
OC\Connector\Sabre\File->get()\n#1 internal function:
Sabre\DAV\CorePlugin->httpGet(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#2
/var/www/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php(105):
call_user_func_array(Array, Array)\n#3
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(469):
Sabre\Event\EventEmitter->emit('method:GET', Array)\n#4
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(254):
Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#5
/var/www/owncloud/apps/files/appinfo/remote.php(56):
Sabre\DAV\Server->exec()\n#6 /var/www/owncloud/remote.php(137):
require_once('/var/www/ownclo...')\n#7
{main}","File":"/var/www/owncloud/lib/private/connector/sabre/file.php","Line":275}
2015-12-30T08:30:35+00:00Errorfiles_externalException:
{"Exception":"Icewind\SMB\Exception\NotFoundException","Message":"Invalid
request for /owncloud/public","Code":0,"Trace":"#0
/var/www/owncloud/apps/files_external/3rdparty/icewind/smb/src/Share.php(364):
Icewind\SMB\Parser->checkForError(Array, '/owncloud/publi...')\n#1
/var/www/owncloud/apps/files_external/3rdparty/icewind/smb/src/Share.php(128):
Icewind\SMB\Share->parseOutput(Array, '/owncloud/publi...')\n#2
/var/www/owncloud/apps/files_external/lib/smb.php(102):
Icewind\SMB\Share->stat('/owncloud/publi...')\n#3
/var/www/owncloud/apps/files_external/lib/smb.php(136):
OC\Files\Storage\SMB->getFileInfo('')\n#4
/var/www/owncloud/lib/private/files/storage/common.php(410):
OC\Files\Storage\SMB->stat('')\n#5
/var/www/owncloud/apps/files_external/lib/config.php(261):
OC\Files\Storage\Common->test(false)\n#6
/var/www/owncloud/apps/files_external/controller/storagescontroller.php(237):
OC_Mount_Config::getBackendStatus('\OC\Files\Stora...', Array,
false)\n#7
/var/www/owncloud/apps/files_external/controller/storagescontroller.php(257):
OCA\Files_External\Controller\StoragesController->updateStorageStatus(Object(OCA\Files_external\Lib\StorageConfig))\n#8

/var/www/owncloud/lib/private/appframework/http/dispatcher.php(159):
call_user_func_array(Array, Array)\n#10
/var/www/owncloud/lib/private/appframework/http/dispatcher.php(89):
OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Files_External\Controller\GlobalStoragesController),
'show')\n#11
/var/www/owncloud/lib/private/appframework/app.php(108):
OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files_External\Controller\GlobalStoragesController),
'show')\n#12
/var/www/owncloud/lib/private/appframework/routing/routeactionhandler.php(45):
OC\AppFramework\App::main('GlobalStoragesC...', 'show',
Object(OC\AppFramework\DependencyInjection\DIContainer), Array)\n#13

/var/www/owncloud/lib/private/route/router.php(291):
call_user_func(Object(OC\AppFramework\routing\RouteActionHandler),
Array)\n#15 /var/www/owncloud/lib/base.php(851):
OC\Route\Router->match('/apps/files_ext...')\n#16
/var/www/owncloud/index.php(39): OC::handleRequest()\n#17
{main}","File":"/var/www/owncloud/apps/files_external/3rdparty/icewind/smb/src/Parser.php","Line":49}
2015-12-30T08:30:26+00:00

2015-11-16 14:59 GMT+01:00 Jonathan Kawohl [email protected]:

submitted and building...


Reply to this email directly or view it on GitHub
#13967 (comment).

@anduz
Copy link

anduz commented Dec 30, 2015

installed php5-libsmbclient with:

echo 'deb
http://download.opensuse.org/repositories/isv:/ownCloud:/community:/8.1/Debian_7.0/
/' >> /etc/apt/sources.list.d/php5-libsmbclient.list
apt-get update
apt-get install php5-libsmbclient

now getting:

ErrorPHPPHP Startup: Unable to load dynamic library
'/usr/lib/php5/20131226/libsmbclient.so' -
/usr/lib/php5/20131226/libsmbclient.so: cannot open shared object file: No
such file or directory at Unknown#02015-12-30T08:49:14+00:00Error
files_externalException:
{"Exception":"Icewind\SMB\Exception\NotFoundException","Message":"Invalid
request for /owncloud/public","Code":0,"Trace":"#0
/var/www/owncloud/apps/files_external/3rdparty/icewind/smb/src/Share.php(364):
Icewind\SMB\Parser->checkForError(Array, '/owncloud/publi...')\n#1
/var/www/owncloud/apps/files_external/3rdparty/icewind/smb/src/Share.php(128):
Icewind\SMB\Share->parseOutput(Array, '/owncloud/publi...')\n#2
/var/www/owncloud/apps/files_external/lib/smb.php(102):
Icewind\SMB\Share->stat('/owncloud/publi...')\n#3
/var/www/owncloud/apps/files_external/lib/smb.php(136):
OC\Files\Storage\SMB->getFileInfo('')\n#4
/var/www/owncloud/lib/private/files/storage/common.php(410):
OC\Files\Storage\SMB->stat('')\n#5
/var/www/owncloud/apps/files_external/lib/config.php(261):
OC\Files\Storage\Common->test(false)\n#6
/var/www/owncloud/apps/files_external/controller/storagescontroller.php(237):
OC_Mount_Config::getBackendStatus('\OC\Files\Stora...', Array,
false)\n#7
/var/www/owncloud/apps/files_external/controller/storagescontroller.php(257):
OCA\Files_External\Controller\StoragesController->updateStorageStatus(Object(OCA\Files_external\Lib\StorageConfig))\n#8

/var/www/owncloud/lib/private/appframework/http/dispatcher.php(159):
call_user_func_array(Array, Array)\n#10
/var/www/owncloud/lib/private/appframework/http/dispatcher.php(89):
OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Files_External\Controller\GlobalStoragesController),
'show')\n#11
/var/www/owncloud/lib/private/appframework/app.php(108):
OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files_External\Controller\GlobalStoragesController),
'show')\n#12
/var/www/owncloud/lib/private/appframework/routing/routeactionhandler.php(45):
OC\AppFramework\App::main('GlobalStoragesC...', 'show',
Object(OC\AppFramework\DependencyInjection\DIContainer), Array)\n#13

/var/www/owncloud/lib/private/route/router.php(291):
call_user_func(Object(OC\AppFramework\routing\RouteActionHandler),
Array)\n#15 /var/www/owncloud/lib/base.php(851):
OC\Route\Router->match('/apps/files_ext...')\n#16
/var/www/owncloud/index.php(39): OC::handleRequest()\n#17
{main}","File":"/var/www/owncloud/apps/files_external/3rdparty/icewind/smb/src/Parser.php","Line":49}
2015-12-30T08:45:42+00:00

2015-12-30 8:51 GMT+01:00 Andreas Pircher [email protected]:

i've added this to sources:
sh -c "echo 'deb
http://download.owncloud.org/download/repositories/stable/Debian_7.0/ /'

/etc/apt/sources.list.d/owncloud.list"
but php5-libsmbclient can't be found

2015-12-30 8:44 GMT+01:00 Andreas Pircher [email protected]:

I've now upgraded to 8.1.5 an then to 8.2.2 using apt-get.
i have then reactivated external files,
now this is part of my error log:

ErrorindexException:
{"Exception":"OC\NeedsUpdateException","Message":"","Code":0,"Trace":"#0
/var/www/owncloud/lib/private/app.php(118):
OC_App::loadApp('files_trashbin')\n#1
/var/www/owncloud/lib/private/util.php(130):
OC_App::loadApps(Array)\n#2 /var/www/owncloud/lib/base.php(850):
OC_Util::setupFS()\n#3 /var/www/owncloud/index.php(39):
OC::handleRequest()\n#4
{main}","File":"/var/www/owncloud/lib/private/app.php","Line":139}
2015-12-30T08:30:05+00:00FatalwebdavException: {"Message":"HTTP/1.1 503
Could not open
file","Exception":"Sabre\DAV\Exception\ServiceUnavailable","Code":0,"Trace":"#0
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(82):
OC\Connector\Sabre\File->get()\n#1 internal function:
Sabre\DAV\CorePlugin->httpGet(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#2
/var/www/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php(105):
call_user_func_array(Array, Array)\n#3
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(469):
Sabre\Event\EventEmitter->emit('method:GET', Array)\n#4
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(254):
Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#5
/var/www/owncloud/apps/files/appinfo/remote.php(56):
Sabre\DAV\Server->exec()\n#6 /var/www/owncloud/remote.php(137):
require_once('/var/www/ownclo...')\n#7
{main}","File":"/var/www/owncloud/lib/private/connector/sabre/file.php","Line":268}
2015-12-30T08:29:53+00:00FatalwebdavException: {"Message":"HTTP/1.1 503
Could not open
file","Exception":"Sabre\DAV\Exception\ServiceUnavailable","Code":0,"Trace":"#0
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(82):
OC\Connector\Sabre\File->get()\n#1 internal function:
Sabre\DAV\CorePlugin->httpGet(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#2
/var/www/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php(105):
call_user_func_array(Array, Array)\n#3
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(469):
Sabre\Event\EventEmitter->emit('method:GET', Array)\n#4
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(254):
Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#5
/var/www/owncloud/apps/files/appinfo/remote.php(56):
Sabre\DAV\Server->exec()\n#6 /var/www/owncloud/remote.php(137):
require_once('/var/www/ownclo...')\n#7
{main}","File":"/var/www/owncloud/lib/private/connector/sabre/file.php","Line":268}
2015-12-30T08:29:49+00:00FatalwebdavException: {"Message":"HTTP/1.1 503
Failed to open file:
","Exception":"Sabre\DAV\Exception\ServiceUnavailable","Code":0,"Trace":"#0
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(82):
OC\Connector\Sabre\File->get()\n#1 internal function:
Sabre\DAV\CorePlugin->httpGet(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#2
/var/www/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php(105):
call_user_func_array(Array, Array)\n#3
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(469):
Sabre\Event\EventEmitter->emit('method:GET', Array)\n#4
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(254):
Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#5
/var/www/owncloud/apps/files/appinfo/remote.php(56):
Sabre\DAV\Server->exec()\n#6 /var/www/owncloud/remote.php(137):
require_once('/var/www/ownclo...')\n#7
{main}","File":"/var/www/owncloud/lib/private/connector/sabre/file.php","Line":275}
2015-12-30T08:30:35+00:00Errorfiles_externalException:
{"Exception":"Icewind\SMB\Exception\NotFoundException","Message":"Invalid
request for /owncloud/public","Code":0,"Trace":"#0
/var/www/owncloud/apps/files_external/3rdparty/icewind/smb/src/Share.php(364):
Icewind\SMB\Parser->checkForError(Array, '/owncloud/publi...')\n#1
/var/www/owncloud/apps/files_external/3rdparty/icewind/smb/src/Share.php(128):
Icewind\SMB\Share->parseOutput(Array, '/owncloud/publi...')\n#2
/var/www/owncloud/apps/files_external/lib/smb.php(102):
Icewind\SMB\Share->stat('/owncloud/publi...')\n#3
/var/www/owncloud/apps/files_external/lib/smb.php(136):
OC\Files\Storage\SMB->getFileInfo('')\n#4
/var/www/owncloud/lib/private/files/storage/common.php(410):
OC\Files\Storage\SMB->stat('')\n#5
/var/www/owncloud/apps/files_external/lib/config.php(261):
OC\Files\Storage\Common->test(false)\n#6
/var/www/owncloud/apps/files_external/controller/storagescontroller.php(237):
OC_Mount_Config::getBackendStatus('\OC\Files\Stora...', Array,
false)\n#7
/var/www/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(12)\n#9
/var/www/owncloud/lib/private/appframework/http/dispatcher.php(159):
call_user_func_array(Array, Array)\n#10
/var/www/owncloud/lib/private/appframework/http/dispatcher.php(89):
OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Files_External\Controller\GlobalStoragesController),
'show')\n#11
/var/www/owncloud/lib/private/appframework/app.php(108):
OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files_External\Controller\GlobalStoragesController),
'show')\n#12
/var/www/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/owncloud/lib/private/route/router.php(291):
call_user_func(Object(OC\AppFramework\routing\RouteActionHandler),
Array)\n#15 /var/www/owncloud/lib/base.php(851):
OC\Route\Router->match('/apps/files_ext...')\n#16
/var/www/owncloud/index.php(39): OC::handleRequest()\n#17
{main}","File":"/var/www/owncloud/apps/files_external/3rdparty/icewind/smb/src/Parser.php","Line":49}
2015-12-30T08:30:26+00:00

2015-11-16 14:59 GMT+01:00 Jonathan Kawohl [email protected]:

submitted and building...


Reply to this email directly or view it on GitHub
#13967 (comment).

@anduz
Copy link

anduz commented Dec 30, 2015

I've tried using the external files in the ova appliance (owncloud 8.2.2)
external files still doesn't show files with "umlaut" like "ö"

2015-12-30 9:14 GMT+01:00 Andreas Pircher [email protected]:

installed php5-libsmbclient with:

echo 'deb
http://download.opensuse.org/repositories/isv:/ownCloud:/community:/8.1/Debian_7.0/
/' >> /etc/apt/sources.list.d/php5-libsmbclient.list
apt-get update
apt-get install php5-libsmbclient

now getting:

ErrorPHPPHP Startup: Unable to load dynamic library
'/usr/lib/php5/20131226/libsmbclient.so' -
/usr/lib/php5/20131226/libsmbclient.so: cannot open shared object file: No
such file or directory at Unknown#02015-12-30T08:49:14+00:00Error
files_externalException:
{"Exception":"Icewind\SMB\Exception\NotFoundException","Message":"Invalid
request for /owncloud/public","Code":0,"Trace":"#0
/var/www/owncloud/apps/files_external/3rdparty/icewind/smb/src/Share.php(364):
Icewind\SMB\Parser->checkForError(Array, '/owncloud/publi...')\n#1
/var/www/owncloud/apps/files_external/3rdparty/icewind/smb/src/Share.php(128):
Icewind\SMB\Share->parseOutput(Array, '/owncloud/publi...')\n#2
/var/www/owncloud/apps/files_external/lib/smb.php(102):
Icewind\SMB\Share->stat('/owncloud/publi...')\n#3
/var/www/owncloud/apps/files_external/lib/smb.php(136):
OC\Files\Storage\SMB->getFileInfo('')\n#4
/var/www/owncloud/lib/private/files/storage/common.php(410):
OC\Files\Storage\SMB->stat('')\n#5
/var/www/owncloud/apps/files_external/lib/config.php(261):
OC\Files\Storage\Common->test(false)\n#6
/var/www/owncloud/apps/files_external/controller/storagescontroller.php(237):
OC_Mount_Config::getBackendStatus('\OC\Files\Stora...', Array,
false)\n#7
/var/www/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(12)\n#9
/var/www/owncloud/lib/private/appframework/http/dispatcher.php(159):
call_user_func_array(Array, Array)\n#10
/var/www/owncloud/lib/private/appframework/http/dispatcher.php(89):
OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Files_External\Controller\GlobalStoragesController),
'show')\n#11
/var/www/owncloud/lib/private/appframework/app.php(108):
OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files_External\Controller\GlobalStoragesController),
'show')\n#12
/var/www/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/owncloud/lib/private/route/router.php(291):
call_user_func(Object(OC\AppFramework\routing\RouteActionHandler),
Array)\n#15 /var/www/owncloud/lib/base.php(851):
OC\Route\Router->match('/apps/files_ext...')\n#16
/var/www/owncloud/index.php(39): OC::handleRequest()\n#17
{main}","File":"/var/www/owncloud/apps/files_external/3rdparty/icewind/smb/src/Parser.php","Line":49}
2015-12-30T08:45:42+00:00

2015-12-30 8:51 GMT+01:00 Andreas Pircher [email protected]:

i've added this to sources:
sh -c "echo 'deb
http://download.owncloud.org/download/repositories/stable/Debian_7.0/ /'

/etc/apt/sources.list.d/owncloud.list"
but php5-libsmbclient can't be found

2015-12-30 8:44 GMT+01:00 Andreas Pircher [email protected]:

I've now upgraded to 8.1.5 an then to 8.2.2 using apt-get.
i have then reactivated external files,
now this is part of my error log:

ErrorindexException:
{"Exception":"OC\NeedsUpdateException","Message":"","Code":0,"Trace":"#0
/var/www/owncloud/lib/private/app.php(118):
OC_App::loadApp('files_trashbin')\n#1
/var/www/owncloud/lib/private/util.php(130):
OC_App::loadApps(Array)\n#2 /var/www/owncloud/lib/base.php(850):
OC_Util::setupFS()\n#3 /var/www/owncloud/index.php(39):
OC::handleRequest()\n#4
{main}","File":"/var/www/owncloud/lib/private/app.php","Line":139}
2015-12-30T08:30:05+00:00FatalwebdavException: {"Message":"HTTP/1.1
503 Could not open
file","Exception":"Sabre\DAV\Exception\ServiceUnavailable","Code":0,"Trace":"#0
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(82):
OC\Connector\Sabre\File->get()\n#1 [internal function]:
Sabre\DAV\CorePlugin->httpGet(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#2
/var/www/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php(105):
call_user_func_array(Array, Array)\n#3
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(469):
Sabre\Event\EventEmitter->emit('method:GET', Array)\n#4
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(254):
Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#5
/var/www/owncloud/apps/files/appinfo/remote.php(56):
Sabre\DAV\Server->exec()\n#6 /var/www/owncloud/remote.php(137):
require_once('/var/www/ownclo...')\n#7
{main}","File":"/var/www/owncloud/lib/private/connector/sabre/file.php","Line":268}
2015-12-30T08:29:53+00:00FatalwebdavException: {"Message":"HTTP/1.1
503 Could not open
file","Exception":"Sabre\DAV\Exception\ServiceUnavailable","Code":0,"Trace":"#0
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(82):
OC\Connector\Sabre\File->get()\n#1 [internal function]:
Sabre\DAV\CorePlugin->httpGet(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#2
/var/www/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php(105):
call_user_func_array(Array, Array)\n#3
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(469):
Sabre\Event\EventEmitter->emit('method:GET', Array)\n#4
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(254):
Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#5
/var/www/owncloud/apps/files/appinfo/remote.php(56):
Sabre\DAV\Server->exec()\n#6 /var/www/owncloud/remote.php(137):
require_once('/var/www/ownclo...')\n#7
{main}","File":"/var/www/owncloud/lib/private/connector/sabre/file.php","Line":268}
2015-12-30T08:29:49+00:00FatalwebdavException: {"Message":"HTTP/1.1
503 Failed to open file:
","Exception":"Sabre\DAV\Exception\ServiceUnavailable","Code":0,"Trace":"#0
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(82):
OC\Connector\Sabre\File->get()\n#1 [internal function]:
Sabre\DAV\CorePlugin->httpGet(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#2
/var/www/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php(105):
call_user_func_array(Array, Array)\n#3
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(469):
Sabre\Event\EventEmitter->emit('method:GET', Array)\n#4
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(254):
Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request),
Object(Sabre\HTTP\Response))\n#5
/var/www/owncloud/apps/files/appinfo/remote.php(56):
Sabre\DAV\Server->exec()\n#6 /var/www/owncloud/remote.php(137):
require_once('/var/www/ownclo...')\n#7
{main}","File":"/var/www/owncloud/lib/private/connector/sabre/file.php","Line":275}
2015-12-30T08:30:35+00:00Errorfiles_externalException:
{"Exception":"Icewind\SMB\Exception\NotFoundException","Message":"Invalid
request for /owncloud/public","Code":0,"Trace":"#0
/var/www/owncloud/apps/files_external/3rdparty/icewind/smb/src/Share.php(364):
Icewind\SMB\Parser->checkForError(Array, '/owncloud/publi...')\n#1
/var/www/owncloud/apps/files_external/3rdparty/icewind/smb/src/Share.php(128):
Icewind\SMB\Share->parseOutput(Array, '/owncloud/publi...')\n#2
/var/www/owncloud/apps/files_external/lib/smb.php(102):
Icewind\SMB\Share->stat('/owncloud/publi...')\n#3
/var/www/owncloud/apps/files_external/lib/smb.php(136):
OC\Files\Storage\SMB->getFileInfo('')\n#4
/var/www/owncloud/lib/private/files/storage/common.php(410):
OC\Files\Storage\SMB->stat('')\n#5
/var/www/owncloud/apps/files_external/lib/config.php(261):
OC\Files\Storage\Common->test(false)\n#6
/var/www/owncloud/apps/files_external/controller/storagescontroller.php(237):
OC_Mount_Config::getBackendStatus('\OC\Files\Stora...', Array,
false)\n#7
/var/www/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(12)\n#9
/var/www/owncloud/lib/private/appframework/http/dispatcher.php(159):
call_user_func_array(Array, Array)\n#10
/var/www/owncloud/lib/private/appframework/http/dispatcher.php(89):
OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Files_External\Controller\GlobalStoragesController),
'show')\n#11
/var/www/owncloud/lib/private/appframework/app.php(108):
OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files_External\Controller\GlobalStoragesController),
'show')\n#12
/var/www/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/owncloud/lib/private/route/router.php(291):
call_user_func(Object(OC\AppFramework\routing\RouteActionHandler),
Array)\n#15 /var/www/owncloud/lib/base.php(851):
OC\Route\Router->match('/apps/files_ext...')\n#16
/var/www/owncloud/index.php(39): OC::handleRequest()\n#17
{main}","File":"/var/www/owncloud/apps/files_external/3rdparty/icewind/smb/src/Parser.php","Line":49}
2015-12-30T08:30:26+00:00

2015-11-16 14:59 GMT+01:00 Jonathan Kawohl [email protected]:

submitted and building...


Reply to this email directly or view it on GitHub
#13967 (comment).

@PVince81
Copy link
Contributor

PVince81 commented Jan 7, 2016

@anduz are these files already on the external storage and ownCloud does not see them ? (NotFoundException)

Have these files been uploaded from a Mac directly to the remote share ? If yes, then it might be the NFC vs NFD encoding issue: #21365

Are you able to upload new files with special chars through ownCloud to the SMB storage ?

@anduz
Copy link

anduz commented Jan 7, 2016

the files are already there. also some other files are not show, maybe
reading directory content is stopped after such a file is found?
creating a new file containing "Umlaute" works.
Using virtualbox 5.0.12 on Windows 8.1, the external files are stored on
Windows SBS 2008.
I've copied the data and database from my existing owncloud 8.0.4

2016-01-07 11:18 GMT+01:00 Vincent Petry [email protected]:

@anduz https://github.com/anduz are these files already on the external
storage and ownCloud does not see them ? (NotFoundException)

Have these files been uploaded from a Mac directly to the remote share ?
If yes, then it might be the NFC vs NFD encoding issue: #21365
#21365

Are you able to upload new files with special chars through ownCloud to
the SMB storage ?


Reply to this email directly or view it on GitHub
#13967 (comment).

@PVince81
Copy link
Contributor

PVince81 commented Jan 7, 2016

@anduz if the files already there have the Mac UTF-8 encoding then this is #21365
There is a workaround where you mount the SMB share directly under linux, then run convmv -r -f utf8 -t utf8 --nfc foldername to rename the file names to NFC encoding. This command will only telly you if that's the case. If you want to actually repair them, you need to add --notest to the command.

@anduz
Copy link

anduz commented Jan 7, 2016

As it seems this command works only for files, so the problem with
directories will persist.
Does this affect VSS service, i mean, will the file be recognized as the
same file after rename or will it be considered a new file?
Here is my testing results, seems not to work at all:

root@debian:/testu/owncloud/andreas/Moelten (Junction)/D# ls
Ersatzerklärung.pdf.p7m pippo
151217 NM Messungen,Verlauf Erde.pdf hängebauchkröte.txt
Thumbs.db
Ersatzerklärung.pdf ölaksdfu.txt
root@debian:/testu/owncloud/andreas/Moelten (Junction)/D# cd ..
root@debian:/testu/owncloud/andreas/Moelten (Junction)# convmv -r -f utf8
-t utf8 --nfc D
Your Perl version has fleas #37757 #49830
Starting a dry run without changes...
No changes to your files done. Use --notest to finally rename the files.
root@debian:/testu/owncloud/andreas/Moelten (Junction)# convmv -r -f utf8
-t utf8 --nfc ./D
Your Perl version has fleas #37757 #49830
Starting a dry run without changes...
No changes to your files done. Use --notest to finally rename the files.
root@debian:/testu/owncloud/andreas/Moelten (Junction)# cd D/
root@debian:/testu/owncloud/andreas/Moelten (Junction)/D# convmv -r -f utf8
-t utf8 --nfc .
Your Perl version has fleas #37757 #49830
Starting a dry run without changes...
No changes to your files done. Use --notest to finally rename the files.
root@debian:/testu/owncloud/andreas/Moelten (Junction)/D# ls -l

2016-01-07 14:40 GMT+01:00 Vincent Petry [email protected]:

@anduz https://github.com/anduz if the files already there have the Mac
UTF-8 encoding then this is #21365
#21365
There is a workaround where you mount the SMB share directly under linux,
then run convmv -r -f utf8 -t utf8 --nfc foldername to rename the file
names to NFC encoding. This command will only telly you if that's the case.
If you want to actually repair them, you need to add --notest to the
command.


Reply to this email directly or view it on GitHub
#13967 (comment).

@PVince81
Copy link
Contributor

PVince81 commented Jan 7, 2016

VSS is likely to NOT recognize the file.

The results you posted seem to show that the encoding issue you have are NOT related to NFC unfortunately. Else the command would have shown a list of files to fix.

Reopening.

@PVince81 PVince81 reopened this Jan 7, 2016
@PVince81 PVince81 modified the milestones: 9.0-current, 8.2.1 Jan 7, 2016
@anduz
Copy link

anduz commented Jan 7, 2016

Maybe you need to know how I mounted the share:
mount -t cifs -o
username=user,password=pass,file_mode=0777,dir_mode=0777,noperm,network
'//winsbs2008serverip/share' /testu

2016-01-07 15:58 GMT+01:00 Vincent Petry [email protected]:

Reopened #13967 #13967.


Reply to this email directly or view it on GitHub
#13967 (comment).

@anduz
Copy link

anduz commented Jan 7, 2016

Did a filescan: sudo -u www-data php occ files:scan --all
Now it shows all the files, including öä-ones

cron.php doesn't seem to do the same (admin page told it was executed).

2016-01-07 16:20 GMT+01:00 Andreas Pircher [email protected]:

Maybe you need to know how I mounted the share:
mount -t cifs -o
username=user,password=pass,file_mode=0777,dir_mode=0777,noperm,network
'//winsbs2008serverip/share' /testu

2016-01-07 15:58 GMT+01:00 Vincent Petry [email protected]:

Reopened #13967 #13967.


Reply to this email directly or view it on GitHub
#13967 (comment).

@PVince81
Copy link
Contributor

Hmm, wait. If you mount CIFS on Filesystem-level then this is not the same thing as mounting SMB using the external storage app.

You probably used the "Local" external storage backend and pointed it at the folder "/testu" ?

@anduz
Copy link

anduz commented Feb 12, 2016

I'm using only the external storage app to access shares on the Windows
machine

2016-02-12 16:03 GMT+01:00 Vincent Petry [email protected]:

Hmm, wait. If you mount CIFS on Filesystem-level then this is not the same
thing as mounting SMB using the external storage app.

You probably used the "Local" external storage backend and pointed it at
the folder "/testu" ?


Reply to this email directly or view it on GitHub
#13967 (comment).

@ghost ghost added the sev2-high label Feb 20, 2016
@ghost ghost modified the milestones: 8.2.4-next-maintenance, 9.0-current Feb 23, 2016
@ghost ghost modified the milestones: 8.2.5-next-maintenance, 8.2.4-current-maintenance Apr 19, 2016
@MorrisJobke MorrisJobke modified the milestones: 8.2.5, 8.2.6-current-maintenance May 17, 2016
@PVince81
Copy link
Contributor

Please try with 9.1.0 beta2 and in the external storage section click the cog icon and enable encoding compatibilty. Then run occ files:scan --all once and check whether the files appear.

Let me know if this fixes your syncing issues.

Ref: #21365

@PVince81 PVince81 modified the milestones: 8.2.7-next-maintenance, 8.2.6-current-maintenance Jun 17, 2016
@PVince81
Copy link
Contributor

Closing this as I think the encoding compatibility mode that was added in 9.1 will fix this.

Please reopen if it doesn't.

@lock
Copy link

lock bot commented Aug 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests