version 10.2.29 is required and you are running 5.7.30

version 10.2.29 is required and you are running 5.7.30

di António Moreira -
Numero di risposte: 34

My moodle s updating to 3.9

The DB is on MySql and is up to date.

MariaDB 10.2.9 is a fork from MySql 5.7.30 as my server manager said.

How Can I update DB?  Now I've to check tha warming before go on?

What can I surpass this trouble?

Tanks in Advance

António


Media dei voti:  -
In riposta a António Moreira

Re: version 10.2.29 is required and you are running 5.7.30

di Ken Task -
Immagine Particularly helpful Moodlers

Please see:

https://mariadb.com/kb/en/release-notes-mariadb-102-series/

10.2.9 isn't 10.2.29 ...

https://mariadb.com/kb/en/mariadb-10229-release-notes/

Assume your server admin can upgrade MariaDB.  

https://mariadb.com/kb/en/yum/

https://mariadb.com/kb/en/installing-mariadb-deb-files/

Uhhh ... I don't run MariaDB myself ... just doing some 'leg work' for your admin person. sorridente

'SoS', Ken

In riposta a Ken Task

Re: version 10.2.29 is required and you are running 5.7.30

di António Moreira -

Hello Ken,

Thank You.

There is Problem, I'm not server admin.

And they can't change configs,

Here is their answer:

Version 10.2.29 of mariadb is a fork of MySQL of version 5.7. This means that in practice they are the same software but from different "manufacturers". However, these are backwards compatible so the application in question should work without problems. Have you tried to use the support?

Do you see any solution?

Thanks in Advance

António

In riposta a António Moreira

Re: version 10.2.29 is required and you are running 5.7.30

di Ken Task -
Immagine Particularly helpful Moodlers

Do I see a problem????!!!!   Well, yeah! :\

Sounds like where you host they provide 0 - that's a ZERO - support for hosting a Moodle!!!  And you have no access? (no cPanel, no ssh, no ... nada nothing!???)

And while MariaDB is a fork of MySQL 10.2.29 doesn't equate to MySQL 5.7 in general ... no sense in asking them but 5.7.X ... what's the X?

What databases does hosting allow?   And to kinda point right back to them ... and their understanding ... since they said that MariaDB is equal to MySQL then there should be no issues with you switching DB's!!!!

The only time one would see a 'red' check in environment check of a Moodle is when moodle code sees a version of something that won't support what ever version you had in the drop down list of that form.

'And they can't change configs,' ... might be true ... depending upon where you host ... but most hosting providers can/could change ... if not on share hosting where a change like that would affect all customers on that server.

So time for you to fully disclose ... where do you host?  Provider name.  What option/package have you leased from them?  (shared/VPS/other).

'SoS', Ken

In riposta a Ken Task

Re: version 10.2.29 is required and you are running 5.7.30

di António Moreira -
My Server Provider is quite good. And I've no problem till now.
I were using MySql in previous version...
The host is a shared host... ptservidor.pt
I'm seeing what Usman Asar said...
I'm not skilled wiht server configs triste
LEts see
In riposta a Ken Task

Re: version 10.2.29 is required and you are running 5.7.30

di António Moreira -
This is a Shared host.
Let's see what is possible with them.
In previous verions updates there is no trouble
I'm not skilled in server configs.
Tky
In riposta a António Moreira

Re: version 10.2.29 is required and you are running 5.7.30

di Usman Asar -
MariaDB is drop-in replacement of MySQL, so your server admin has to install MariaDB and that is it, no need to change database or any complicated procedure, just mention in your moodle config file if your are using mysql or mariadb driver. I have switched between hosting using MySQL and MariaDB and all I had to update was driver used in config file.
In riposta a Usman Asar

Re: version 10.2.29 is required and you are running 5.7.30

di António Moreira -
Thanks for your answer, Usman
What and where precisely should I replace?
I can acess Cpanel,
Thanks
António
In riposta a António Moreira

Re: version 10.2.29 is required and you are running 5.7.30

