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

Problem rewriting SMB files #9000

Closed
seederp2p opened this issue Mar 27, 2018 · 4 comments
Closed

Problem rewriting SMB files #9000

seederp2p opened this issue Mar 27, 2018 · 4 comments

Comments

@seederp2p
Copy link

Steps to reproduce

  1. Mount SMB Share for users
  2. Try to replace a file that already exists
  3. File doesn't get updated

Expected behaviour

When you overwrite the file it should update the file to the version you are uploading

Actual behaviour

The file doesn't update

Server configuration

Operating system: Ubuntu Server 16.04

Web server: Apache 2.4.18

Database: mysql Ver 14.14 Distrib 5.7.21

PHP version: PHP 7.0.28-0ubuntu0.16.04.1 (cli) ( NTS )

Nextcloud version: 13.01

Updated from an older Nextcloud/ownCloud or fresh install: Updated from 12 but it was the same behaviour

Where did you install Nextcloud from: Manually

Signing status:

Signing status
No errors have been found.

List of activated apps:

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

Nextcloud configuration:

Config report
  - activity: 2.6.1
  - bruteforcesettings: 1.0.3
  - comments: 1.3.0
  - dav: 1.4.6
  - federatedfilesharing: 1.3.1
  - federation: 1.3.0
  - files: 1.8.0
  - files_external: 1.4.1
  - files_pdfviewer: 1.2.1
  - files_sharing: 1.5.0
  - files_texteditor: 2.5.1
  - files_trashbin: 1.3.0
  - files_versions: 1.6.0
  - files_videoplayer: 1.2.0
  - firstrunwizard: 2.2.1
  - gallery: 18.0.0
  - keeweb: 0.4.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.1.0
  - nextcloud_announcements: 1.2.0
  - notifications: 2.1.2
  - oauth2: 1.1.0
  - password_policy: 1.3.0
  - provisioning_api: 1.3.0
  - serverinfo: 1.3.0
  - sharebymail: 1.3.0
  - survey_client: 1.1.0
  - systemtags: 1.3.0
  - theming: 1.4.1
  - twofactor_backupcodes: 1.2.3
  - updatenotification: 1.3.0
  - user_ldap: 1.3.1
  - workflowengine: 1.3.0
Disabled:
  - admin_audit
  - encryption
  - user_external

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

Are you using encryption: no

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

Logs

Nextcloud log (data/nextcloud.log)

Nextcloud log
Error: Class '\Icewind\SMB\Exception\InvalidArgumentException' not found
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/NativeState.php - line 49: Icewind\SMB\Exception\Exception fromMap(Array, 22, '/Clientes/Filip...')
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/NativeState.php - line 61: Icewind\SMB\NativeState->handleError('/Clientes/Filip...')
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/NativeState.php - line 125: Icewind\SMB\NativeState->testResult(false, 'smb //10.3.0.40...')
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php - line 160: Icewind\SMB\NativeState->rename('smb //10.3.0.40...', 'smb //10.3.0.40...')
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 198: Icewind\SMB\NativeShare->rename('/Clientes/Filip...', '/Clientes/Filip...')
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 276: OCA\Files_External\Lib\Storage\SMB->rename('Clientes/Filipe...', 'Clientes/Filipe...')
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/PermissionsMask.php - line 88: OC\Files\Storage\Wrapper\Wrapper->rename('Clientes/Filipe...', 'Clientes/Filipe...')
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 276: OC\Files\Storage\Wrapper\PermissionsMask->rename('Clientes/Filipe...', 'Clientes/Filipe...')
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/PermissionsMask.php - line 88: OC\Files\Storage\Wrapper\Wrapper->rename('Clientes/Filipe...', 'Clientes/Filipe...')
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 276: OC\Files\Storage\Wrapper\PermissionsMask->rename('Clientes/Filipe...', 'Clientes/Filipe...')
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php - line 299: OC\Files\Storage\Wrapper\Wrapper->rename('Clientes/Filipe...', 'Clientes/Filipe...')
/var/www/nextcloud/apps/files_trashbin/lib/Storage.php - line 160: OC\Files\Storage\Wrapper\Availability->rename('Clientes/Filipe...', 'Clientes/Filipe...')
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 570: OCA\Files_Trashbin\Storage->rename('Clientes/Filipe...', 'Clientes/Filipe...')
/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php - line 208: OC\Files\Storage\Wrapper\Wrapper->moveFromStorage(Object(OCA\Files_Trashbin\Storage), 'Clientes/Filipe...', 'Clientes/Filipe...')
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1130: OCA\DAV\Connector\Sabre\File->put(Resource id #87)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 513: Sabre\DAV\Server->updateFile('Tech/Clientes/F...', Resource id #87, NULL)
[internal function] Sabre\DAV\CorePlugin->httpPut(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479: Sabre\Event\EventEmitter->emit('method PUT', Array)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php - line 80: Sabre\DAV\Server->exec()
/var/www/nextcloud/remote.php - line 164: require_once('/var/www/nextcl...')
{main}



Error | PHP | include(): Failed opening '/var/www/nextcloud/apps/files_external/3rdparty/composer/../icewind/smb/src/Exception/InvalidArgumentException.php' for inclusion (include_path='/var/www/nextcloud/3rdparty/pear/console_getopt:/var/www/nextcloud/3rdparty/pear/pear_exception:/var/www/nextcloud/3rdparty/pear/pear-core-minimal/src:/var/www/nextcloud/3rdparty/pear/archive_tar:/var/www/nextcloud/apps') at /var/www/nextcloud/lib/composer/composer/ClassLoader.php#443 | 2018-03-27T09:58:34+0100
-- | -- | -- | --
Error | PHP | include(/var/www/nextcloud/apps/files_external/3rdparty/composer/../icewind/smb/src/Exception/InvalidArgumentException.php): failed to open stream: No such file or directory at /var/www/nextcloud/lib/composer/composer/ClassLoader.php#443 | 2018-03-27T09:58:34+0100
Error | remote | Error: Class '\Icewind\SMB\Exception\InvalidArgumentException' not found




@Orbital-Bit
Copy link

Orbital-Bit commented Mar 27, 2018

sounds like the same issue as i reported here: 8978,
and someone else reported here: 8547

@seederp2p
Copy link
Author

But no solution at this point right?

@Orbital-Bit
Copy link

and it is still an issue in 12.0.9 and 13.0.4

@MorrisJobke
Copy link
Member

Let's continue this in #8978

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants