Unwritable runtime directory results in error loop detected #221

Closed
opened 2021-02-28 23:46:52 +00:00 by jamie · 5 comments
jamie commented 2021-02-28 23:46:52 +00:00 (Migrated from git.hazaar.io)

Got this:

FATAL: Error loop detected! Last error was: Your application runtime directory exists, but is not writable. Please run the following:
cd /opt/abe-web/ABE/application
chmod 0775 .runtime
chgrp  .runtime
on line 365 in file /opt/abe-web/ABE/vendor/hazaarlabs/hazaar-mvc/src/Application.php Trace:
Array
(
    [0] => Array
        (
            [file] => /opt/abe-web/ABE/vendor/hazaarlabs/hazaar-mvc/src/Application.php
            [line] => 510
            [function] => runtimePath
            [class] => Hazaar\Application
            [type] => ->
        )

    [1] => Array
        (
            [file] => /opt/abe-web/ABE/public/index.php
            [line] => 10
            [function] => bootstrap
            [class] => Hazaar\Application
            [type] => ->
        )

)
Got this: ``` FATAL: Error loop detected! Last error was: Your application runtime directory exists, but is not writable. Please run the following: cd /opt/abe-web/ABE/application chmod 0775 .runtime chgrp .runtime on line 365 in file /opt/abe-web/ABE/vendor/hazaarlabs/hazaar-mvc/src/Application.php Trace: Array ( [0] => Array ( [file] => /opt/abe-web/ABE/vendor/hazaarlabs/hazaar-mvc/src/Application.php [line] => 510 [function] => runtimePath [class] => Hazaar\Application [type] => -> ) [1] => Array ( [file] => /opt/abe-web/ABE/public/index.php [line] => 10 [function] => bootstrap [class] => Hazaar\Application [type] => -> ) ) ```
jamie commented 2021-03-11 08:32:40 +00:00 (Migrated from git.hazaar.io)

Just tried to do this in my example app and go the correct result:
image

This must have something to do with where the runtime dir write is being initiated from.

Just tried to do this in my example app and go the correct result: ![image](/uploads/35abd785206b7610146a5d3529ea7eeb/image.png) This must have something to do with where the runtime dir write is being initiated from.
jamie commented 2021-03-11 10:37:19 +00:00 (Migrated from git.hazaar.io)

Ok, so turns out it's the CDNJS view helper. It throws an exception when the runtime dir is not accessible, which if an advanced layout and custom ErrorController are used and that error controller uses the CDNJS helper, this causes an error loop.

I don't think I should fix this. Maybe the error loop just needs to be a bit prettier is all.

Ok, so turns out it's the CDNJS view helper. It throws an exception when the runtime dir is not accessible, which if an advanced layout and custom ErrorController are used and that error controller uses the CDNJS helper, this causes an error loop. I don't think I should fix this. Maybe the error loop just needs to be a bit prettier is all.
jamie commented 2021-03-11 10:37:24 +00:00 (Migrated from git.hazaar.io)

mentioned in merge request !118

mentioned in merge request !118
jamie commented 2021-03-11 10:37:24 +00:00 (Migrated from git.hazaar.io)

created merge request !118 to address this issue

created merge request !118 to address this issue
jamie commented 2021-03-11 11:02:46 +00:00 (Migrated from git.hazaar.io)

mentioned in commit 5b4c6e47211fc20e4b900ed66d02172083812ddf

mentioned in commit 5b4c6e47211fc20e4b900ed66d02172083812ddf
jamie (Migrated from git.hazaar.io) closed this issue 2021-03-11 11:02:46 +00:00
jamie self-assigned this 2025-09-04 01:15:28 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hazaar/framework#221
No description provided.