Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6588

Re: Help! all file links broken after restore

$
0
0
by Visvanath Ratnaweera.  

Hi Carol

I restored my entire moodle 2.6.7 from database and moodledata backup because I upgraded my server from Ubuntu 12.04 to 14.04.

So you didn't do a 'dist-upgrade', reinstalled Ubuntu instead, right? If you did a 'dist-upgrade' you could have left Moodle untouched.

> At first, I thought everything was fine, except for a few broken links to images on my front page but now I realise that all file resources and handed in files in assignments seem to be broken.

It is never "a few broken links". It indicates an unresolved problem which you are going to encounter one day, usually at the worst moment.

> I thought that my moodledata directory had not been copied properly so attempted replacing with an older backup. This didn't solve the problem...

I would have expected that. The moodle database and the directory moodledata are tightly coupled.

> so I attempted a full restore with a new database backup taken at the same time the moodledata backup was taken.

That sounds better.

> My front page pictures re-appeared but clicking on any file link (resource or submitted in an assignment) produces the error:
>
> Sorry, the requested file could not be found
>
> More information about this error

What those "More information" were, could be interesting. ;)

What you attempt is well tested and documented under https://docs.moodle.org/en/Moodle_migration.

> The only other change is that tIhe URL moodle.myschool.org/moodle used to work for accessing the site as well as moodle.myschool.org but now only the second URL works.

Unless you know exactly what you are doing, a Moodle site should have _one_ URL, the one in config.php! (There are advanced configurations and hacks to do anything, you can't ask those things here.)

> I've moved from apache 2.2 to 2.4 but didn't think I'd changed anything in the virtual server config.

The Apache upgrade came as a result of the Ubuntu upgrade, I believe. That shouldn't be a problem, if you took over the old (Apache) configuration to the new one. BTW, when you say "virtual server", you mean Apache virtual hosts, right?

> This is a bad situation! I'm pretty confident my moodledata backed up correctly as I've restored from backups the same way fairly recently. Any advice welcome.

A backup which was not restored is not a good backup! wink

Viewing all articles
Browse latest Browse all 6588

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>