Nextcloud 12.0.1 stable Error: Cannot access private property

I get following error message while upgrading from 12.0.0 to 12.0.1 (stable) via web update:
"Error: Cannot access private property OCA\\Files_Trashbin\\Storage::$mountPoint at \/xxx\/apps\/files_accesscontrol\/lib\/Operation.php#85"
I checked tmp folder has full write permission.
Is there any solution?

@nickvergessen FYI

@caswi Where does the error stop? Is upgrading still possible or entirely broken?

The upgrading process works until reloading webpage. After clicking “Start update” I get the following log (all translated from German):

prepare update
set Log-Level to "debug"
activate maintenance mode
update database schema
database updated
search for updates for App “activity” in App-Store
An error occurred

here it stops

This is the simplified error log after clicking “Start update”

“app”:“core”,“method”:“GET”,“url”:"/",“message”:“Scss is disabled for /xxx/core/css/server.scss, ignoring”,“userAgent”:“any_user_agent”}
“app”:“core”,“method”:“GET”,“url”:"/",“message”:“Scss is disabled for /xxx/core/css/share.scss, ignoring”,“userAgent”:“any_user_agent”}
“app”:“updater”,“method”:“GET”,“url”:"/core/ajax/update.php?requesttoken=any_token",“message”:"\OC\Updater::setDebugLogLevel: Set log level to debug",“userAgent”:“any_user_agent”}
“app”:“updater”,“method”:“GET”,“url”:"/core/ajax/update.php?requesttoken=any_token",“message”:"\OC\Updater::maintenanceEnabled: Turned on maintenance mode",“userAgent”:“any_user_agent”}
“app”:“core”,“method”:“GET”,“url”:"/core/ajax/update.php?requesttoken=any_token",“message”:“starting upgrade from 12.0.0.29 to 12.0.1.5”,“userAgent”:“any_user_agent”}
“app”:“updater”,“method”:“GET”,“url”:"/core/ajax/update.php?requesttoken=any_token",“message”:"\OC\Repair::step: Repair step: Repair MySQL collation",“userAgent”:“any_user_agent”}
“app”:“updater”,“method”:“GET”,“url”:"/core/ajax/update.php?requesttoken=any_token",“message”:"\OC\Repair::info: Repair info: All tables already have the correct collation -> nothing to do",“userAgent”:“any_user_agent”}
“app”:“updater”,“method”:“GET”,“url”:"/core/ajax/update.php?requesttoken=any_token",“message”:"\OC\Repair::step: Repair step: Repair SQLite autoincrement",“userAgent”:“any_user_agent”}
“app”:“updater”,“method”:“GET”,“url”:"/core/ajax/update.php?requesttoken=any_token",“message”:"\OC\Repair::step: Repair step: Copy data from accounts table when migrating from ownCloud",“userAgent”:“any_user_agent”}
“app”:“updater”,“method”:“GET”,“url”:"/core/ajax/update.php?requesttoken=any_token",“message”:"\OC\Repair::step: Repair step: Drop account terms table when migrating from ownCloud",“userAgent”:“any_user_agent”}
“app”:“updater”,“method”:“GET”,“url”:"/core/ajax/update.php?requesttoken=any_token",“message”:"\OC\Updater::dbUpgradeBefore: Updating database schema",“userAgent”:“any_user_agent”}
“app”:“updater”,“method”:“GET”,“url”:"/core/ajax/update.php?requesttoken=any_token",“message”:"\OC\Updater::dbUpgrade: Updated database",“userAgent”:“any_user_agent”}
“app”:“PHP”,“method”:“GET”,“url”:"/core/ajax/update.php?requesttoken=any_token",“message”:“Cannot modify header information - headers already sent by (output started at /xxx/lib/private/legacy/eventsource.php:116) at /xxx/lib/private/User/Session.php#868”,“userAgent”:“any_user_agent”}
“app”:“PHP”,“method”:“GET”,“url”:"/core/ajax/update.php?requesttoken=any_token",“message”:“Cannot modify header information - headers already sent by (output started at /xxx/lib/private/legacy/eventsource.php:116) at /xxx/lib/private/User/Session.php#869”,“userAgent”:“any_user_agent”}
“app”:“PHP”,“method”:“GET”,“url”:"/core/ajax/update.php?requesttoken=any_token",“message”:“Cannot modify header information - headers already sent by (output started at /xxx/lib/private/legacy/eventsource.php:116) at /xxx/lib/private/User/Session.php#870”,“userAgent”:“any_user_agent”}
“app”:“PHP”,“method”:“GET”,“url”:"/core/ajax/update.php?requesttoken=any_token",“message”:“Cannot modify header information - headers already sent by (output started at /xxx/lib/private/legacy/eventsource.php:116) at /xxx/lib/private/User/Session.php#873”,“userAgent”:“any_user_agent”}
“app”:“PHP”,“method”:“GET”,“url”:"/core/ajax/update.php?requesttoken=any_token",“message”:“Cannot modify header information - headers already sent by (output started at /xxx/lib/private/legacy/eventsource.php:116) at /xxx/lib/private/User/Session.php#874”,“userAgent”:“any_user_agent”}
“app”:“PHP”,“method”:“GET”,“url”:"/core/ajax/update.php?requesttoken=any_token",“message”:“Cannot modify header information - headers already sent by (output started at /xxx/lib/private/legacy/eventsource.php:116) at /xxx/lib/private/User/Session.php#875”,“userAgent”:“any_user_agent”}
“app”:“updater”,“method”:“GET”,“url”:"/core/ajax/update.php?requesttoken=any_token",“message”:"\OC\Updater::checkAppStoreAppBefore: Checking for update of app “activity” in appstore",“userAgent”:“any_user_agent”}
“app”:“PHP”,“method”:“GET”,“url”:"/core/ajax/update.php?requesttoken=any_token",“message”:“Error: Cannot access private property OCA\Files_Trashbin\Storage::$mountPoint at /xxx/apps/files_accesscontrol/lib/Operation.php#85”,“userAgent”:“any_user_agent”}

after fall back to 12.0.0 everything workes fine again

I don’t know why this happens, but https://github.com/nextcloud/files_accesscontrol/pull/74/files should help you to update

1 Like

This solved the íssue. Thank you for quick fix :+1:

Thanks, I also ran into this error and editing the file in /apps/files_accesscontrol/lib got it working.