di Usman Asar -

Antonio, click your File Manager in CPanel, open your root directory of moodle

there you will see config,php file, open that and edit the following (shown in pic), yours must be $CFG->dbtype = 'mysql', provided your hosting provider has MariaDB installed as well (hosting providers can accommodate both), all you have to do is change into 'mariadb'.


In riposta a António Moreira

Re: version 10.2.29 is required and you are running 5.7.30

di Ken Task -
Immagine Particularly helpful Moodlers

Maybe it's me, but am not at all certain we are all on the same page.

@António - can you get to your Moodles Environment check page?

Site administration -> Server -> Environment
or by URL:
http://yoursite/admin/environment.php

The drop down for moodle version will show current version of Moodle.  What is that?

Set the drop down for Moodle 3.9 and beyond.

Server Checks table displays.   The third row checks the database.
What does that say?
OF, if anything is 'red' under status, what is that?

'SoS', Ken

In riposta a Ken Task

Re: version 10.2.29 is required and you are running 5.7.30

di Ken Task -
Immagine Particularly helpful Moodlers

Antonio's Environment check is a little confusing.

On a CentOS 8 with MariaDB 10.3.17
Environment check for database shows:
"version 10.2.29 is required and you are running 10.3.17"

Antonio's check says running MariaDB 10.2.2 and shows running MySQL 5.7. Have never seen the environment check mix MariaDB and MySQL before.  But, then again, I've never had provider change DB servers on me either.

So did provider change the DB for the server?
If so ... and that being the case, if it's true, config.php should have
mysqli for the DB driver.

BTW, found in these forums or DB admin out there, that
DB type could be mysqli for a MariaDB server and it would still run!

Maybe it's me, but am not at all certain we are all on the same page.

@António - can you get to your Moodles Environment check page?

Site administration -> Server -> Environment
or by URL:
http://yoursite/admin/environment.php

The drop down for moodle version will show current version of Moodle.  What is that?

Set the drop down for Moodle 3.9 and beyond.

Server Checks table displays.   The third row checks the database.
What does that say?
OF, if anything is 'red' under status, what is that?

'SoS', Ken


In riposta a Ken Task

Re: version 10.2.29 is required and you are running 5.7.30

di António Moreira -

Hello Ken, Thanks in advance for pacience.
Here It is the page after I 've done upadate from softacolous.. trought Cpanel

António


In riposta a António Moreira

Re: version 10.2.29 is required and you are running 5.7.30

di Usman Asar -

This looks like mariaDB already, but matching fork of MySQL (sorry cant read Spanish/Portuguese) , can you ask your hosting provider to upgrade to MariaDB 10.2.x ? As Barracuda default is from 10.2.x


In riposta a Usman Asar

Re: version 10.2.29 is required and you are running 5.7.30

di Ken Task -
Immagine Particularly helpful Moodlers

Says mariadb (5.7.30) which isn't a Mariadb version number.
Then says requires 10.2.29 which is a true MariaDB version and you are running 5.7.30 which is a mysql version number.

Was your Moodle originally installed via Softaculous?   What version was your Moodle before the upgrade?

BTW, no one that has been participating in this thread works for Softaculous ... which is a commercial addon to commercial cPanel.  So your Provider,cPanel, and Softac folks should work this out instead of pointing you to community forums - if that's what they did.   Criminal in my book!

Is your site working 100% ... I see some images missing ... like for 'backups' (unless that category never had a category image/icon).  Is running server: Apache x-powered-by: PHP/7.4.7 which is PHP max for Moodle 3.9+ and theme is Adaptable.

Is theme up to date?

https://moodle.org/plugins/pluginversions.php?plugin=theme_adaptable

'SoS', Ken




In riposta a António Moreira

Re: version 10.2.29 is required and you are running 5.7.30

di António Moreira -
Thanks Ken, and Usman.
Problem Solved
Change Config.php
$CFG->dbtype = 'mysqli';
I try It before, but with mysql...
After contacting server admikn
Its solved, Anyone to close topic?
Thank you all
Best Whishes
António
In riposta a António Moreira

