Receiving "Jail rootPath is null" as an invalidargumentexception at logon for new AD users

Steps to reproduce

  1. Add AD user to user list
  2. Simple login - AD enabled

Expected behaviour

Log in to Owncloud

Actual behaviour

Exception error screen

Server configuration

Operating system:
Ubuntu 22.04.1
Web server:
Apache 2.4.52
Database:
8.0.33
PHP version:
8.1
ownCloud version: (see ownCloud admin page)
10.12.0.6
Updated from an older ownCloud or fresh install:
Updated
Where did you install ownCloud from:
Internet downloads from Owncloud servers, Grafana, Influxdb
Signing status (ownCloud 9.0 and above):

No errors found

The content of config/config.php:

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

List of activated apps:

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

Are you using external storage, if yes which one: local/smb/sftp/…
smb
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…

LDAP configuration (delete this part if not used)

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

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


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

Client configuration

Browser:
Chrome
Operating system:
Windows 10

Logs

Web server error log

ownCloud log (data/owncloud.log)

{"reqId":"7X8615WGjwRot2UOAtwp","level":3,"time":"2023-08-15T18:24:54+00:00","remoteAddr":"10.4.0.57","user":"86BC6193-17E5-4D63-BBCF-3274C19B93B2","app":"OC\\Files\\Filesystem","method":"POST","url":"\/index.php\/login","message":"Backends provided no user object for 2438783D-55C9-4E6B-AC12-BD894D25D30C"}
{"reqId":"7X8615WGjwRot2UOAtwp","level":3,"time":"2023-08-15T18:24:54+00:00","remoteAddr":"10.4.0.57","user":"86BC6193-17E5-4D63-BBCF-3274C19B93B2","app":"OC\\Files\\Filesystem","method":"POST","url":"\/index.php\/login","message":"Backends provided no user object for 2438783D-55C9-4E6B-AC12-BD894D25D30C"}
{"reqId":"7X8615WGjwRot2UOAtwp","level":3,"time":"2023-08-15T18:24:54+00:00","remoteAddr":"10.4.0.57","user":"86BC6193-17E5-4D63-BBCF-3274C19B93B2","app":"index","method":"POST","url":"\/index.php\/login","message":"Exception: {\"Exception\":\"InvalidArgumentException\",\"Message\":\"Jail rootPath is null\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Jail.php(473): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Jail->getSourcePath()\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_sharing\\\/lib\\\/SharedStorage.php(378): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Jail->resolvePath()\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(598): OCA\\\\Files_Sharing\\\\SharedStorage->acquireLock()\\n#3 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(2044): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->acquireLock()\\n#4 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(2147): OC\\\\Files\\\\View->lockPath()\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(1211): OC\\\\Files\\\\View->lockFile()\\n#6 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(280): OC\\\\Files\\\\View->basicOperation()\\n#7 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/public\\\/Events\\\/EventEmitterTrait.php(50): OC\\\\Files\\\\View->OC\\\\Files\\\\{closure}(*** sensitive parameters replaced ***)\\n#8 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(282): OC\\\\Files\\\\View->emittingCall()\\n#9 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Folder.php(158): OC\\\\Files\\\\View->mkdir()\\n#10 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/util.php(425): OC\\\\Files\\\\Node\\\\Folder->newFolder()\\n#11 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/util.php(403): OC_Util::copyr()\\n#12 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/User\\\/Session.php(469): OC_Util::copySkeleton()\\n#13 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/User\\\/Session.php(1036): OC\\\\User\\\\Session->prepareUserLogin()\\n#14 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/User\\\/Session.php(543): OC\\\\User\\\\Session->loginInOwnCloud()\\n#15 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/User\\\/Session.php(344): OC\\\\User\\\\Session->loginWithPassword(*** sensitive parameters replaced ***)\\n#16 \\\/var\\\/www\\\/html\\\/owncloud\\\/core\\\/Controller\\\/LoginController.php(270): OC\\\\User\\\\Session->login(*** sensitive parameters replaced ***)\\n#17 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(169): OC\\\\Core\\\\Controller\\\\LoginController->tryLogin(*** sensitive parameters replaced ***)\\n#18 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController()\\n#19 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(99): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch()\\n#20 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main()\\n#21 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(344): OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke()\\n#22 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(913): OC\\\\Route\\\\Router->match()\\n#23 \\\/var\\\/www\\\/html\\\/owncloud\\\/index.php(54): OC::handleRequest()\\n#24 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Jail.php\",\"Line\":56}"}

Browser log

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

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

Gist for log and config files:
paulgiordano/c6e38a769a23df232b1ea8b491985219

PHP 8.1 isn’t supported. You need to use PHP 7.4

1 Like

My error, I am running PHP7.4

Here’s what I found in my Web signon page, java console
image

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