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

Getting error in in Moodle 4.2 Azure blob while push objects to storage Argument #1 ($object_or_class) must be of type object|string, null given #606

Closed
lmsofindia opened this issue Apr 2, 2024 · 3 comments

Comments

@lmsofindia
Copy link

Here is my snippet. Moodledata is around 17GB. Initial 2GB is moved to azure within few hours.
But since then it is more than 4 days, remaining files did not move to blob.

Moodle version 4.2
Php 8.0
Mysql 8.1

When I check the object status report , sometime it shows
Could you please help or share some lights how to fix this please.

Object status 2024-04-02 08-13-53

where as you can see the below one

image

So it is confusing why files again moved back to filedir ..
Thanks again for all your help!

===============
Execute scheduled task: Object file system upload task (tool_objectfs\task\push_objects_to_storage)
... started 00:21:59. Current memory use 34.8 MB.
Debugging increased temporarily due to faildelay of 240
... used 31 dbqueries
... used 12.758906841278 seconds
Scheduled task failed: Object file system upload task (tool_objectfs\task\push_objects_to_storage),method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given
Backtrace:

  • line 151 of /local/azure_storage/vendor/guzzlehttp/promises/src/Promise.php: call to method_exists()
  • line 113 of /local/azure_storage/vendor/guzzlehttp/promises/src/Promise.php: call to GuzzleHttp\Promise\Promise->settle()
  • line 223 of /local/azure_storage/vendor/guzzlehttp/promises/src/EachPromise.php: call to GuzzleHttp\Promise\Promise->resolve()
  • line 213 of /local/azure_storage/vendor/guzzlehttp/promises/src/EachPromise.php: call to GuzzleHttp\Promise\EachPromise->checkIfFinished()
  • line 161 of /local/azure_storage/vendor/guzzlehttp/promises/src/EachPromise.php: call to GuzzleHttp\Promise\EachPromise->step()
  • line 203 of /local/azure_storage/vendor/guzzlehttp/promises/src/Promise.php: call to GuzzleHttp\Promise\EachPromise->GuzzleHttp\Promise{closure}()
  • line 156 of /local/azure_storage/vendor/guzzlehttp/promises/src/Promise.php: call to GuzzleHttp\Promise\Promise::callHandler()
  • line 47 of /local/azure_storage/vendor/guzzlehttp/promises/src/TaskQueue.php: call to GuzzleHttp\Promise\Promise::GuzzleHttp\Promise{closure}()
  • line 96 of /local/azure_storage/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php: call to GuzzleHttp\Promise\TaskQueue->run()
  • line 123 of /local/azure_storage/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php: call to GuzzleHttp\Handler\CurlMultiHandler->tick()
  • line 246 of /local/azure_storage/vendor/guzzlehttp/promises/src/Promise.php: call to GuzzleHttp\Handler\CurlMultiHandler->execute()
  • line 223 of /local/azure_storage/vendor/guzzlehttp/promises/src/Promise.php: call to GuzzleHttp\Promise\Promise->invokeWaitFn()
  • line 267 of /local/azure_storage/vendor/guzzlehttp/promises/src/Promise.php: call to GuzzleHttp\Promise\Promise->waitIfPending()
  • line 225 of /local/azure_storage/vendor/guzzlehttp/promises/src/Promise.php: call to GuzzleHttp\Promise\Promise->invokeWaitList()
  • line 62 of /local/azure_storage/vendor/guzzlehttp/promises/src/Promise.php: call to GuzzleHttp\Promise\Promise->waitIfPending()
  • line 101 of /local/azure_storage/vendor/guzzlehttp/promises/src/EachPromise.php: call to GuzzleHttp\Promise\Promise->wait()
  • line 246 of /local/azure_storage/vendor/guzzlehttp/promises/src/Promise.php: call to GuzzleHttp\Promise\EachPromise->GuzzleHttp\Promise{closure}()
  • line 223 of /local/azure_storage/vendor/guzzlehttp/promises/src/Promise.php: call to GuzzleHttp\Promise\Promise->invokeWaitFn()
  • line 267 of /local/azure_storage/vendor/guzzlehttp/promises/src/Promise.php: call to GuzzleHttp\Promise\Promise->waitIfPending()
  • line 225 of /local/azure_storage/vendor/guzzlehttp/promises/src/Promise.php: call to GuzzleHttp\Promise\Promise->invokeWaitList()
  • line 62 of /local/azure_storage/vendor/guzzlehttp/promises/src/Promise.php: call to GuzzleHttp\Promise\Promise->waitIfPending()
  • line 1554 of /local/azure_storage/vendor/microsoft/azure-storage/src/Blob/BlobRestProxy.php: call to GuzzleHttp\Promise\Promise->wait()
  • line 141 of /admin/tool/objectfs/classes/local/store/azure/stream_wrapper.php: call to MicrosoftAzure\Storage\Blob\BlobRestProxy->createBlockBlob()
  • line 429 of /admin/tool/objectfs/classes/local/store/azure/stream_wrapper.php: call to tool_objectfs\local\store\azure\stream_wrapper->tool_objectfs\local\store\azure{closure}()
  • line 153 of /admin/tool/objectfs/classes/local/store/azure/stream_wrapper.php: call to tool_objectfs\local\store\azure\stream_wrapper->boolCall()
  • line ? of unknownfile: call to tool_objectfs\local\store\azure\stream_wrapper->stream_flush()
  • line 714 of /admin/tool/objectfs/classes/local/store/object_file_system.php: call to copy()
  • line 264 of /admin/tool/objectfs/classes/local/store/object_file_system.php: call to tool_objectfs\local\store\object_file_system->copy_from_local_to_external()
  • line 68 of /admin/tool/objectfs/classes/local/object_manipulator/pusher.php: call to tool_objectfs\local\store\object_file_system->copy_object_from_local_to_external_by_hash()
  • line 108 of /admin/tool/objectfs/classes/local/object_manipulator/manipulator.php: call to tool_objectfs\local\object_manipulator\pusher->manipulate_object()
  • line 82 of /admin/tool/objectfs/classes/local/object_manipulator/manipulator_builder.php: call to tool_objectfs\local\object_manipulator\manipulator->execute()
  • line 66 of /admin/tool/objectfs/classes/task/task.php: call to tool_objectfs\local\object_manipulator\manipulator_builder->execute()
  • line 405 of /lib/classes/cron.php: call to tool_objectfs\task\task->execute()
  • line 208 of /lib/classes/cron.php: call to core\cron::run_inner_scheduled_task()
  • line 125 of /lib/classes/cron.php: call to core\cron::run_scheduled_tasks()
  • line 186 of /admin/cli/cron.php: call to core\cron::run_main_process()
@lmsofindia
Copy link
Author

hi - any help please.

@lmsofindia
Copy link
Author

just fyi... i have used this one as a fix -
guzzle/guzzle#2953

this was problem because of php8.1

@lmsofindia
Copy link
Author

closing

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

1 participant