Re: version 10.2.29 is required and you are running 5.7.30

di Morais J. -

Hello everyone.

I am new to the moodle world that I use to communicate information and training in a non-profit organization, and I have never had any problems until now.

I can't update the moodle, returning the following error that I can't fix.

I use CPanel. Someone help???

mariadb (10.1.45-MariaDB-cll-lve) é requerida a versão 10.2.29 e está a correr a versão 10.1.45

In riposta a Morais J.

Re: version 10.2.29 is required and you are running 5.7.30

di Usman Asar -
Morais, use moodle 3.8, as 3.9 requires 10.2 MariaDB and your hosting provider will not upgrade it just for you.
In riposta a Usman Asar

Re: version 10.2.29 is required and you are running 5.7.30

di Morais J. -
and how do i do this?

When I enter the site it automatically asks to update
In riposta a Morais J.

Re: version 10.2.29 is required and you are running 5.7.30

di Usman Asar -

is it a new installation you're going with, or upgrading an older one?

If you already had moodle, then better to stay on that version until you have affirmed meeting requirements for moodle 3.9, many people jump ship the moment new version comes out later to experience troubles during upgrade or after it.

In riposta a Usman Asar

Re: version 10.2.29 is required and you are running 5.7.30

di Morais J. -
Upgrading.

I Have moodle 3.8.3.

When i enter the site, automatically ask to update.
Allegato Sem Título.png
In riposta a Morais J.

Re: version 10.2.29 is required and you are running 5.7.30

di Ken Task -
Immagine Particularly helpful Moodlers

When your site was a 3.8.x (prior to upgrade attempt) did you make a site backup ... an archive of code, a database dump, and an archive of at least moodledata/filedir/?

Also, when site was a 3.8, did you view the environment check?  Was that the screen you shared here ... the one that showed mariadb but a MySQL version number?

At this stage of confusion, it might be best to restore the 3.8.x site.   Then double check the issue with your Moodle being able to recognize what DB service it's running ... mariaDB or MySQL .. and what verion.

If you made a site backup, but don't know how to restore, then we might be able to help.   Your hosting provider help desk probably won't go there.

IF you didn't make a site backup, all hope is not lost ... but depends upon hosting provider.   Many hosting providers do backup customer accounts ... ie, your entire server.   They don't do that very often ... since this is end of June, their last customer site backup might have been first of the month ... 1st of June.  They could, if they have that, restore it.   That's means, of course, anything that was done on the site between the date of the customer backup and now is lost.  But it's not all lost.

'SoS', Ken

In riposta a Morais J.

Re: version 10.2.29 is required and you are running 5.7.30

di Ken Task -
Immagine Particularly helpful Moodlers

IF I found your site, looks like you are running a 3.9 now.

And the DB issue has been resolved.

If that's true, please let us both know so we can move onto other things!

'SoS', Ken

In riposta a Ken Task

Re: version 10.2.29 is required and you are running 5.7.30

di Morais J. -
This is my site

www.bvfao.com/elearning

when i enter with my user send me to the screen to update
In riposta a Morais J.

Re: version 10.2.29 is required and you are running 5.7.30

di Ken Task -
Immagine Particularly helpful Moodlers

Well, we're not really helping ourselves here.
We, folks who are trying to help, must have accurate info.

Screen shot of environment check you shared earlier has
ask.com.pt/formacoes/
And now you say it's another url!
Am confused ...

www.bvfao.com/elearning

A dig on that FQDN shows this:
www.bvfao.com.        1400    IN    CNAME    www.bvfao.com.cdn.cloudflare.net.
www.bvfao.com.cdn.cloudflare.net. 300 IN CNAME    cloudflare-resolve-to.bvfao.com.
cloudflare-resolve-to.bvfao.com. 1400 IN CNAME    bvfao.com.
bvfao.com.        14400    IN    A    88.99.93.149

