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

Put storage cache initalization in a transaction #35754

Closed
wants to merge 1 commit into from

Conversation

tcitworld
Copy link
Member

Fixes

   "Exception":"RuntimeException",
   "Message":"Storage could neither be inserted nor be selected from the database: object::user:test",
   "Code":0,
   "Trace":[
      {
         "file":"/var/www/nc/nextcloud-25.0.1/lib/private/Files/Cache/Cache.php",
         "line":122,
         "function":"__construct",
         "class":"OC\\\\Files\\\\Cache\\\\Storage",
         "type":"->"
      },
      {
         "file":"/var/www/nc/nextcloud-25.0.1/lib/private/Files/Storage/Common.php",
         "line":344,
         "function":"__construct",
         "class":"OC\\\\Files\\\\Cache\\\\Cache",
         "type":"->"
      },
      {
         "file":"/var/www/nc/nextcloud-25.0.1/lib/private/Files/Storage/Wrapper/Wrapper.php",
         "line":395,
         "function":"getCache",
         "class":"OC\\\\Files\\\\Storage\\\\Common",
         "type":"->"
      },
      {
         "file":"/var/www/nc/nextcloud-25.0.1/lib/private/Files/Storage/Wrapper/Wrapper.php",
         "line":395,
         "function":"getCache",
         "class":"OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper",
         "type":"->"
      },
      {
         "file":"/var/www/nc/nextcloud-25.0.1/lib/private/Files/Storage/Wrapper/Wrapper.php",
         "line":395,
         "function":"getCache",
         "class":"OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper",
         "type":"->"
      },
      {
         "file":"/var/www/nc/nextcloud-25.0.1/apps/terms_of_service/lib/Filesystem/StorageWrapper.php",
         "line":99,
         "function":"getCache",
         "class":"OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper",
         "type":"->"
      },
      {
         "file":"/var/www/nc/nextcloud-25.0.1/lib/private/Files/Mount/MountPoint.php",
         "line":295,
         "function":"getCache",
         "class":"OCA\\\\TermsOfService\\\\Filesystem\\\\StorageWrapper",
         "type":"->"
      },
      {
         "file":"/var/www/nc/nextcloud-25.0.1/lib/private/Files/SetupManager.php",
         "line":256,
         "function":"getStorageRootId",
         "class":"OC\\\\Files\\\\Mount\\\\MountPoint",
         "type":"->"
      },
      {
         "file":"/var/www/nc/nextcloud-25.0.1/lib/private/Files/SetupManager.php",
         "line":311,
         "function":"oneTimeUserSetup",
         "class":"OC\\\\Files\\\\SetupManager",
         "type":"->"
      },
      {
         "file":"/var/www/nc/nextcloud-25.0.1/lib/private/Files/SetupManager.php",
         "line":226,
         "function":"setupForUserWith",
         "class":"OC\\\\Files\\\\SetupManager",
         "type":"->"
      },
      {
         "file":"/var/www/nc/nextcloud-25.0.1/lib/private/legacy/OC_Util.php",
         "line":111,
         "function":"setupForUser",
         "class":"OC\\\\Files\\\\SetupManager",
         "type":"->"
      },
      {
         "file":"/var/www/nc/nextcloud-25.0.1/apps/provisioning_api/lib/Controller/AUserData.php",
         "line":247,
         "function":"setupFS",
         "class":"OC_Util",
         "type":"::"
      },
      {
         "file":"/var/www/nc/nextcloud-25.0.1/apps/provisioning_api/lib/Controller/AUserData.php",
         "line":149,
         "function":"fillStorageInfo",
         "class":"OCA\\\\Provisioning_API\\\\Controller\\\\AUserData",
         "type":"->"
      },
      {
         "file":"/var/www/nc/nextcloud-25.0.1/apps/provisioning_api/lib/Controller/UsersController.php",
         "line":528,
         "function":"getUserData",
         "class":"OCA\\\\Provisioning_API\\\\Controller\\\\AUserData",
         "type":"->"
      },
      {
         "file":"/var/www/nc/nextcloud-25.0.1/lib/private/AppFramework/Http/Dispatcher.php",
         "line":225,
         "function":"getUser",
         "class":"OCA\\\\Provisioning_API\\\\Controller\\\\UsersController",
         "type":"->"
      },
      {
         "file":"/var/www/nc/nextcloud-25.0.1/lib/private/AppFramework/Http/Dispatcher.php",
         "line":133,
         "function":"executeController",
         "class":"OC\\\\AppFramework\\\\Http\\\\Dispatcher",
         "type":"->"
      },
      {
         "file":"/var/www/nc/nextcloud-25.0.1/lib/private/AppFramework/App.php",
         "line":172,
         "function":"dispatch",
         "class":"OC\\\\AppFramework\\\\Http\\\\Dispatcher",
         "type":"->"
      },
      {
         "file":"/var/www/nc/nextcloud-25.0.1/lib/private/Route/Router.php",
         "line":298,
         "function":"main",
         "class":"OC\\\\AppFramework\\\\App",
         "type":"::"
      },
      {
         "file":"/var/www/nc/nextcloud-25.0.1/ocs/v1.php",
         "line":63,
         "function":"match",
         "class":"OC\\\\Route\\\\Router",
         "type":"->"
      },
      {
         "file":"/var/www/nc/nextcloud-25.0.1/ocs/v2.php",
         "line":23,
         "args":[
            "/var/www/nc/nextcloud-25.0.1/ocs/v1.php"
         ],
         "function":"require_once"
      }
   ],
   "File":"/var/www/nc/nextcloud-25.0.1/lib/private/Files/Cache/Storage.php",
   "Line":87
}

