Subject: Dokuwiki attempting to allocate 8000 petabytes of ram in init.php
Dokuwiki occasionally trying to allocate 8000 petabytes of ram
Randomly on going to the home page of my wiki, I get error in red,
DokuWiki Setup Error
The datadir ('pages') at ./data/pages is not found, isn't accessible or writable. You should check your config and permission settings. Or maybe you want to run the installer?
I had been using the wiki all day, and for several days, entering dozens of pages, hundreds of edits. I already went through all the webhosting to enter in password protected directories into plesk settings, and setting all the windows sharing permissions for the IIS website account. I normally get none of the security or permission warnings when doing configuration changes, installing plugins, or installing templates.
When I hit refresh, then the wiki displays ok.
Or sometimes I will get an error 500. Or sometimes just the page HTML displays, apparently missing all the CSS, javascript, etc.
I see this in my php_error.log:
[10-Jun-2019 04:32:03 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 8241982478306532552 bytes) in C:\Inetpub\vhosts\thegarnet.net\httpdocs\inc\init.php on line 605
Always that same huge number number.
After several refreshes, then it seems like everything is ok. But sometimes when editing, I noticed the editor buttons are missing, or I notice that javascript helpers for things like indenting an outline when I hit space don’t seem to be happening (probably the javascript helpers didn’t get loaded?)
Two of the other Dokuwiki that I setup, have similar error occurring in their logs:
2019/6/9 - lots of problems with 500 error during skepticon conference editing: php_error.log [09-Jun-2019 17:22:59 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 7811895298027379920 bytes) in C:\Inetpub\vhosts\domain.com\sub.domain2.com\inc\init.php on line 605
The get a different, but always the same, huge number in that sites error log.
Sometimes after a couple of refreshes, the site displays normally (other than occasionally problem with editor I described). Site seems to be mostly ok, unless I don’t interact with it for a while.
I tried boosting PHP setting memory_limit from 128M to 512M, but that didn’t seem to help this problem, as the ram allocation attempt is a few orders of magnitude higher than either of these numbers.
Plesk Onyx Virtual Windows Server 17.8.11
Windows Server 2016 Datacenter
4GB of ram (546MB available)
PHP 7.2.19
Dokuwiki - Greebo - (or I think I might have taken a 2019 development snapshot, not sure) snapshot update 51
Template: arctic
Randomly on going to the home page of my wiki, I get error in red,
DokuWiki Setup Error
The datadir ('pages') at ./data/pages is not found, isn't accessible or writable. You should check your config and permission settings. Or maybe you want to run the installer?
I had been using the wiki all day, and for several days, entering dozens of pages, hundreds of edits. I already went through all the webhosting to enter in password protected directories into plesk settings, and setting all the windows sharing permissions for the IIS website account. I normally get none of the security or permission warnings when doing configuration changes, installing plugins, or installing templates.
When I hit refresh, then the wiki displays ok.
Or sometimes I will get an error 500. Or sometimes just the page HTML displays, apparently missing all the CSS, javascript, etc.
I see this in my php_error.log:
[10-Jun-2019 04:32:03 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 8241982478306532552 bytes) in C:\Inetpub\vhosts\thegarnet.net\httpdocs\inc\init.php on line 605
Always that same huge number number.
After several refreshes, then it seems like everything is ok. But sometimes when editing, I noticed the editor buttons are missing, or I notice that javascript helpers for things like indenting an outline when I hit space don’t seem to be happening (probably the javascript helpers didn’t get loaded?)
Two of the other Dokuwiki that I setup, have similar error occurring in their logs:
2019/6/9 - lots of problems with 500 error during skepticon conference editing: php_error.log [09-Jun-2019 17:22:59 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 7811895298027379920 bytes) in C:\Inetpub\vhosts\domain.com\sub.domain2.com\inc\init.php on line 605
The get a different, but always the same, huge number in that sites error log.
Sometimes after a couple of refreshes, the site displays normally (other than occasionally problem with editor I described). Site seems to be mostly ok, unless I don’t interact with it for a while.
I tried boosting PHP setting memory_limit from 128M to 512M, but that didn’t seem to help this problem, as the ram allocation attempt is a few orders of magnitude higher than either of these numbers.
Plesk Onyx Virtual Windows Server 17.8.11
Windows Server 2016 Datacenter
4GB of ram (546MB available)
PHP 7.2.19
Dokuwiki - Greebo - (or I think I might have taken a 2019 development snapshot, not sure) snapshot update 51
Template: arctic