Buying Issue with failed: Read-only file system

Discussion in 'Programming' started by Big0ne, Aug 30, 2010.

  1. #1
    I am looking for some experienced Linux guru to solve this problem.

    After rebooting server I keep getting message like this:

    Warning: session_start() [function.session-start]: open(/tmp/sess_f4d7708f2793f95b5f75437d44cb6e92, O_RDWR) failed: Read-only file system (30) in /home/account/public_html/domain.com/index.php on line 2

    It looks like it's a problem with some permissions of tmp folder on the server.

    But I can't even delete (logged in as root) tmp files manually, like I have no access of root folder at all, and it looks like would be set to read only.
     
    Big0ne, Aug 30, 2010 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    It sounds like a problem with the hard drive, and the operating system is going into read only so that it protects what is there. Have your data center run and fsck on the drive and see what it comes up with.
     
    RHS-Chris, Aug 30, 2010 IP
  3. st1905

    st1905 Well-Known Member

    Messages:
    573
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    135
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Looks like a failed Hard Drive as Chris mentioned above, if you have raid then just replace the bad one on the array, powering down and then powering on the server will work temporarily but i suggest you contact your hosting and tell them your hdd is failing.
     
    st1905, Aug 30, 2010 IP
  4. jmarhoon

    jmarhoon Peon

    Messages:
    56
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    remove the file from /tmp

    rm -f /tmp/sess_f4d7708f2793f95b5f75437d44cb6e92
     
    jmarhoon, Aug 30, 2010 IP
  5. asdirc

    asdirc Active Member

    Messages:
    275
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    I also believe it could be a hard drive issue. If you have a backup , try maybe first to change your hdd
     
    asdirc, Aug 30, 2010 IP
  6. st1905

    st1905 Well-Known Member

    Messages:
    573
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    135
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    This issue is fixed by me, turned out that the /tmp partition got corrupted, removed and recreated the partition and issue got resolved.
     
    st1905, Aug 30, 2010 IP
  7. Big0ne

    Big0ne Well-Known Member

    Messages:
    2,615
    Likes Received:
    81
    Best Answers:
    0
    Trophy Points:
    165
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    Thank you for helping me out st190! This issue has been solved and thread can be closed.
     
    Big0ne, Aug 31, 2010 IP