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

Re: Error while restoring course use restore-backup.php and moosh

$
0
0
by Ken Task.  

Don't really have an answer as I too am having issues with Moodle 4.1 using PHP 8.1 and moosh (fresh install of). sad

Comments/Observations/?:

Command:

Is that the name of the backup file?

backup-moodle2-course-2446-c_1001_uai707_pai_7_ \ ( islam_disiplin_ilmu_kedokteran \ )_a_12022-20230706-1603.mbz

This part of the filename: \ ( blah \ )
key 'mdl_user_mneuse_uix'
is for the moodle networking id number.
user table has a field for moodle networking even if your site wasn't using
moodle networking.   In a 4.1 mdl_user table, that column shows to be (on mine):

mnethostid        | bigint       | NO   | MUL | 0

Might want to run a query like:
select auth,username,mnethostid from mdl_user where username like 'd960231';

Your screen shot shows adding the backup to an existing course?  That might have user conflicts.

Is your DB fully compliant?

CLI scripts in code/admin/cli/ will assure that DB is.

The other ... strange moosh command in that moosh.php script itself is normally
executable ... has a 'Shebang' line at the top.

#!/usr/bin/env php

So one does have to use php in front of moosh.php

What is your version of PHP?  php -v from CLI.  Ditto version of Moodle?

'SoS', Ken


Viewing all articles
Browse latest Browse all 6815

Trending Articles



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