Mosso / Rackspace Cloud installation error

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
11/16/2009 10:09:14 AM
Gravatar
Total Posts 1

Mosso / Rackspace Cloud installation error

I think this has already been touched on, so I apologize if I'm repeating what has already been asked.  I have a client who has a developer trying to setup MojoPortal on Rackspace's cloud (Mosso).  Their wiki says they support MojoPortal, but they've been getting the following error:

 

Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source:mscorlib

Stack Trace at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity) at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity) at mojoPortal.Web.mojoSetup.TouchTestFile() at mojoPortal.Web.mojoSetup.DataFolderIsWritable() 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)

 

As far as I can tell the web.config is setup to be using medium trust. Rackspace's info says they're running a modified medium trust environment.  Are there any other possibilities to cause this sort of error.  Thanks in advance for any input.

11/16/2009 10:25:10 AM
Gravatar
Total Posts 18439

Re: Mosso / Rackspace Cloud installation error

This looks like a simple file permission error. The Web Process user must have read permission on the whole web site and it should have full control on the /Data and /App_Data folders so it can write and modify files there.

Previously someone contacted me to let me know they got mojoPortal working in the mosso cloud.

His notes were as follows:


My notes to anyone wanting to set it up on Mosso/Rackspace Cloud: make sure to use the included Medium Trust web config file; use the web.config impersonate entry and of course make sure file permissions are correct (I used my sftp program to set the needed folders/files to 777. 

After I made sure all that was straight - and I used MySQL - it installed in under 30 seconds and is fast. In case you want to see it - http://mojo.weekendwebbie.com.

Hope it helps,

Joe

1/19/2010 9:49:21 AM
Gravatar
Total Posts 7

Re: Mosso / Rackspace Cloud installation error

I am having trouble getting mojo working with Rackspace Cloud Sites.  I am getting the same error as above after 'Probing system...', 'System.Security.Permissions.FileIOPermission', during /Setup/default.aspx.  I have tried the steps noted above and in the Rackspace wiki specific to mojoPortal without luck (using medium trust web.config, set impersonation in web.config to Rackspace account, set access rights to 777 on Data and App_Data folders).  Any other suggestions?  Seems like there is still a file permission issue somewhere.  Thanks!

1/19/2010 12:52:17 PM
Gravatar
Total Posts 18439

Re: Mosso / Rackspace Cloud installation error

Hi,

I don't know if something changed recently at Rackspace, but on this page http://cloudsites.rackspacecloud.com/index.php/Overview_of_modified_Medium_Trust#FileIO it mentions a known IO bug that prevents creating folders and says they are working with Microsoft to solve the issue.

The mojoPortal Setup does try to create some folders if they do not exist so you may need to try and create them manually using ftp instead.

I recommend:

  1. create the folder /Data/Sites/1/skins
  2. copy all contents from /Data/skins to /Data/Sites/1/skins/
  3. create the folder /Data/Sites/1/systemfiles
  4. create the folder /Data/Sites/1/GalleryImages/
  5. create the folder /Data/Sites/1/FolderGalleries
  6. create the folder /Data/Sites/1/SharedFiles
  7. create the folder /Data/Sites/1/SharedFiles/History
  8. create the folder /Data/Sites/1/media

This may get you past the setup errors and get your site functional, however various features create folders as needed and therefore this issue may cause errors in some site features until they get it resolved.

Hope it helps,

Joe

1/19/2010 1:22:30 PM
Gravatar
Total Posts 7

Re: Mosso / Rackspace Cloud installation error

Hi Joe,

Excellent call!  After creating the folders you mention, the initial setup did run for a bit.  However, it stopped after "Creating site with default settings... - 00:00:02:6406250" with the FileIOPermission error again.  Here is the message which may help:

.....

Running script mojoportal-core - 2.3.3.3 - 00:00:02.5937500
Running script mojoportal-core - 2.3.3.4 - 00:00:02.6250000
Creating site with default settings... - 00:00:02.6406250
An Error Occurred:Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Source:mscorlib
Stack Trace at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity) at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity) at mojoPortal.Web.mojoSetup.CreateDefaultSiteFolders(Int32 siteId, Boolean includeStandardFiles) at mojoPortal.Web.UI.Pages.SetupHome.CreateSiteAndAdminUser() at mojoPortal.Web.UI.Pages.SetupHome.RunSetup() 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)

