File system permissions problems found

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
2/21/2012 3:54:56 AM
Gravatar
Total Posts 9

File system permissions problems found

while accessing my site, some times show the error as mentioned below. i can't  trace this error.

i don't know what is actual problem.. please help me.

Probing system...
File system permissions problems found.

The Data folder beneath the root of the web site is not writable by the ASP.NET worker process.

You need to make this folder and all its child folders and files writable before setup can proceed. mojoPortal needs this to be able to write search index files, error logs, image gallery uploads, and other important features.

Right Click the Data folder in Windows explorer, choose properties and go to the Security tab. (On XP if you don't see the security tab then google for XP Simple File sharing to learn how to make that tab appear.) On XP you typically need to give write permission to ASPNET user while on Windows 2003 you need to give it to IIS_WPG user.

Obviously, instructions are a little different on Linux/Mono but the same principle is true, the Data folder and all its child objects must be writable.

Folder Details

The system cannot connect to the MSSQL database. Please check your connection string.

An Error Occurred:Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.

Source:System.Data

Stack Trace at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at mojoPortal.Data.DBPortal.DatabaseHelperGetConnectionError(String overrideConnectionInfo) at mojoPortal.Web.UI.Pages.SetupHome.ProbeSystem() at mojoPortal.Web.UI.Pages.SetupHome.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

 

2/21/2012 8:09:38 AM
Gravatar
Total Posts 18439

Re: File system permissions problems found

Hi,

You have 2 problems going on. The worst one is:

An Error Occurred:Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.

Which means either your database server is under too much load to respond, or you are using custom code that is leaking connections because it doesn't close them and they don't get returned to the conneciton pool. I knonw that all mojoPortal code handles connecitons correctly so it can only be custom features or just over capacity for the server.

The second problem is that the /Data folder or some files or folders beneath it are not writable by the user that is the idnetity on the application pool. This may prevent users form uploading files and it may prevent logging of errors or writing to the search index, but it is the first error that is preventing your site from working at all.

If you don't have any custom code then you should check with your host. If you have custom code you need to fix the bugs that are leaving connections open.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.