file transfer ownership errors

Ask all your questions regarding OC 9.0 Please read the Support Forum Rules
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
jcal710
Newbie
Posts: 3
Joined: Wed Jul 20, 2016 2:54 am
ownCloud version: 9.0.2
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5

file transfer ownership errors

Postby jcal710 » Wed Jul 20, 2016 2:10 pm

I am testing the occ files:transfer-ownership command as I need to transfer some files from old users to new users. However, I get 3 errors. These errors show whether or not the user has smb/cifs external storage mapped or not.

[OCP\Files\StorageNotAvailableException]
No session credentials saved

[OCP\Files\StorageNotAvailableException]
No session credentials saved

[OCA\Files_External\Lib\InsufficientDataForMeaningfulAnswerException]
No session credentials saved

Steps to reproduce
1. Have smb/cifs external storage mapped
2. run sudo -u www-data files:transfer-ownership user1 user2

Expected behaviour
files should transfer

Actual behaviour
I get the above errors

Workaround
If I remove all external storage, the ownership transfer appears to work. This is doable in Dev, but not in Production.

Server configuration
Operating system: Ubuntu 14.04
Web server: Apache
Database: Mysql
PHP version: 5.5.9
ownCloud version (see ownCloud admin page): 9.0.4
Updated from an older ownCloud or fresh install: upgrade
ownCloud log (data/owncloud.log):
{"reqId":"aiYGogRaF3xQ9UXZW5Zh","remoteAddr":"192.168.25.37","app":"files_extern
al","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\StorageNotAvailableEx
ception\",\"Message\":\"Unknown error (tree connect failed: NT_STATUS_ACCESS_DEN
IED)\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_ext
ernal\\\/lib\\\/smb.php(157): OC\\\\Files\\\\Storage\\\\SMB->getFileInfo('')\\n#
1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/common.php
(434): OC\\\\Files\\\\Storage\\\\SMB->stat('')\\n#2 \\\/var\\\/www\\\/owncloud\\
\/apps\\\/files_external\\\/lib\\\/smb.php(391): OC\\\\Files\\\\Storage\\\\Commo
n->test()\\n#3 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/co
nfig.php(231): OC\\\\Files\\\\Storage\\\\SMB->test(false, true)\\n#4 \\\/var\\\/
www\\\/owncloud\\\/apps\\\/files_external\\\/controller\\\/storagescontroller.ph
p(258): OC_Mount_Config::getBackendStatus('\\\\OC\\\\Files\\\\Stora...', Array,
false, true)\\n#5 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/contro
ller\\\/globalstoragescontroller.php(181): OCA\\\\Files_External\\\\Controller\\
\\StoragesController->updateStorageStatus(Object(OCA\\\\Files_external\\\\Lib\\\
\StorageConfig), true)\\n#6 [internal function]: OCA\\\\Files_External\\\\Contro
ller\\\\GlobalStoragesController->update(1, 'MSP Testing Fil...', '\\\\OC\\\\Fil
es\\\\Stora...', 'password::sessi...', Array, Array, Array, Array, 90, true)\\n#
7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispat
cher.php(159): call_user_func_array(Array, Array)\\n#8 \\\/var\\\/www\\\/ownclou
d\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(89): OC\\\\AppFram
ework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files_External\\\\C
ontroller\\\\GlobalStoragesController), 'update')\\n#9 \\\/var\\\/www\\\/ownclou
d\\\/lib\\\/private\\\/appframework\\\/app.php(110): OC\\\\AppFramework\\\\Http\
\\\Dispatcher->dispatch(Object(OCA\\\\Files_External\\\\Controller\\\\GlobalStor
agesController), 'update')\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\
/appframework\\\/routing\\\/routeactionhandler.php(45): OC\\\\AppFramework\\\\Ap
p::main('GlobalStoragesC...', 'update', Object(OC\\\\AppFramework\\\\DependencyI
njection\\\\DIContainer), Array)\\n#11 [internal function]: OC\\\\AppFramework\\
\\routing\\\\RouteActionHandler->__invoke(Array)\\n#12 \\\/var\\\/www\\\/ownclou
d\\\/lib\\\/private\\\/route\\\/router.php(276): call_user_func(Object(OC\\\\App
Framework\\\\routing\\\\RouteActionHandler), Array)\\n#13 \\\/var\\\/www\\\/ownc
loud\\\/lib\\\/base.php(882): OC\\\\Route\\\\Router->match('\\\/apps\\\/files_ex
t...')\\n#14 \\\/var\\\/www\\\/owncloud\\\/index.php(39): OC::handleRequest()\\n
#15 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/
lib\\\/smb.php\",\"Line\":119}","level":3,"time":"2016-07-20T11:40:53+00:00","me
thod":"PUT","url":"\/apps\/files_external\/globalstorages\/1","user":"user2"}
{"reqId":"hXe\/Tn1stAk4HGvCJdP1","remoteAddr":"192.168.25.37","app":"files_exter
nal","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\StorageNotAvailableE
xception\",\"Message\":\"Unknown error (tree connect failed: NT_STATUS_ACCESS_DE
NIED)\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_ex
ternal\\\/lib\\\/smb.php(157): OC\\\\Files\\\\Storage\\\\SMB->getFileInfo('')\\n
#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/common.ph
p(434): OC\\\\Files\\\\Storage\\\\SMB->stat('')\\n#2 \\\/var\\\/www\\\/owncloud\
\\/apps\\\/files_external\\\/lib\\\/smb.php(391): OC\\\\Files\\\\Storage\\\\Comm
on->test()\\n#3 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/c
onfig.php(231): OC\\\\Files\\\\Storage\\\\SMB->test(false, true)\\n#4 \\\/var\\\
/www\\\/owncloud\\\/apps\\\/files_external\\\/controller\\\/storagescontroller.p
hp(258): OC_Mount_Config::getBackendStatus('\\\\OC\\\\Files\\\\Stora...', Array,
false, true)\\n#5 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/contr
oller\\\/globalstoragescontroller.php(181): OCA\\\\Files_External\\\\Controller\
\\\StoragesController->updateStorageStatus(Object(OCA\\\\Files_external\\\\Lib\\
\\StorageConfig), true)\\n#6 [internal function]: OCA\\\\Files_External\\\\Contr
oller\\\\GlobalStoragesController->update(2, 'MSP Files', '\\\\OC\\\\Files\\\\St
ora...', 'password::sessi...', Array, Array, Array, Array, 90, true)\\n#7 \\\/va
r\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php
(159): call_user_func_array(Array, Array)\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib
\\\/private\\\/appframework\\\/http\\\/dispatcher.php(89): OC\\\\AppFramework\\\
\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files_External\\\\Controlle
r\\\\GlobalStoragesController), 'update')\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib
\\\/private\\\/appframework\\\/app.php(110): OC\\\\AppFramework\\\\Http\\\\Dispa
tcher->dispatch(Object(OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesCont
roller), 'update')\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appfram
ework\\\/routing\\\/routeactionhandler.php(45): OC\\\\AppFramework\\\\App::main(
'GlobalStoragesC...', 'update', Object(OC\\\\AppFramework\\\\DependencyInjection
\\\\DIContainer), Array)\\n#11 [internal function]: OC\\\\AppFramework\\\\routin
g\\\\RouteActionHandler->__invoke(Array)\\n#12 \\\/var\\\/www\\\/owncloud\\\/lib
\\\/private\\\/route\\\/router.php(276): call_user_func(Object(OC\\\\AppFramewor
k\\\\routing\\\\RouteActionHandler), Array)\\n#13 \\\/var\\\/www\\\/owncloud\\\/
lib\\\/base.php(882): OC\\\\Route\\\\Router->match('\\\/apps\\\/files_ext...')\\
n#14 \\\/var\\\/www\\\/owncloud\\\/index.php(39): OC::handleRequest()\\n#15 {mai
n}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/s
mb.php\",\"Line\":119}","level":3,"time":"2016-07-20T11:40:54+00:00","method":"P
UT","url":"\/apps\/files_external\/globalstorages\/2","user":"user2"}


Special configuration (external storage, external authentication, reverse proxy, server-side-encryption):
smb\cifs external storage, ldap authentication
Last edited by jcal710 on Wed Jul 20, 2016 2:23 pm, edited 1 time in total.

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: file transfer ownership errors

Postby RealRancor » Wed Jul 20, 2016 2:21 pm

Hi,

could be possible that transfering the ownership is not possible because oC can't know the password of the user you want to transfer this.

Overall please create a new bugreport to clarify this with the developers of oC:

https://github.com/owncloud/core/issues

They might be able to make the message a bit more clearer.
*gone*


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Server 9.0”

Who is online

Users browsing this forum: No registered users and 1 guest