TODO

  • ...

Checklist

@tcitworld tcitworld added this to the Nextcloud 26 milestone Dec 13, 2022
@tcitworld tcitworld requested a review from a team December 13, 2022 13:55
@tcitworld tcitworld requested review from ArtificialOwl, skjnldsv and CarlSchwan and removed request for a team December 13, 2022 13:55
@PVince81 PVince81 requested a review from icewind1991 December 16, 2022 15:20
@blizzz blizzz mentioned this pull request Feb 1, 2023
@tcitworld tcitworld force-pushed the storage-cache-init-in-transaction branch from 1c595d8 to 83ea017 Compare February 13, 2023 16:12
@skjnldsv skjnldsv mentioned this pull request Feb 23, 2023
@blizzz blizzz mentioned this pull request Mar 7, 2023
@blizzz blizzz modified the milestones: Nextcloud 26, Nextcloud 27 Mar 9, 2023
@tcitworld tcitworld force-pushed the storage-cache-init-in-transaction branch from 83ea017 to f18b6e0 Compare March 10, 2023 15:59
@icewind1991 icewind1991 requested a review from a team April 21, 2023 11:29
This was referenced May 3, 2023
@blizzz blizzz mentioned this pull request May 17, 2023
@blizzz blizzz removed this from the Nextcloud 27 milestone May 23, 2023
@blizzz blizzz added this to the Nextcloud 28 milestone May 23, 2023
@skjnldsv skjnldsv mentioned this pull request Nov 1, 2023
This was referenced Nov 6, 2023
This was referenced Nov 14, 2023
@blizzz blizzz modified the milestones: Nextcloud 28, Nextcloud 29 Nov 23, 2023
This was referenced Mar 12, 2024
This was referenced Mar 20, 2024
@skjnldsv skjnldsv mentioned this pull request Mar 28, 2024
81 tasks
@skjnldsv skjnldsv modified the milestones: Nextcloud 29, Nextcloud 30 Mar 28, 2024
This was referenced Jul 30, 2024
This was referenced Aug 5, 2024
@skjnldsv skjnldsv mentioned this pull request Aug 13, 2024
@skjnldsv skjnldsv closed this Aug 14, 2024
@skjnldsv skjnldsv removed this from the Nextcloud 30 milestone Aug 14, 2024
@skjnldsv skjnldsv deleted the storage-cache-init-in-transaction branch August 30, 2024 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants