Weird error: "Cannot write file summary in a read-only environment"

Disclaimer: We are using an old version of bdb - 3.2.76 but are not able to easily upgrade.
We see this occasionally in production. From looking at the code it looks like critical eviction is happening since more memory is used then the limit we set then eviction is happening but then failing since the env is read only. I'm just wondering how it got to this point. we set the max size (je.maxMemory) to 1572864 bytes.
This is not urgent but is adding noise to logs so any suggestions would be welcome...
<application specific exception>
…causedBy com.sleepycat.je.DatabaseException: (JE 3.2.76) Cannot write file summary in a read-only environment
at com.sleepycat.je.cleaner.UtilizationProfile.putFileSummary(UtilizationProfile.java:720)
at com.sleepycat.je.cleaner.UtilizationProfile.flushFileSummary(UtilizationProfile.java:708)
at com.sleepycat.je.cleaner.UtilizationTracker.evictMemory(UtilizationTracker.java:120)
at com.sleepycat.je.evictor.Evictor.evictBatch(Evictor.java:314)
at com.sleepycat.je.evictor.Evictor.doEvict(Evictor.java:253)
at com.sleepycat.je.evictor.Evictor.doCriticalEviction(Evictor.java:279)
at com.sleepycat.je.dbi.CursorImpl.close(CursorImpl.java:690)
at com.sleepycat.je.dbi.CursorImpl.close(CursorImpl.java:660)
at com.sleepycat.je.Cursor.endRead(Cursor.java:1820)
at com.sleepycat.je.Cursor.retrieveNextAllowPhantoms(Cursor.java:1616)
at com.sleepycat.je.Cursor.retrieveNext(Cursor.java:1397)
at com.sleepycat.je.Cursor.getNext(Cursor.java:456)
...

Hi Nick,
It is strange to me also that this is happening in a read-only env. Looking at the code, we don't prevent this sort of eviction in the 3.2 release or later releases. Yet we've never seen this problem before.
This sort of eviction only happens when writing is occurring. Of course, in a read-only env there is no writing. The only way I can think of for this to occur in a read-only env is when there is a very large recovery interval -- the amount of log between the last checkpoint start and the end of the log. This can occur if you didn't close the env cleaning when you last wrote to it, or if the last checkpoint just happened to be very large.
So one thing you could try is to ensure that you have a small checkpoint when you write to the log, before opening it in read-only mode. To do this, just before you call Environment.close, call Environment.checkpoint(new CheckpointConfig().setForce(true)). This will do one checkpoint before closing the env, and then another during the close. The last checkpoint should be small.
If you can't do this, or it isn't sufficient, you could increase the je.cleaner.detailMaxMemoryPercentage env config property. This is the max amount of memory (% of total cache) used for the information that is being evicted. Since nothing can really be evicted in read-only mode, there is no harm in setting this to a much higher value than the default (2). I would try 10. This doesn't reserve or waste any memory, it just prevents this sort of eviction from occurring until a larger part of the cache is used. This is probably the simplest solution.
A third approach is to simply accept that this sort of eviction will be attempted, but try to prevent the exception. If you're willing to rebuild JE (and you're not a supported Oracle customer -- please contact us if you are), then you could simply replace the 'throws' statement with a 'return null' in src/com/sleepycat/je/cleaner/UtilizationProfile.java:
    private synchronized PackedOffsets putFileSummary(TrackedFileSummary tfs)
        throws DatabaseException {
        if (env.isReadOnly()) {
            throw new DatabaseException
                ("Cannot write file summary in a read-only environment");
        }--mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • 10.1 upgrade install error message: "error cannot write file"

    I have just installed a clean copy of os 9.2 onto my powerbook g4. When I try to upgrade with the included cd mac os x 10.1 it errors out about half way through the install. I get the error message : "installition could not continue due to errors" " error cannot write file". I am mainly a pc guy, but want to be fluent with macs to. Has anyone seen this error before and/or know a resolution? Thanks. All help is greatly appreciated!

    Hi Again atadams77!
    Tiger is available for purchase at The Apple Store (U.S.).
    Panther, is no longer available directly from the Apple Online Store, as Tiger 10.4.x is the most up to date OS.
    If you know what to look for, a Full Retail Version, of the Panther Install CDs, or a Full Retail Version, of the Tiger Install DVD, can also be purchased rather inexpensively, at some online Apple retailers, Amazon, eBay, AppleRescue, FastMac, etc.
    Be sure not to purchase grey, upgrade or machine specific CDs or DVDs.
    Panther is only on CDs, not DVDs.
    Unless purchased from AppleRescue, the discs should look exactly like the images in the above links, and not say Upgrade on them.
    Additional info in these links.
    Using OS X Install CDs/DVDs On Multiple Macs
    What's A Computer Specific Mac OS X Release
    Software Update, Upgrade: What's The Difference?
    Once Panther 10.3.x is installed, you can use the 10.3.9 Combo Update, to upgrade to the final version.
    As has been posted, your Mac meets the Tiger System Requirements.
    If you install that, use the PPC 10.4.9 Combo Update, to upgrade to the current version.
    Additionally, "Tiger ships on a DVD, but if your Mac doesn’t have a built-in DVD-ROM player, you’ll need CD media."
    AppleRescue, sells a Tiger installation set on CD
    Shop Carefully, Examine All Documentation, And Good Luck!
    ali b

  • Every time I download a large file in safari (mavericks version) at the end i get the error cannot write file. help

    evrytime i dowload a file on my macbook pro it tells me at the end that it cannot write the File. Small files download Ok but Large files do not.
    Help Please.
    mackbook pro 13 late 2012 upgraded to Mavericks restored backup from M lion with time Machine.
    Thx

    I am experiencing this as well.  I've found a workaround.  Once you know the file has stopped (the Safari download menu says it cannot write the file) then do the following:
    1. Open the Downloads folder.
    2. Open Terminal.
    3. In Terminal type "cd " and then drag the "incomplete" .download file to terminal (this just copies the path), then hit "Return" and you will change into the directory.
    4. Type "ls -l" and you should see within the .download bundle, the complete file is actually there and complete.
    5. Now, let's say the file name is "file.mp4" type "mv file.mp4 ../" and it will be moved out of the bundle one level up into the Downloads folder.  You may need to enclose the file name in quotes if it has any special characters.
    6. You can now drag the .download container to the trash, and the file should be fine.

  • Scanning problem. Receive error message: cannot write file. Code 10,242,7. Please help

    I just purchased and installed a Canon MX 922 multi-function printer. I'm having a problem with the scanner in that the output after scanning cannot be displayed and is accompanied with an error message : Cannot write file. Code 10,242,7. This occurs when scanning documents and images. My operating system Windows XP (32).  Can anyone please help me solve this problem? Thank you.  

    Hello. Please try the following adjustment to see if we can resolve this issue: 1.  Open the IJ Scan Utility from your Desktop or the Canon Utilities listing of the Start Menu.2.  Click Settings.3.  On the left, choose the Auto Scan tab.4.  Click the Defaults button on the lower right.5.  Continue this process with each tab on the left.6.  Click OK at the bottom of the Settings menu. Once this has been done, try scanning from the IJ Scan Utility to test the unit. If these troubleshooting steps do not work, feel free to call us at 1-800-OKCANON.

  • The "alsa audio output error: cannot write: Broken pipe" problem

    [Solved]
    (No place for this word in the Subject field, so I put it here.)
    Hi Arch community!
    I noticed I have this problem and not sure when in started. Several months ago I bought and installed new videocard "GeForce GT 630". Right after installation I lost sound in the system. Having internal sound card (in mainboard) and SB Audigy2 (PCI), I searched for solution and found I had to disable "snd_hda_intel" module to restore sound to work through PCI sound card. Did it.
    echo "blacklist snd_hda_intel" >> /etc/modprobe.d/no-nvidia-sound.conf
    After that sound was working as it should. And I noticed recently that during playing of any sound file the sound interrupts. If run VLC from CLI I get "alsa audio output error: cannot write: Broken pipe" message. And my system hasn't been upgraded since I don't know when. I still ran Firefox 26. So googled again and found it's a bug in a kernel or somewhere else.
    ==========================================
    https://bugs.freedesktop.org/show_bug.cgi?id=69942 :
    2013-10-01 01:39:40 UTC
    I ran a system update last night, and this issue appears to have been corrected.
    ==========================================
    And so I thought upgrade would fix my problem since mainstream bug is fixed. After upgrade sound interrupts again, maybe even more often.
    Do you guys have this issue and does anyone have a solution?
    Last edited by Mr. Alex (2014-06-26 18:55:59)

    Not particularly wise to blacklist the module, since it probably is also used by the integrated sound card. With vid and pid you could just disable the nvidia card alone using parameter enable=0. Unless you do not mind having both disabled.
    Where do I need to input "enable=0"? When I was searching for solution to make my Creative card work with new nVidia card I installed, the only way I found was blacklisting the module.
    dmesg says:
    [ 20.448086] nvidia 0000:02:00.0: irq 42 for MSI/MSI-X
    [ 21.112331] NVRM: Your system is not currently configured to drive a VGA console
    [ 21.112340] NVRM: on the primary VGA device. The NVIDIA Linux graphics driver
    [ 21.112345] NVRM: requires the use of a text-mode VGA console. Use of other console
    [ 21.112349] NVRM: drivers including, but not limited to, vesafb, may result in
    [ 21.112352] NVRM: corruption and stability problems, and is not supported.
    Then:
    lsmod | grep 'snd'
    snd_ca0106 36242 0
    snd_ac97_codec 114896 1 snd_ca0106
    ac97_bus 1270 1 snd_ac97_codec
    snd_rawmidi 20278 1 snd_ca0106
    snd_seq_device 5244 1 snd_rawmidi
    snd_pcm 83207 2 snd_ac97_codec,snd_ca0106
    snd_timer 19294 1 snd_pcm
    snd 60780 6 snd_ac97_codec,snd_timer,snd_pcm,snd_rawmidi,snd_seq_device,snd_ca0106
    soundcore 5551 1 snd
    I guess my card is "snd_ca0106". If yes,
    # systool -v -m snd_ca0106
    Module = "snd_ca0106"
    Attributes:
    coresize = "36242"
    initsize = "0"
    initstate = "live"
    refcnt = "0"
    taint = ""
    uevent = <store method only>
    Parameters:
    enable = "Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y"
    id = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
    index = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    subsystem = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
    Sections:
    .bss = "0xffffffffa0814780"
    .data = "0xffffffffa0813300"
    .exit.text = "0xffffffffa0811a1e"
    .gnu.linkonce.this_module= "0xffffffffa0814500"
    .init.text = "0xffffffffa0817000"
    .note.gnu.build-id = "0xffffffffa0811a30"
    .rodata = "0xffffffffa0811a80"
    .rodata.str1.1 = "0xffffffffa08123dc"
    .rodata.str1.8 = "0xffffffffa0812130"
    .strtab = "0xffffffffa0818c10"
    .symtab = "0xffffffffa0817020"
    .text = "0xffffffffa080d000"
    __mcount_loc = "0xffffffffa0812f98"
    __param = "0xffffffffa0812f18"
    __verbose = "0xffffffffa0814460"
    Where would I look for "max_buffer_size" parameter?

  • Upgrade Plug-ins error (Cannot Open File)

    I was working on a document in CS3 as a final thesis for my masters work. I was using a Blurb template in order to export the file for printing. In between working on the file, one afternoon I could no longer open the file and was met with the follwing error:
    Cannot Open File
    IMAGE.RPLN
    IMAGE FILTERS.RPLN
    HYPERLINKS.RPLN
    "Cannot open "Masters_book dec.indd".
    Please upgrade your plug-ins to their latest
    versions, or upgrade to the latest version of
    Adobe InDesign."
    I hadn't changed any other files on my computer or ran any updates. I was simply met with the error when I tried launching the application. After trying to run necessary updates I was still met with the same error message. I downloaded the trial version of CS5 on another machine and tried to open it and was once again met with the above error message. I have a back up of the file that I can use but it still represents a lot of lost work if I have to resort to an old file.

    I probably shouldn't dwell, on this, but I can get really worked up over it.
    I come from the Cosmos and I can assure you we have sent no "Rays" to your puny Earth Planet today!(*)
    Since this concerns a CS3 file and I haven't seen posts of others having the same issue, either with CS3 or with any other version, I have to take it as a One-Time Fluke.
    I'm pretty firmly convinced this never happens. There are real problems and even if we only see them once, they are happening hundreds and thousands of times and going unreported and undetected, but they are no less real. In fact, because of the reporting bias towards repeatable problems, they are probably causing added frustration and confusion without being detected or fixed properly. So, IMNSHO, we owe a larger duty to pay attention to so-called "unreproducible" bugs.
    (You can imagine how well these conversations with Adobe Support go...)
    Of course, in this case, it's probably really hard to find the problem. And since it's effectively an end-of-life'd product that is 3 versions behind the released product and at least 4 versions behind the development product, well, it's hard to lose too much sleep over it.
    (*) Yes, I know, this incident would not have been "today." Consider it time dilation.

  • IMovie error - cannot create file when I attempt to share

    I am using MAC OS X 10.9.5, iMovie 10.0.5.  I have successfully create many movies by using Share to file - of long and short sizes. This particular time I made couple of minor edits to my movie which had previous shared to file with no problem, and when I went to Share to File I get an error message. The Share fails with the error "cannot create file".
    I have plenty of disk space.
    All other applications are closed, just imovie running.
    The destination is the mac internal hard drive.
    I deleted imovie and re-installed it.
    I deleted the Render Files.
    No luck.
    Any clues would be greatly appreciated.
    Super frustrated.
    Thanks.

    docjob2001 wrote:>
    Is there a way to go back download 9.02 again?
    you can download it from here: http://www.versiontracker.com/dyn/moreinfo/macosx/10057115&vid=11116557&mode=inf o
    My only backup is version 8.2 and will not open my itunes library - is there a workaround for this?
    maybe. you could try this:
    to downgrade to a previous iTunes version, you could try this user tip that seemed to have worked for some:
    +1) Quit iTunes.+
    +2) Delete iTunes from your Applications folder.+
    +3) Go to your ~/Music/iTunes folder. Delete or rename the "iTunes Library" file.+
    +4) Open the "Previous iTunes Libraries" folder and look for the backup of your old pre-9 library; it should be dated at about the time you first ran iTunes 9. Copy it back out to the ~/Music/iTunes folder, and rename it to "iTunes Library".+
    +6) click here to download iTunes 8.2.1. The page says it's for G3, but the Read Me file says it'll run on G4, G5, and Intel too. Open the disk image and run the installer.+
    +You should now be able to run iTunes 8.2.1 again.+
    +And your iTunes will restore to before you upgraded and you won't lose anything+.
    good luck !

  • When I try to reinstall Photoshop Element 13, I get the message "cannot write file". i own the program and I don't want to subscribe to Creative Cloud. What can I do?

    When I try to reinstall Photoshop Element 13, I get the message "cannot write file". i own the program and I don't want to subscribe to Creative Cloud. What can I do?

    This has nothing to do with CC or any of that. You have insufficient user privileges to write files locally on your computer or a technical issue gets in teh way. Since you have not provided any system info or otehr details, we cannot tell you more than that.
    Mylenium

  • Error: Cannot display file. The file contains 0 bytes

    Hi,
    I am getting the below error when accessing a a document using Autovue from Documentum:
    "Error: Cannot display file. The file contains 0 bytes"
    Please note, autovue server is up and running and I get the below when accessing: http://WebserverName:7002/VueServlet/servlet/VueServlet
    Oracle AutoVue
    VueServlet for AutoVue 20.2.2 Build: 8633 (2013-08-21)
    Servlet tunneling to server[0] (IP=xxx.xxx.xxx.xxx)
    Connection state: OK
    AutoVue server is up and running.
    Build: 8633 (2013-08-21)
    Server Load:
    Server: farm-server[0] (xxx.xxx.xxx.xxx:xxx) Processors: 2
    I hope to hear from someone soon!
    Cheers

    That means that you documentum integration is not working properly
    you will need to debug the integration you are using and attach logs for the server, integration servlet (VueLink for documentum, which version?)
    Please review the KB, there are items associated with it
    Oracle AutoVue VueLink for Documentum Troubleshooting Center(Doc ID 1348153.1)

  • Getting the error "Cannot copy file GEARAspiWDM.sys." while installing iTunes

    I am installing iTunes on my PC (Windows XP) but I am getting the error "Cannot copy file GEARAspiWDM.sys." but the path is correct and I can copy it manually. Help!

    Hello LondonMom,
    Sorry to hear that iTunes is not installing properly.  I found an article that has steps for troubleshooting iTunes installation issues on a Windows computer:
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    I recommend starting with the section titled "General installation troubleshooting" and then continue with the section titled "Additional troubleshooting" if the error persists. 
    I hope this helps!
    Best,
    Sheila M.

  • Documents backup failure in commvault with error Cannot open file ReportViewer.dwp

    Hi,
    SharePoint Documents backup failure in commvault with error "Cannot open file ReportViewer.dwp" even all necessary permissions are available for all the sites , sql

    Hi Praveen,
    Whether you tried to backup the library using PowerShell exporting command.
    Export sites, lists, or document libraries in SharePoint 2013:
    http://technet.microsoft.com/en-us/library/ee428301(v=office.15).aspx
    As the commvault is a third party tool and I am not familar with it, I suggest you ask the third party support or forum for help.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Cannot use file for clustered server. Only formatted files on which the cluster resource of the server has a dependency can be used. Either the disk resource containing the file is not present in the cluster group or the cluster resource of the Sql Serve

    Hi
    Windows serv 2012 cluster on sql 2012 cluster with 2 instance. on works fine , Second instanc ewhen i try to creat DB a get this message. 
    Cannot use file  for clustered server. Only formatted files on which the cluster resource of the server has a dependency can be used. Either the disk resource containing the file is not present in the cluster group or the cluster resource of the Sql
    Server does not have a dependency on it.
    CREATE DATABASE failed. Some file names listed could not be created. Check related errors. (Microsoft SQL Server, Error: 5184)
    Any help please
    kam
    KAMEL

    Hi Saurabh
    Exactly I have SQL SERVER 2012
    Failover Clustering   in windows server 2012 with two nodes with
    two instances and exactly I run them in the same server and each instance with
    three drives Backup, Data and log.   
    KAMEL

  • Howto make created folders/ files from one teacher, read only for other teachers?

    Hello there,
    as an admin @ school I was wondering how to make created folders/ files from one teacher, read only for other teachers?
     - In a 2008domain, created a group "teachers"
     - created a folder "teacher data" where all teachers have read/write permissions
    ideal,a teacher who make's a folder in "teacher data" should be the only oen who is able to add file's to that folder and dele that folder or files. Other teachers may be able to read the content of the folder.
    Is this possible to set up and how?
    many thanks.
    Nico.
    rds

    Hi Nico,
    You could set the permissions below to resolve the issue:
    For the root folder "teacher data": give the full control permission to CREATOR OWNER – "Subfolders and files only" and give the read/write permissions to the group "teachers"– "This folder only".
    Best Regards,
    Mandy 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • I have downloaded Mountain Lion and Time Machine says that my Free Agent Goflex (Seagate) external 2gb drive cannot be used as it is read only. I tried disc utility to repair permissions but that block is greyed out. The disc verifies as being OKI

    Since installing Mountain Lion, Time Machine says says that my Free Agent Goflex (Seagate) external 2gb drive cannot be used as it is read only. I tried disc utility to repair permissions but that block is greyed out. The disc verifies as being OKI What next?

    Ok, I solved this problem! I ejected the drive and then disconnected it both from the power supply and the USB connector. I then reconnected everything and powered it up again and Then went into TM preferences and chose the drive as the backup. TM did a new backup (well over an hour) and now works as advertised.

  • Make "File name" and "Files of type" fields read-only in JFileChooser

    I try to make the "File name" and "Files of type" fields read-only in JFileChooser dialog. Anybody
    knows how to do? Thanks.

    You mean so the user can't choose the name of the file to open or save? Not much point in even using a JFileChooser, then, is there? Or did I misunderstand the question?

Maybe you are looking for