-------------

Any suggestions?

Thanks a bunch Joe!

1/19/2010 1:29:28 PM
Gravatar
Total Posts 18439

Re: Mosso / Rackspace Cloud installation error

I think I forgot a few folders, try adding

  1. /Data/Sites/1/banners
  2. /Data/Sites/1/flash
  3. /Data/Sites/1/logos
  4. /Data/Sites/1/htmlfragments
  5. /Data/Sites/1/index
  6. /Data/Sites/1/xml
  7. /Data/Sites/1/xsl

Then visit /Setup/Default.aspx again

Hopefully that will solve it, but it may not have done everything it needed to for the site creation since this error interrupted it so if you have troubles  I would try again with a clean new db.

Hope it helps,

Joe

1/19/2010 1:36:40 PM
Gravatar
Total Posts 7

Re: Mosso / Rackspace Cloud installation error

Awesome!  We are getting there.  I am now getting to this point.

......

Running script webstore - 0.0.6.0 - 00:00:06.9843750
Running script webstore - 0.0.6.1 - 00:00:07.0156250
Configuring feature Web Store - 00:00:07.0625000
Configuring feature Xml/Xsl - 00:00:07.1093750
Ensuring all features are installed in server admin sites... - 00:00:07.1093750
No pages found so creating default content...
An Error Occurred:Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Source:mscorlib
Stack Trace at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity) at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity) at mojoPortal.Web.mojoSetup.EnsureTemplateImageFolder(String siteFolderPath) at mojoPortal.Web.mojoSetup.EnsureAdditionalSiteFolders(Int32 siteId) at mojoPortal.Web.mojoSetup.EnsureAdditionalSiteFolders() at mojoPortal.Web.UI.Pages.SetupHome.RunSetup() 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)

1/19/2010 1:39:11 PM
Gravatar
Total Posts 18439

Re: Mosso / Rackspace Cloud installation error

I forgot more folders from another method, try adding these:

  1. /Data/Sites/1/htmltemplates
  2. /Data/Sites/1/userfiles

Best,

Joe

1/19/2010 1:46:30 PM
Gravatar
Total Posts 7

Re: Mosso / Rackspace Cloud installation error

Bit by bit!

......

Configuring feature Web Store - 00:00:01.2968750
Configuring feature Xml/Xsl - 00:00:01.3281250
Ensuring all features are installed in server admin sites... - 00:00:01.3281250
An Error Occurred:Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Source:mscorlib
Stack Trace at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity) at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity) at mojoPortal.Web.mojoSetup.EnsureTemplateImageFolder(String siteFolderPath) at mojoPortal.Web.mojoSetup.EnsureAdditionalSiteFolders(Int32 siteId) at mojoPortal.Web.mojoSetup.EnsureAdditionalSiteFolders() at mojoPortal.Web.UI.Pages.SetupHome.RunSetup() 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)

1/19/2010 1:57:45 PM
Gravatar
Total Posts 18439

Re: Mosso / Rackspace Cloud installation error

Sorry, I'm multi tasking too much and typed one of them wrong

/Data/Sites/1/htmltemplates should have been

/Data/Sites/1/htmltemplateimages

Best,

Joe

1/19/2010 2:09:02 PM
Gravatar
Total Posts 7

Re: Mosso / Rackspace Cloud installation error

No apologies necessary!  The install finished successfully and I am in.

Many, many thanks for your help.  I really appreciate your quick responses!  I am checking with Rackspace on the status of the issue you pointed out to see if they are still working on it.

Have a great day!

 

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