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

Disk usage is not within je.maxDisk or je.freeDisk limits and write operations are prohibited #340

Open
tchnlgst opened this issue Jul 16, 2020 · 4 comments

Comments

@tchnlgst
Copy link

I'm seeing errors related to disk usage and configuration, namely "Disk usage is not within je.maxDisk or je.freeDisk limits and write operations are prohibited".

Complete log entry:

SEVERE Failed to start bean 'bdb'; nested exception is java.lang.RuntimeException: com.sleepycat.je.DiskLimitException: (JE 7.5.11) Disk usage is not within je.maxDisk or je.freeDisk limits and write operations are prohibited: maxDiskLimit=0 freeDiskLimit=5,368,709,120 adjustedMaxDiskLimit=0 maxDiskOverage=0 freeDiskShortage=10,711,040 diskFreeSpace=5,357,998,080 availableLogSize=-10,711,040 totalLogSize=1,266 activeLogSize=1,266 reservedLogSize=0 protectedLogSize=0 protectedLogSizeMap={}

Where is je.maxDisk adjusted?

@mijho
Copy link

mijho commented Sep 2, 2020

@tchnlgst you can set additional configuration values for the Berkley DB here:

config.setAllowCreate(create);

config.setConfigParam(EnvironmentConfig.FREE_DISK, "0");
for example will disable the checks completely which isn't necessarily recommended.

The docs for the settings are here if you want to take a look over what would be best for your use case:
https://docs.oracle.com/cd/E17277_02/html/java/com/sleepycat/je/EnvironmentConfig.html#FREE_DISK

@CSUC
Copy link

CSUC commented May 3, 2021

Hi, we have the same error but we don't have the source version so we can't change Berkeley DB this way. There's any other way to solve ht problem?
Where are this files stored?

@anjackson
Copy link
Collaborator

anjackson commented May 20, 2021

Note that running out of space will corrupt any Berkeley DB instance, which is why the defaults assume there is at least 5GB of space available. I would not recommend running a crawl with less than 5GB of space available.

That said, if you really want to do this without code changes, you could try editing the je.properties file that gets created in the BDB folder. Add a line like:

je.maxDisk=0

If you then try to start-up a crawl, I think it picks up the options from this file. Note that I've only done this when resuming from a checkpoint, but I think it may work when starting afresh.

@cgr71ii
Copy link

cgr71ii commented Aug 31, 2022

Hi! One question related to this issue (I'm using the default configuration, and I guess that the Berkeley DB you're talking about is some specific configuration I don't have, so the error I got it is a little bit different). When this issue arises because you ran out of space, is it expected to remove the log files content? My file seeds-report.txt is empty after this issue happened.

I'm using this version (last commit from master).

When I open the file in the web interface, the exact message I get is:

Cause: com.sleepycat.je.DiskLimitException: (JE 7.5.11) Disk usage is not within je.maxDisk or je.freeDisk limits and write operations are prohibited: maxDiskLimit=0 freeDiskLimit=5.368.709.120 adjustedMaxDiskLimit=0 maxDiskOverage=0 freeDiskShortage=525.475.840 diskFreeSpace=4.843.233.280 availableLogSize=-525.475.840 totalLogSize=6.632 activeLogSize=6.632 reservedLogSize=0 protectedLogSize=0 protectedLogSizeMap={}

Another issue I'm observing when this happens is that when I try to terminate my jobs after this issue, the status seems to be hanged on "finishing" status and doesn't finish properly. Indeed, it seems that when this issue happens, in the log I can see that the status is changed automatically to "finishing", but it wasn't reflected in the web interface until I clicked "terminate".

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

5 participants