Fatal error:$CFG->dataroot is not configured properly, directory does not exist or is not accessible!

Fatal error:$CFG->dataroot is not configured properly, directory does not exist or is not accessible!

by Gregor Suttie -
Number of replies: 2

Can someone help me with the moddledata folder - when I use 

#$CFG->dataroot  = '/home/azureuser/moodledata'; 
everything works but I need to host this in Azure file storage and when i change the lone above to 
$CFG->dataroot  = 'https://<my storage accoutn name>.file.core.windows.net/commashare/moodledata/moodledata';

Then I get errors - how I get this to work using an Azure Fileshare?

Thanks

Average of ratings: -
In reply to Gregor Suttie

Re: Fatal error:$CFG->dataroot is not configured properly, directory does not exist or is not accessible!

by Dave Emsley -
Hi Gregor,

The $CFG->dataroot points to the folder on the server so is definitely not going to have "https".

For example on my server it is /home/learningdomain/public_html/moodledata/

Hope this helps,

Dave
In reply to Gregor Suttie

Re: Fatal error:$CFG->dataroot is not configured properly, directory does not exist or is not accessible!

by James Steerpike -
You could mount the Azure filesystem using SMB.
Which sounds like a very bad idea as instead of using a local disk you may be trying to access data you will be reading and writing very frequently from thousands of miles away.