TypeError in LibrarySynchroniser.php

msch1979msch1979 Member

I just wanted to sync 2 exististing folders in my OneDrive with about 10 subfolders to Astiga.

There seems to be an error in the synchroniser-service.

After using the button [Start synchronisation] I get this message at https://play.asti.ga/update-library.

(At august 1st it still worked with this 2 folders.)

Slim Application Error

The application could not run because of the following error:

Details

Type: TypeError

Message: fgets(): Argument #1 ($stream) must be of type resource, bool given

File: /var/www/astiga/play/app/LibrarySynchroniser.php

Line: 154

Trace

#0 /var/www/astiga/play/app/LibrarySynchroniser.php(154): fgets()
#1 /var/www/astiga/play/app/Controllers/SyncController.php(59): Astiga\LibrarySynchroniser->start()
#2 [internal function]: Astiga\Controllers\SyncController->updateLibrary()
#3 /var/www/astiga/play/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(40): call_user_func()
#4 /var/www/astiga/play/vendor/slim/slim/Slim/Route.php(281): Slim\Handlers\Strategies\RequestResponse->__invoke()
#5 /var/www/astiga/play/app/Middlewares/AuthorisationMiddleware.php(41): Slim\Route->__invoke()
#6 [internal function]: Astiga\Middlewares\AuthorisationMiddleware->__invoke()
#7 /var/www/astiga/play/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()
#8 [internal function]: Slim\DeferredCallable->__invoke()
#9 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()
#10 /var/www/astiga/play/app/Middlewares/AuthenticationMiddleware.php(25): Slim\Route->Slim\{closure}()
#11 [internal function]: Astiga\Middlewares\AuthenticationMiddleware->__invoke()
#12 /var/www/astiga/play/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()
#13 [internal function]: Slim\DeferredCallable->__invoke()
#14 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()
#15 /var/www/astiga/play/app/Middlewares/CacheControlMiddleware.php(21): Slim\Route->Slim\{closure}()
#16 [internal function]: Astiga\Middlewares\CacheControlMiddleware->__invoke()
#17 /var/www/astiga/play/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()
#18 [internal function]: Slim\DeferredCallable->__invoke()
#19 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()
#20 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->Slim\{closure}()
#21 /var/www/astiga/play/vendor/slim/slim/Slim/Route.php(268): Slim\Route->callMiddlewareStack()
#22 /var/www/astiga/play/vendor/slim/slim/Slim/App.php(503): Slim\Route->run()
#23 /var/www/astiga/play/app/Middlewares/CacheControlMiddleware.php(21): Slim\App->__invoke()
#24 [internal function]: Astiga\Middlewares\CacheControlMiddleware->__invoke()
#25 /var/www/astiga/play/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()
#26 [internal function]: Slim\DeferredCallable->__invoke()
#27 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()
#28 /var/www/astiga/play/app/Middlewares/PartialPageMiddleware.php(14): Slim\App->Slim\{closure}()
#29 [internal function]: Astiga\Middlewares\PartialPageMiddleware->__invoke()
#30 /var/www/astiga/play/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()
#31 [internal function]: Slim\DeferredCallable->__invoke()
#32 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()
#33 /var/www/astiga/play/index.php(155): Slim\App->Slim\{closure}()
#34 [internal function]: Closure->{closure}()
#35 /var/www/astiga/play/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()
#36 [internal function]: Slim\DeferredCallable->__invoke()
#37 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()
#38 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim\{closure}()
#39 /var/www/astiga/play/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack()
#40 /var/www/astiga/play/vendor/slim/slim/Slim/App.php(297): Slim\App->process()
#41 /var/www/astiga/play/index.php(163): Slim\App->run()
#42 {main}


Comments

  • gravelldgravelld Administrator

    Can you try again? Same issue as the other day, we're struggling with disk space at the moment.

  • Seems to be fixed for the moment. Thanks.

  • Once again a type error (maybe the same reason):

    Slim Application Error

    The application could not run because of the following error:

    Details

    Type: TypeError

    Message: fgets(): Argument #1 ($stream) must be of type resource, bool given

    File: /var/www/astiga/play/app/LibrarySynchroniser.php

    Line: 155

    Trace

    #0 /var/www/astiga/play/app/LibrarySynchroniser.php(155): fgets()
    #1 /var/www/astiga/play/app/Controllers/SyncController.php(59): Astiga\LibrarySynchroniser->start()
    #2 [internal function]: Astiga\Controllers\SyncController->updateLibrary()
    #3 /var/www/astiga/play/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(40): call_user_func()
    #4 /var/www/astiga/play/vendor/slim/slim/Slim/Route.php(281): Slim\Handlers\Strategies\RequestResponse->__invoke()
    #5 /var/www/astiga/play/app/Middlewares/AuthorisationMiddleware.php(41): Slim\Route->__invoke()
    #6 [internal function]: Astiga\Middlewares\AuthorisationMiddleware->__invoke()
    #7 /var/www/astiga/play/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()
    #8 [internal function]: Slim\DeferredCallable->__invoke()
    #9 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()
    #10 /var/www/astiga/play/app/Middlewares/AuthenticationMiddleware.php(25): Slim\Route->Slim\{closure}()
    #11 [internal function]: Astiga\Middlewares\AuthenticationMiddleware->__invoke()
    #12 /var/www/astiga/play/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()
    #13 [internal function]: Slim\DeferredCallable->__invoke()
    #14 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()
    #15 /var/www/astiga/play/app/Middlewares/CacheControlMiddleware.php(21): Slim\Route->Slim\{closure}()
    #16 [internal function]: Astiga\Middlewares\CacheControlMiddleware->__invoke()
    #17 /var/www/astiga/play/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()
    #18 [internal function]: Slim\DeferredCallable->__invoke()
    #19 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()
    #20 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->Slim\{closure}()
    #21 /var/www/astiga/play/vendor/slim/slim/Slim/Route.php(268): Slim\Route->callMiddlewareStack()
    #22 /var/www/astiga/play/vendor/slim/slim/Slim/App.php(503): Slim\Route->run()
    #23 /var/www/astiga/play/app/Middlewares/CacheControlMiddleware.php(21): Slim\App->__invoke()
    #24 [internal function]: Astiga\Middlewares\CacheControlMiddleware->__invoke()
    #25 /var/www/astiga/play/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()
    #26 [internal function]: Slim\DeferredCallable->__invoke()
    #27 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()
    #28 /var/www/astiga/play/app/Middlewares/PartialPageMiddleware.php(14): Slim\App->Slim\{closure}()
    #29 [internal function]: Astiga\Middlewares\PartialPageMiddleware->__invoke()
    #30 /var/www/astiga/play/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()
    #31 [internal function]: Slim\DeferredCallable->__invoke()
    #32 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()
    #33 /var/www/astiga/play/index.php(155): Slim\App->Slim\{closure}()
    #34 [internal function]: Closure->{closure}()
    #35 /var/www/astiga/play/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()
    #36 [internal function]: Slim\DeferredCallable->__invoke()
    #37 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()
    #38 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim\{closure}()
    #39 /var/www/astiga/play/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack()
    #40 /var/www/astiga/play/vendor/slim/slim/Slim/App.php(297): Slim\App->process()
    #41 /var/www/astiga/play/index.php(163): Slim\App->run()
    #42 {main}
    


  • gravelldgravelld Administrator

    Should work again now... I've deleted your record of your last sync which should allow the sync to proceed.

    This should be fixed in development, we're rolling it out next week.

  • Thanks for the information and help.

    It started as it should, now running.

Sign In or Register to comment.