Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7497509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:07:37+00:00 2026-05-29T19:07:37+00:00

We are facing a weird issue. We have NFS set up with 2 machines

  • 0

We are facing a weird issue. We have NFS set up with 2 machines mounted with this in read-only mode. Whenever we upload an include file, suddenly we are getting 500 error in PHP. When we trace the code execution, we find that the error encountered is due to the include file not found issue. But physically the file is present in the disk and very much readable. When we unmount and mount it again, this error gets resolved. This issue comes randomly whenever we upload a file.

We are unable to get any clue. Any inputs would be greatly appreciated.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T19:07:39+00:00Added an answer on May 29, 2026 at 7:07 pm

    This sounds like it could be a file lock issue. NFS can lock files being executed/accessed while they prevent others from accessing them. Implemented in bad fashions it can lead to a deadlock which results in the file being useless until the application accessing it is removed.

    Here is some more information on File Locking: http://en.wikipedia.org/wiki/File_locking

    I would recommend checking to see how your NFS is configured in regards to File Locking and address that against your needs for accessing it.

    If it is read only, you don’t really need to have file locking enabled as the primary benefits of File locking are to prevent two people from writing to a location at the same time or when someone is writing to a location, preventing someone from reading an outdated or not completely finished version of the data. As a read only data point this is not required in this situation.

    Update:

    To disable File Locking on Linux NFS, when you mount the NFS point, in the options you assign to it, add nolock.

    For example if this was your /etc/fstab:

    /dev/hda2   /   ext2    defaults    1 1
    /dev/hdb1   /home   ext2    defaults    1 2
    /dev/cdrom  /media/cdrom    auto    ro,noauto,user,exec 0 0
    /dev/fd0    /media/floppy   auto    rw,noauto,user,sync 0 0
    proc    /proc   proc    defaults    0 0
    /dev/hda1   swap    swap    pri=42  0 0
    nfssrv.server.com:/content  /opt/content  nfs  rw,bg,soft,actimeo=0,rsize=8192         0 0
    

    You would change it to:

    /dev/hda2   /   ext2    defaults    1 1
    /dev/hdb1   /home   ext2    defaults    1 2
    /dev/cdrom  /media/cdrom    auto    ro,noauto,user,exec 0 0
    /dev/fd0    /media/floppy   auto    rw,noauto,user,sync 0 0
    proc    /proc   proc    defaults    0 0
    /dev/hda1   swap    swap    pri=42  0 0
    nfssrv.server.com:/content  /opt/content  nfs  rw,bg,soft,actimeo=0,rsize=8192,nolock         0 0
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been facing a weird issue in a piece of code. void app_ErrDesc(char
I'm facing this weird issue with Scripting.Dictionary object in my VBA code. I wish
I am facing a weird issue with firefox, I have a DIV tag with
I'm facing a weird issue with PHP. This simple example: <?php $array = array(
I am facing this very weird problem, I have created a custom UITableViewCell on
Hi I started building apps with this technology and I am facing a weird
My development team of four people has been facing this issue for some time
I am facing a weird problem I have defined I a structure in a
I am facing a weird problem. I have got a file called in which
I am facing a really weird problem. I am using swfupload to upload multiple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.