Quantcast
Channel: Installing and upgrading help
Viewing all 47014 articles
Browse latest View live

Re: cron not working on fresh installation (Moodle 3.7)

$
0
0
by Howard Miller.  

I'm sure it's what you meant... but the 200 means the 'GET' worked ok. There's no implication that it hasn't returned a bunch of error messages. Which, of course, will be what it has done.

Is it as simple as web-based cron has not been switched on? It's off by default.

As others have noted, if there's some way you can run the command line cron it would be better. Moodle has been threatening to remove the web-based version for years.

Re: cron not working on fresh installation (Moodle 3.7)

$
0
0
by Ken Task.  

Yep, you are correct Howard!  200 indicates wget worked but doesn't mean actually running all of cron/task ... just like a mysqldump.

Still seems to be some conflicting info?

Moodle 3.7 ...
admin/cron.php file has the follwoing in comments:

 * This file is best run from cron on the host system (ie outside PHP).
 * It is strongly recommended to add password protection via admin settings.
 *
 * eg   wget -q -O /dev/null 'http: *moodle.somewhere.edu/admin/cron.php?password=SeCreT666'
 *
 * It is also possible to use CLI script admin/cli/cron.php instead,
 * you can not call this script from command line any more.

In a posting about cron a couple of years ago, a Moodle core programmer
said such methods (wget) have been depreciated and one should use the cron script in admin/cli/

In moodle docs online,
https://docs.moodle.org/37/en/Cron
there is a link for cron services.

"EasyCron - A webcron service provider that eliminates the need of crontab or other task schedulers to set cron job."
Screen shot uses wget as above example.

On remotely hosted systems using Easy Apache, cron has to be setup finding php-cli ...
and not the php used for the web service.

In moodle code directory, 'which php' on some systems using Easy Apache errantly found the highest available php version first ... has to do with how many versions of php provider has via cPanel/Easy Apache and the environmental path of system .

Have been into at least 6 different provider VPS's and it hasn't always been the same!!!
 
That to say ... no way Moodle docs could be 100% correct and cover all providers! :|

Always an 'adventure'!

'SoS', Ken

Re: cron not working on fresh installation (Moodle 3.7)

$
0
0
by Howard Miller.  

Yes, that! Every so often there's a threat to remove the non-cli version of cron. Hasn't happened.

Re: cron not working on fresh installation (Moodle 3.7)

$
0
0
by Stefan Schoch.  

It's from my hoster, tha path seems correct, I checked the file cron.php is there.

Re: cron not working on fresh installation (Moodle 3.7)

$
0
0
by Visvanath Ratnaweera.  

What do you mean? That there is a file called ./admin/cli/cron.php? Sure there is one! The question is, whether it is the right one. Did you read inside? Compare it with ./admin/cron.php.

Hint. CLI stands for Command Line Interface.
wink

Re: Win Server 2016, IIS, PHP7 & Mairadb

$
0
0
by Ravi Chandran.  

Thank you, I have rebooted my machine now it's perfect.

Re: Best hosting company for Moodle

Re: Best hosting company for Moodle

$
0
0
by Chan cellor.  

Best Moodle admins on the globe can't control the pipes between the endpoint Question 2 then dependent upon finding the answer to Question 1. There is also involved your own expertise in administering the server

Re: Best hosting company for Moodle

$
0
0
by Chan cellor.  

Best Moodle admins on the globe can't control the pipes between the endpoint Question 2 then dependent upon finding the answer to Question 1. There is also involved your own expertise in administering the SERVERsite

cron not working on fresh installation (Moodle 3.7)

$
0
0
by Stefan Schoch.  

Hi there,

I have a fresh installation running that's working fine (everything looks great, messages are sent via Email) but nevertheless the server message says:

'The cli/cron.php maintenance script has not been run for at least 24 hours. '

I checked with my hosting provider, the cron job seems to tun correctly:

Line 3017: 109.237.138.50 - - [19/Oct/2019:09:35:01 +0200] "GET /admin/cli/cron.php HTTP/1.1" 200 63 "-""Alfahosting GmbH - Cronservice" integraleimpulse.de
Line 3054: 109.237.138.50 - - [19/Oct/2019:09:40:02 +0200] "GET /admin/cli/cron.php HTTP/1.1" 200 63 "-""Alfahosting GmbH - Cronservice" integraleimpulse.de
Line 3208: 109.237.138.50 - - [19/Oct/2019:09:45:00 +0200] "GET /admin/cli/cron.php HTTP/1.1" 200 63 "-""Alfahosting GmbH - Cronservice" integraleimpulse.de
Line 3232: 109.237.138.50 - - [19/Oct/2019:09:50:01 +0200] "GET /admin/cli/cron.php HTTP/1.1" 200 63 "-""Alfahosting GmbH - Cronservice" integraleimpulse.de
Line 3251: 109.237.138.50 - - [19/Oct/2019:09:55:00 +0200] "GET /admin/cli/cron.php HTTP/1.1" 200 63 "-""Alfahosting GmbH - Cronservice" integraleimpulse.de


Any ideas or tipps?
Stefan

إعادة: Re: Problem with Upgrad

$
0
0
by D.ALI ALAMRI.  

Hi
MR Ken Task
I will do and tell you the result
Thanks مبتسم

Re: cron not working on fresh installation (Moodle 3.7)

$
0
0
by Visvanath Ratnaweera.  

GET? From another machine through the net? For that there is ./admin/cron.php.

Re: Problem with Installing Moodle on Webserver

$
0
0
by Stefan Hackel.  

Thanks for the responses! I solved the problem with the database credentials, so I got moodle running. Now I need to solve the moodledata directory issue, I guess I have to do it manually in the config.php file.

I don't have access to another directory on my ftp so I have to install moodledata within the moodle installation directory and I read the link Visvanath posted. So I guess I have to make a .htaccess file in the moodle installation directory under the moodledata folder. I only "finished" the moodle installation because I commented out the code for the dataroot error message. I hope I got this working when manually inserting the moodledata directory but what I don't understand is that even with a .htaccess file in the moodledata folder I couldn't finish the installation although the docs say it should be working.

problem with Register Moodle with Azure AD

$
0
0
by maveric moodle.  

Admin consent & additional information

Step 3/3: Admin consent & additional information

Click on "provide admin consent " button, then log in with an Azure administrator account to provide consent i am getting the following error .

"There was a problem logging you in. Please contact your administrator for assistance.

More information about this error"

Once click on more "more information about this error: 

error/auth oidc/errorauthgeneral

This page does not exist yet. You can search for this page title in other pages, or let us know by posting about it in one of the Moodle community forums.


Please help me to how i can achieve Microsoft office 365 integration with moodle .


"MySQL server has gone away" only on messages, when unread messages are there

$
0
0
by Kristoffer Schill.  

Hello,

I have a strange issue with moodle 3.6.6 connecting to the  Mariadbdatabase on our test enviroment, that I can't seem to make sense of...

I get a dmlreadexception- only when I try to open the messages. The strange thing is that can't seem to locate any other place where this occurs.

php errorlog gives me:

[21-Oct-2019 12:33:59 Europe/Stockholm] PHP Warning:  mysqli::query(): MySQLserver has gone away in /var/www/html/moodle/lib/dml/mysqli_native_moodle_database.php on line 1246
[21-Oct-2019 12:33:59 Europe/Stockholm] PHP Warning:  mysqli::query(): Error reading result set's header in /var/www/html/moodle/lib/dml/mysqli_native_moodle_database.php on line 1246

(I have set my config to mariadb and library native, and that file exists but it has not been updated since 2018 so I guess mysqli_native_moodle_database.php uses the right file?)

All tables are utf8mb4_unicode_ci

any tips on where I should look?