cloudflare sits in front of your server DNS wise ... that IP is with Hetzner Online GmbH as provider.

curl -I https://www.bvfao.com/

Renders this:

HTTP/1.1 406 Not Acceptable
Server: Apache
X-Powered-By: PHP/7.2.31

Can't do any curl test at https://www.bvfao.com/elearning/ at all.

The IP address is really sv0.weblx-0.net (88.99.93.149).

So dunno how anyone can help!

Cept to suggest maybe turning off the cloudflare content delivery setup.   I could not begin to tell you how to do that ... don't host where you host.

You probably should contact technical support of hosting provider.

'SoS', Ken

In riposta a Morais J.

Re: version 10.2.29 is required and you are running 5.7.30

di Usman Asar -
It's best, to replace moodle folder with that of moodle 3.8.x's (unless you know what last version you had)
3.9 came with strict DB requirements to enforce Barracuda file format, and people jumping in to upgrade or doing new installs are having trouble, as web hosting companies aren't ready for it yet, unless one have a dedicated server where they can play with anything they want to, I am not recommending upgrading to 3.9, even with control over everything let 3.9 become stable to jump ship.
In riposta a Usman Asar

Re: version 10.2.29 is required and you are running 5.7.30

di Morais J. -
Thanks for everything.

One more question... how to downgrade? put the older version???
In riposta a Morais J.

Re: version 10.2.29 is required and you are running 5.7.30

di Usman Asar -
Do you remember which version you had prior to upgrade?

like for example you had 3.8.2, just download files from moodle.org and replace current moodle with those (adding plug-ins to appropriate places), this way there wont be any upgrade wizard firing up and things would be as same as before.
Even if you dont remember which plug-ins were installed, dont worry about that, once you log-in it will tell you for missing plug-ins, just add plug-ins to respective folders then
In riposta a Usman Asar

Re: version 10.2.29 is required and you are running 5.7.30

di Morais J. -
Thanks Usaman
Thanks Ken

I restore the backup and it's working for now. sorridente
In riposta a Morais J.

Re: version 10.2.29 is required and you are running 5.7.30

di Ken Task -
Immagine Particularly helpful Moodlers

Yep ... was confused wasn't I!!!

Very good!  Next time ... don't piggy back on someone else's thread/posting.  Your problem deserves attention ... in and of itself!

In moving forward ... make sure you do 2 things ... a site backup and do check environment.   Research the 'red' checks.  And remember not everyone host where you host with same combo, etc.   So be accurate with description of hosting + everything/anything related. sorridente  Consider filling out your profile more in these forums with technical info.

You have made a site backup now that you are up and running again ... right? ;)

'SoS', Ken


In riposta a António Moreira

Re: version 10.2.29 is required and you are running 5.7.30 [RESOLVED]

di Visvanath Ratnaweera -
Immagine Particularly helpful Moodlers Immagine Translators
Nice that you posted the solution. People with similar problems come straight to the forum through web searches.

The only possibility to close a topic is to add [RESOLVED] or some other key word to the subject line and to hope that nobody will drag the discussion. The reality is different, as you can see it yourself, a new topic is being actively discussed under the same thread. https://moodle.org/mod/forum/discuss.php?d=405994#p1639358 triste
In riposta a António Moreira

Re: version 10.2.29 is required and you are running 5.7.30

di Petr Chernov -

Hello from Russia. Today I ran into similar problem installing latest Moodle 3.9 on server. The error was: “database mariadb (5.7.26-29) version 10.2.29 is required and you are running 5.7.26.29”. Solution was to edit config.php as follows:

$CFG->dbtype    = 'mysqli'; (not mysql) It solved the problem. Probably it would have been better to choose mysqli, not mariadb from start during installation, I am not sure.

It’s interesting that on local PC using XAMPP things look different. If I choose mariadb, everything goes smooth. But if I pick mysqli it comes to error and I have to edit config.php writing mariadb. Go figure) May be folks in Moodle should slow down a bit and not run ahead of existing infrastructure.