Where is uploaded files for courses?

Where is uploaded files for courses?

by Tejas Hapani -
Number of replies: 11

Hello,

I am new to Moodle and learning new things.

Recently I have cloned a Moodle setup from one host to another.

And updated Moodle to latest version.


All works well except the uploaded files for cources.

When i check on new setup, all files are there but when i download it all are blanks.

I think i missed something while doing migration.

I searched for some files on old setup but i could not find it on source.

Can anyone help me to find out documents?

Any help would be appreciate.

Thanks

Tejas


Average of ratings: -
In reply to Tejas Hapani

Re: Where is uploaded files for courses?

by Neill Magill -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
It sounds as though you did not copy the file directory.

Look for $CFG->dataroot in config.php of the Moodle you copied.
Average of ratings: Useful (1)
In reply to Tejas Hapani

Re: Where is uploaded files for courses?

by Ken Task -
Picture of Particularly helpful Moodlers

Migration of a site (clone to another server environment) involves three parts ... the code, the database, and what I think might be the issue the entire moodledata directory and it's contents (where one finds 'filedir' - all files uploaded to a moodle reside there - but not by humanly recognizable names.

In new hosting, suggest using something you have to browse files and check what exist in your moodledata/filedir/.   Things like ownerships/permissions ... filedir directory needs to be readable/writable by the user of the web service.

So ... how did you transfer moodledata to the new hosting environment?

Did you download moodledata first to your workstation then upload it to new hosting?   Did you do that transfer with FTP? and the settings for the transfer binary and not ascii?

'SoS', Ken

In reply to Ken Task

Re: Where is uploaded files for courses?

by Tejas Hapani -
Hi Ken,

Thanks for your explanation.

Here are steps i did for migration:
1. Create zip from old setup and move it to new server
2. Moved zip file over to new hosting and unzip it
3. Export database and import to new hosting
4. Replaced old url with new on database

Please note that the old Moodle has version 3.1 then i upgraded version to 3.2 and then 3.7 as per Moodle document.

Also i have updated $CFG->wwwroot and $CFG->dataroot according to new hosting environment.

Is there anything i am missing here?

Thanks
Tejas
In reply to Tejas Hapani

Re: Where is uploaded files for courses?

by Ken Task -
Picture of Particularly helpful Moodlers

This part:

"Create zip from old setup" ... did that zip contain the moodledata directory?

'SoS', Ken

In reply to Ken Task

Re: Where is uploaded files for courses?

by Tejas Hapani -
Hi Ken,



When I check dataroot on old site, it is pointing to the same directory

where I created zip, but it didn't contain moodledata directory.



On Fri, Sep 13, 2019, 10:06 PM Ken Task (via Moodle.org) <noreply@moodle.org>
In reply to Tejas Hapani

Re: Where is uploaded files for courses?

by Ken Task -
Picture of Particularly helpful Moodlers

"where I created zip, but it didn't contain moodledata directory"

There's the problem then on migration/cloning to new site ... a clone/migration **must** include moodledata in the backup of the site to clone/migrate.

So, that being the fact ... since you've migrated without moodledata and upgraded now, the old moodledata/filedir may/may not work with the new site depending upon how much one as done on new site.  Meta data in db for files must match what is physically in moodledata/fiiedir/

'SoS', Ken


In reply to Ken Task

Re: Where is uploaded files for courses?

by Tejas Hapani -
Hi Ken,

I got the solutions to files on my setup.
I found and copied moodledata folder to new setup and it's working fine.

Thank you so much for your help.

Regards,
Tejas
In reply to Ken Task

Re: Where is uploaded files for courses?

by Tejas Hapani -
Hi Ken,

Hope you are doing well.

I got another issue with my new Moodle setup.
Here is the url for my Moodle setup: http://moodle.progress-english.co.uk/

When user try to reset password from 'Forgotten your username or password?' link, it redirects to a strange page.
See screen shot: http://tinyurl.com/yy4hnzt9

I am not sure why it is showing such error.

Can you please help me? or should i open a new thread?

Thanks & Regards
Tejas
In reply to Tejas Hapani

Re: Where is uploaded files for courses?

by Ken Task -
Picture of Particularly helpful Moodlers

It's best to open a new thread for each issue ... and don't piggy back cause your setup/situation isn't always exactly the same.

Did you notice the link in the upper right hand corner of the page you get?

Looks like this isn't related to moodle but DNS/hosting?

'SoS', Ken

In reply to Ken Task

Re: Where is uploaded files for courses?

by Tejas Hapani -

Hi Ken,

Thanks for your help and guideline.

I will open new thread for this issue.

Thanks

Tejas