diff CURRENT3.6.6 OLD3.6.5+
678,679c678
<         $fixedtable = $this->fix_table_name($table);
<         $sql = "SHOW INDEXES FROM $fixedtable";
---
>         $sql = "SHOW INDEXES FROM {$this->prefix}$table";
750,751c749
<             $fixedtable = $this->fix_table_name($table);
<             $sql = "SHOW COLUMNS FROM $fixedtable";
---
>             $sql = "SHOW COLUMNS FROM {$this->prefix}$table";
1322,1323c1320,1321
<         $fixedtable = $this->fix_table_name($table);
<         $sql = "INSERT INTO $fixedtable ($fields) VALUES($qms)";
---
>
>         $sql = "INSERT INTO {$this->prefix}$table ($fields) VALUES($qms)";
1488,1489c1486
<         $fixedtable = $this->fix_table_name($table);
<         $sql = "INSERT INTO $fixedtable $fieldssql VALUES $valuessql";
---
>         $sql = "INSERT INTO {$this->prefix}$table $fieldssql VALUES $valuessql";
1553,1554c1550
<         $fixedtable = $this->fix_table_name($table);
<         $sql = "UPDATE $fixedtable SET $sets WHERE id=?";
---
>         $sql = "UPDATE {$this->prefix}$table SET $sets WHERE id=?";
1628,1629c1624
<         $fixedtable = $this->fix_table_name($table);
<         $sql = "UPDATE $fixedtable SET $newfield $select";
---
>         $sql = "UPDATE {$this->prefix}$table SET $newfield $select";
1652,1653c1647
<         $fixedtable = $this->fix_table_name($table);
<         $sql = "DELETE FROM $fixedtable $select";
---
>         $sql = "DELETE FROM {$this->prefix}$table $select";
2026,2052d2019
<     }
<
<     /**
<      * Does this mysql instance support fulltext indexes?
<      *
<      * @return bool
<      */
<     public function is_fulltext_search_supported() {
<         $info = $this->get_server_info();
<
<         if (version_compare($info['version'], '5.6.4', '>=')) {
<             return true;
<         }
<         return false;
<     }
<
<     /**
<      * Fixes any table names that clash with reserved words.
<      *
<      * @param string $tablename The table name
<      * @return string The fixed table name
<      */
<     protected function fix_table_name($tablename) {
<         $prefixedtablename = parent::fix_table_name($tablename);
<         // This function quotes the table name if it matches one of the MySQL reserved
<         // words, e.g. groups.
<         return $this->get_manager()->generator->getEncQuoted($prefixedtablename);

As it is mariadb 10.1.41 it should have fulltext_search(?)

MariaDB [<our QA Schema>]> select table_name, column_name from information_schema.STATISTICS  where table_schema = '<our QA schema>'  and index_type = 'FULLTEXT';
+---------------------------+--------------+
| table_name                | column_name  |
+---------------------------+--------------+
| mdl_search_simpledb_index | title        |
| mdl_search_simpledb_index | content      |
| mdl_search_simpledb_index | description1 |
| mdl_search_simpledb_index | description2 |
+---------------------------+--------------+
4 rows in set (0.02 sec)

Any tips or hints would be greatly appreciated.

Re: "MySQL server has gone away" only on messages, when unread messages are there

$
0
0
by William Lu.  

Moving to the Installing forum...

Re: upgrade from 3.1 to 3.6

$
0
0
by Mark Schultz.  

Hi Lewis,

I am planning an upgrade from 3.1 to 3.6 as well. I'm curious if you have a particular reason why upgrade to 3.3 first, instead of 3.4?

thanks.

Re: upgrade from 3.1 to 3.6

$
0
0
by Ken Task.  

Login to your moodle and go to Admin Menu -> Server -> Environment.

Update component.

Set pick list to the versions of moodle higher than what you are running now an observe the red and yellow checks.  There's your roadmap for a 'march'.

3.1 -> 3.2 PHP 5.6.5 Min.
3.3 -> 3.4 PHP 7.0.x Min.
3.5 -> 3.6 PHP 7.0.x Min. + MySQL 5.6 Min
3.6 -> 3.8upwards ... ditto

When you see a required it means you must make that PHP/MySQL upgrade prior to attempting the Moodle upgrade.

'SoS', Ken



Re: upgrade from 3.1 to 3.6

$
0
0
by Mark Schultz.  

thanks this is really helpful.

Re: cron not working on fresh installation (Moodle 3.7)

$
0
0
by Stefan Schoch.  

Ok, now I understand: there's a difference in the scripts depending from where they are called.

I now changed the system to call the admin/cron.php with a password.
Will see if that works.

Is there any log-file where I can check the chron activities (in addition to 'Site administration/ Notifications')?

Having some trouble with my hosting provider around cron jobs sometimes and the whole system is quite intransparent for me.

Stefan
Viewing all 47014 articles
Browse latest View live


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