Skip to content

"Failed to lock the file" error after installing Shaarli #1650

@uraza

Description

@uraza

Hi.

I am new to Shaarli and I just set it up on a shared hosting.

After copying the files on my server, I was able to access it and all requirements seemed to be fulfilled:

image

However, after clicking the "Install" button, I ended up with a bunch of errors like this:

An unexpected error happened, and the error template could not be displayed.

Failed to lock the file.
/srv/data/web/vhosts/<my_domain>/htdocs/vendor/malkusch/lock/classes/mutex/FlockMutex.php141
#0 /srv/data/web/vhosts/<my_domain>/htdocs/vendor/malkusch/lock/classes/mutex/FlockMutex.php(122): malkusch\lock\mutex\FlockMutex->acquireNonBlockingLock()
#1 /srv/data/web/vhosts/<my_domain>/htdocs/vendor/malkusch/lock/classes/util/Loop.php(90): malkusch\lock\mutex\FlockMutex->malkusch\lock\mutex{closure}()
#2 /srv/data/web/vhosts/<my_domain>/htdocs/vendor/malkusch/lock/classes/mutex/FlockMutex.php(125): malkusch\lock\util\Loop->execute()
#3 /srv/data/web/vhosts/<my_domain>/htdocs/vendor/malkusch/lock/classes/mutex/FlockMutex.php(160): malkusch\lock\mutex\FlockMutex->lockBusy()
#4 /srv/data/web/vhosts/<my_domain>/htdocs/vendor/malkusch/lock/classes/mutex/LockMutex.php(37): malkusch\lock\mutex\FlockMutex->lock()
#5 /srv/data/web/vhosts/<my_domain>/htdocs/application/bookmark/BookmarkIO.php(127): malkusch\lock\mutex\LockMutex->synchronized()
#6 /srv/data/web/vhosts/<my_domain>/htdocs/application/bookmark/BookmarkFileService.php(299): Shaarli\Bookmark\BookmarkIO->write()
#7 /srv/data/web/vhosts/<my_domain>/htdocs/application/bookmark/BookmarkFileService.php(397): Shaarli\Bookmark\BookmarkFileService->save()
#8 /srv/data/web/vhosts/<my_domain>/htdocs/application/bookmark/BookmarkFileService.php(78): Shaarli\Bookmark\BookmarkFileService->initialize()
#9 /srv/data/web/vhosts/<my_domain>/htdocs/application/container/ContainerBuilder.php(97): Shaarli\Bookmark\BookmarkFileService->__construct()
#10 /srv/data/web/vhosts/<my_domain>/htdocs/vendor/pimple/pimple/src/Pimple/Container.php(118): Shaarli\Container\ContainerBuilder->Shaarli\Container{closure}()
#11 /srv/data/web/vhosts/<my_domain>/htdocs/vendor/slim/slim/Slim/Container.php(109): Pimple\Container->offsetGet()
#12 /srv/data/web/vhosts/<my_domain>/htdocs/vendor/slim/slim/Slim/Container.php(164): Slim\Container->get()
#13 /srv/data/web/vhosts/<my_domain>/htdocs/application/container/ContainerBuilder.php(110): Slim\Container->__get()
#14 /srv/data/web/vhosts/<my_domain>/htdocs/vendor/pimple/pimple/src/Pimple/Container.php(118): Shaarli\Container\ContainerBuilder->Shaarli\Container{closure}()
#15 /srv/data/web/vhosts/<my_domain>/htdocs/vendor/slim/slim/Slim/Container.php(109): Pimple\Container->offsetGet()
#16 /srv/data/web/vhosts/<my_domain>/htdocs/vendor/slim/slim/Slim/Container.php(164): Slim\Container->get()
#17 /srv/data/web/vhosts/<my_domain>/htdocs/application/front/controller/visitor/ErrorController.php(20): Slim\Container->__get()
#18 [internal function]: Shaarli\Front\Controller\Visitor\ErrorController->__invoke()
#19 /srv/data/web/vhosts/<my_domain>/htdocs/vendor/slim/slim/Slim/App.php(701): call_user_func_array()
#20 /srv/data/web/vhosts/<my_domain>/htdocs/vendor/slim/slim/Slim/App.php(394): Slim\App->handleException()
#21 /srv/data/web/vhosts/<my_domain>/htdocs/vendor/slim/slim/Slim/App.php(297): Slim\App->process()
#22 /srv/data/web/vhosts/<my_domain>/htdocs/index.php(176): Slim\App->run()
#23 {main}

It only fails if I am logged in.
Removing the cookies and accessing the page is fine, until I try to log in again.

Any idea what could be wrong?

Thanks.

Jérémy

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugit's broken!supportinstallation and configuration issues

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions