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

Re: Error DDL sql execution error (mod_h5pactivity)

$
0
0
by Leon Stringer.  

"Should I add back now all these tables I deleted" – these tables should have been created again during the 3.9 upgrade.

To recap to ensure we're both on the same page:

  1. The site was originally 3.7.
  2. There was an attempt to upgrade to 3.9.
  3. This attempt was rolled back and the 3.7 database restored "over" the 3.9 database leaving the new 3.9 tables in place.
  4. There was a subsequent attempt to upgrade to 3.9. This failed when Moodle tried to create the new 3.9 tables because they already existed. (This was the original question in this discussion thread).
  5. The new 3.9 tables were deleted using phpMyAdmin. (My suggestion).
  6. There was another attempt to upgrade to 3.9 which apparently succeeded.

So if the upgrade to 3.9 completed successfully in step 6. then the new 3.9 tables such as mdl_contentbank_content should have been created. If this table isn't there then that's concerning.

But you're correct: you would get "Error reading from database" if mdl_contentbank_content was missing.

So, can you confirm that mdl_contentbank_content is missing in phpMyAdmin? Are the other tables that were removed also still missing?


Re: Error DDL sql execution error (mod_h5pactivity)

$
0
0
by Benjamin Waller.  

Hello Leon,

These are my findings:
Tables missing:
mdl_badge_backpack_oauth2
mdl_contentbank_content
mdl_forum_grades
mdl_h5p
mdl_h5p_contents_libraries
mdl_h5p_libraries
mdl_h5p_libraries_cachedassets
mdl_h5p_library_dependencies

Tables present:
mdl_h5pactivity
mdl_h5pactivity_attempts
mdl_h5pactivity_attempts_results
mdl_quizaccess_seb_quizsettings
mdl_quizaccess_seb_template

Ben

Database Upgrade Failure when Installing Plugin

$
0
0
by Keith Sorbo.  

I have installed a number of plugins with no problems on my 3.9rc1 Moodle installaltion.

After copying the content of quizaccess_honestycheck_moodle31_2014111200.zip to mod/quiz/accessrule, running the Moodle notification, all dependencies show green, when I click install, it hangs when it reaches the update database screen with the following error:

quizaccess_honestycheck
XML database file errors found
Informasi selanjutnya mengenai kesalahan ini
×Debug info: Errors found in XMLDB file: PATH attribute does not match file directory: mod/quiz/accessrule/honestycheck/db
Error code: ddlxmlfileerror
×Stack trace:
line 354 of /lib/ddl/database_manager.php: ddl_exception thrown
line 370 of /lib/ddl/database_manager.php: call to database_manager->load_xmldb_file()
line 654 of /lib/upgradelib.php: call to database_manager->install_from_xmldb_file()
line 1917 of /lib/upgradelib.php: call to upgrade_plugins()
line 711 of /admin/index.php: call to upgrade_noncore()
I should note that the  folder mod/quiz/accessrule/honestycheck/db exists and the install.xml file is world readable.

I have posted in the git repository for the plugin. (https://github.com/moodleou/moodle-quizaccess_honestycheck/issues/7 ) The author suggests it is an installation problem. 

I have tried installing via direct copy and using the git clone command. I get the same error. 

Here is my directory listing after copying the plugin:

root@ubuntu-s-1vcpu-1gb-sgp1-01:/var/www/html/moodle# ll mod/quiz/accessrule/
total 68
drwxr-xr-x 12 www-data www-data 4096 Jun 23 19:32 ./
drwxr-xr-x 13 www-data www-data 4096 Jun 9 16:42 ../
-rwxr-xr-x 1 www-data www-data 13276 Jun 9 16:42 accessrulebase.php*
drwxr-xr-x 5 www-data www-data 4096 Jun 9 16:42 delaybetweenattempts/
drwxr-xr-x 8 root root 4096 Jun 23 19:32 honestycheck/ drwxr-xr-x 5 www-data www-data 4096 Jun 9 16:42 ipaddress/ drwxr-xr-x 5 www-data www-data 4096 Jun 9 16:42 numattempts/
drwxr-xr-x 5 www-data www-data 4096 Jun 9 16:42 offlineattempts/
drwxr-xr-x 5 www-data www-data 4096 Jun 9 16:42 openclosedate/
drwxr-xr-x 5 www-data www-data 4096 Jun 9 16:42 password/
drwxr-xr-x 8 www-data www-data 4096 Jun 9 16:42 seb/
drwxr-xr-x 5 www-data www-data 4096 Jun 9 16:42 securewindow/
drwxr-xr-x 5 www-data www-data 4096 Jun 9 16:42 timelimit/
-rwxr-xr-x 1 www-data www-data 600 Jun 9 16:42 upgrade.txt*


error/An error occurred whilst communicating with the server

$
0
0
by Judee Rallos.  

HELP ME. I have 1000 students and all of a sudden, i get this error on my moodle site. and I cannot login at all, even as an admin. all i ever get routed to is a page that says....


 error/An error occurred whilst communicating with the server


 What should I do??? It has been more than 12 hours. I am so devastated about this. please help me. I cannot even login to edit anything. My domain is: virtualassistant.university


 





 





 




Re: Upgrading Moodle to 3.9 stable

$
0
0
by James Steerpike.  

I also have my git directory in /opt/moodle. It is the recommendation for the location in the Ubuntu Step by Step guide in the Moodledocs.

There is also quite a detailed explanation which advocates using the /opt  directory and then copy files to the web root.  I haven't used git enough to know if the /opt or /var/www/html is best and used the webroot for a recent install.

Re: Error DDL sql execution error (mod_h5pactivity)

$
0
0
by Leon Stringer.  

Thanks Ben, I've had a look into this. When Moodle upgrades:

  1. for system tables and existing plugins it only attempts to create tables if they don't already exist;
  2. for new plugins (including core plugins that are part of Moodle) it performs install steps which assume tables do not already exist.

Because the upgrade has been continued after the error (rather than rolling the site back to 3.7) it's already beyond point 1. and is now installing the new plugin tables in step 2.

But because I'd said to remove both the new system and new plugin tables, only the plugin tables were recreated when the upgrade continued.

So, firstly apologies for the misleading advice. The correct advice should have been to delete the following tables only:

  • h5pactivity
  • h5pactivity_attempts
  • h5pactivity_attempts_results
  • quizaccess_seb_quizsettings
  • quizaccess_seb_template

And secondly, if you can please go ahead and restore the missing tables from the database backup:

  • badge_backpack_oauth2
  • contentbank_content
  • forum_grades
  • h5p
  • h5p_contents_libraries
  • h5p_libraries
  • h5p_libraries_cachedassets
  • h5p_library_dependencies

(These lists correspond with the ones you provided).

There's advice on StackOverflow on restoring individual tables from a MySQL/MariaDB backup file. The backup file is a text file therefore it's possible to create a copy and edit this copy so it only contains the required tables. But if advice is needed, please ask.

Re: error/An error occurred whilst communicating with the server

Re: Error DDL sql execution error (mod_h5pactivity)

$
0
0
by Leon Stringer.  

Broadly, yes. I'd start by checking whether you even need to change the MySQL/MariaDB settings. This can be done in phpMyAdmin by pasting the statement:

SHOW GLOBAL VARIABLES WHERE variable_name IN ('innodb_file_format', 'innodb_large_prefix', 'innodb_file_per_table')

into the SQL tab and click Go:

phpMyAdmin SHOW GLOBAL VARIABLES

The values needed for utf8mb4 are:


Variable name
Value
innodb_file_formatBarracuda
innodb_file_per_tableON
innodb_large_prefixON

You only need to make the changes to the MySQL/MariaDB server if any of these don't match. Different server OS types have the MySQL/MariaDB server configuration file in different locations. On my CentOS server it's in /etc/my.cnf.d/server.cnf. Your screenshot has an include for /etc/mysql/conf.d so check in there.

Once you have the above settings in place run:

php admin/cli/mysql_collation.php --collation=utf8mb4_unicode_ci

This can take some time, e.g. hours if the site is > 10 GB. Then run:

mysqlcheck -u root -p --auto-repair --optimize --all-databases

Then edit the site's config.php changing dbcollation:

$CFG->dboptions = array (

 ⋮
  'dbcollation' => 'utf8mb4_unicode_ci',
);

Then check the site's Environment report to confirm that the Full UTF-8 Support warning no longer appears.


SMTP configuration fail

$
0
0
by Roman K..  

Hey, I've a problem with a fresh installation of Moodle and have no idea how to debug it deeply. Results for now:

SMTP configuration fail. Mailer returns error like:

Your site couldn't communicate with your mail server. Please check your outgoing mail configuration.

in the logfile:

Failed to send an email from the user with id '2' to the user with id '-99' due to the following error: "SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting".

But:

1. tcpdump shows proper communication between hosts:

19:44:13.732734 IP 51.68.137.xxx.46558 > 136.143.190.56.587: Flags [S], seq 2090173467, win 64240, options [mss 1460,sackOK,TS val 421982294 ecr 0,nop,wscale 7], length 0

19:44:13.925996 IP 136.143.190.56.587 > 51.68.137.xxx.46558: Flags [S.], seq 2838453677, ack 2090173468, win 28960, options [mss 1360,sackOK,TS val 572882332 ecr 421982294,nop,wscale 7], length 0

2. The password is checked and correct.

3. Command line connection works:

echo QUIT | openssl s_client -starttls smtp -crlf -connect smtp.zoho.com:587
CONNECTED(00000005)
depth=2 C = US, O = DigiCert Inc, OU = www.digicert.com, CN = DigiCert Global Root CA
verify return:1
depth=1 C = US, O = DigiCert Inc, OU = www.digicert.com, CN = Thawte RSA CA 2018
verify return:1
depth=0 CN = *.zoho.com
verify return:1

++++++

Configuration:

Env: Moodle ver. 3.9+ (Build: 20200618), linux ubuntu, fresh installation, no IP firewalls.

mysql> select name,value from mdl_config where id between 379 and 385;
+----------------+-------------------------+
| name           | value                   |
+----------------+-------------------------+
| smtphosts      | smtp.zoho.com:587       |
| smtpsecure     | tls                     |
| smtpauthtype   | LOGIN                   |
| smtpuser       | user@domain.com     |
| smtppass       | somepass            |
| smtpmaxbulk    | 1                       |
| noreplyaddress | noreply@domain.com |
+----------------+-------------------------+
7 rows in set (0.00 sec)




Re: Upgrading Moodle to 3.9 stable

$
0
0
by Ken Task.  

The explanation kinda dependent upon whether op develops anything core or plugin related.  /opt/moodle is used for staging ... everything ... core code + any plugins ... and if one reads the step 5 paragraph that explains, says to add ignore's to .gitignore for non-core code.   Huh?

True that plugins can cause issues on upgrades ... but usually updates go ok.   I check all plugins via moosh script I have to see if there is a compat version if upgrading.   And run a code + DB dump backup just prior to update.

uhhhh ... all I want to do is update/upgrade core code.  That being the case, the /opt/moodle/ git work would be nothing more than testing git repo communications and acquisition of files via git.

So think I'll skip the /opt/moodle thang ... but ... to each their own! smile

'SoS', Ken


Installing Locale

$
0
0
by Keith Sorbo.  

I have read many different posts and tried many different things, but cannot get day-of-week and month names to translate into Indonesian.

Here is what I have done:

  1. In ubuntu (20.04) installed locale id_ID.utf8 
  2. In ubuntu set LANG="id_ID.UTF-8"
  3. In moodle set default language to $CFG->lang='id';
    NOTE, if I set language default in config.php to id_ID or id_ID.utf-8, I get error "Invalid current value" in the Admin->Language configuration page.  
  4. The MOODLEDATA/lang/ folder, contains subfolder 'id' where the Indonesian language files are located. (I am curious why the folder is id not id_ID or id_ID.utf-8??) I installed en_US and the folder name here is en_US. 
  5. MOODLEDATA/lang/id/langconfig.php has this line.
  6. $string['locale'] = 'id_ID.UTF-8';

This seems to incorporate all postings about this topic I have found. I don't know where else to look or what else to try. 

The only thing that comes to mind is that somehow there is a disconnect between the way the Indonesian langauge pack is named "id" with the locale I have installed "id_ID.utf-8"

Re: Installing Locale

$
0
0
by Keith Sorbo.  

Solved my problem.

It turns out that $CFG->lang must be the same as the folder name of the language pack. (In my case the folder was named id not id_ID or id_ID.utf-8). Else you will get an error.

However, adding
$CFG->locale='id_ID.utf-8'
solves the problem. And the dates render correctly whether English or Indonesian is selected.

Re: SMTP configuration fail

$
0
0
by Ken Task.  

Suggest installing a plugin to test

https://moodle.org/plugins/local_mailtest

Logfile you show is from DB and does point to phpMailer ... default if no smtp setup working.   Other test were also outside of Moodle.

Does server have logs for mail?   /var/logmaillog ... surely it has error log from web service.  Anything there?

What sort of checks does zoho do?   One of the items checkers will check is the from address ... like noreply@TRUEFQDN of moodle server is 'tuthful' as far as checkers go .... still might be a no-no with zoho, but ...

Have you looked at:

https://www.zoho.com/mail/help/guidelines-spam-control.html

Shows zoho will check SPF, DKIM, and DMARC records in DNS.

'SoS', Ken

Re: Error DDL sql execution error (mod_h5pactivity)

$
0
0
by Benjamin Waller.  

Hello Leon,

Thank you for your help with this.
I just want to check the command I will use is correct before i run it after reading the StackOverflow post.

This was the command I used to create a backup of that database.
mysqldump -u root -p bitnami_moodle > backup.sql

Therefore is the following command correct? and i guessing i will need to run it for each and every table?

$ sed -n -e '/CREATE TABLE.*`badge_backpack_oauth2`/,/CREATE TABLE/p' mysql.dump > badge_backpack_oauth2.dump

Thanks for your help.

Ben

Re: Error DDL sql execution error (mod_h5pactivity)

$
0
0
by Benjamin Waller.  

Hello Leon,

After running that SQL query I only get the following variable:

Variable_name          Value
innodb_file_per_table   ON

So not having the 2 other values, what is the next step?

Add these values to this file? /etc/mysql/conf.d

(When I open this file it is empty)

Variable name
Value
innodb_file_formatBarracuda
innodb_large_prefixON

Sorry if this is painfully laborious but I have ever had to do anything like this before. 
Cheers,
Ben


Odp: Re: SMTP configuration fail

$
0
0
by Roman K..  

Hi Ken, thanks for reply.

local_mailtest shows the same info: Moodle could not communicate with your mail server. Thats all..

> Does server have logs for mail?   /var/logmaillog ... surely it has error log from web service.  Anything there?

The server doesn't use any own services to send emails thats why server log files are empty. Moodle use phpmailer to send messages and via Moddle interface it's return error suggest communication problems (what don't exist because tcpdump shows it clearly). 

>What sort of checks does zoho do?   One of the items checkers will check is the from address ... like noreply@TRUEFQDN of moodle server is 'tuthful' as far as checkers go .... still might be a no-no with zoho, but ...

Zoho is working fine and on the same host I have Wordpress which works great with Zoho SMTP. Im sending mails from exist address with FQDN and all checks should be a problem by Zoho side. 

> Shows zoho will check SPF, DKIM, and DMARC records in DNS.

SPF/DKIM and DMARC are set for this domain.
 

Re: Upgrading Moodle to 3.9 stable

$
0
0
by James Steerpike.  

I raised it because I think the step by step guide is the best installation guide in the docs so it is the single page I always turn to. I have often wondered about the git step and on some recent installs I use the webroot. I think many will have git installed on /opt because of this instruction.

I  will have to have a play and see how the two approaches differ

Re: Database Upgrade Failure when Installing Plugin

Re: Odp: Re: SMTP configuration fail

$
0
0
by Ken Task.  

Looks like soho folks don't want to discuss:
https://help.zoho.com/portal/en/community/topic/errorinfo-smtp-connect-failed-https-github-com-phpmailer-phpmailer-wiki-troubleshooting

https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

"SMTP Error: Could not connect to SMTP host."

This may also appear as SMTP connect() failed, Called Mail() without being connected, Network is unreachable (101) in debug output. This is often reported as a PHPMailer problem, but it's almost always down to local DNS failure, firewall blocking

https://github.com/PHPMailer/PHPMailer/wiki/Improving-delivery-rates,-avoiding-spam-filters

https://pepipost.com/tutorials/phpmailer-smtp-error-could-not-connect-to-smtp-host/

?????

'SoS', Ken

Re: Upgrading Moodle to 3.9 stable

$
0
0
by Ken Task.  

Too many 'moving parts' for me.   As I read it, It's a combo of old way and git.

Assumption? is active moodle code directory could have code in it that's not moodle.   A programmer might do things as that describes, but am not.

Am all for keeping things simple ... my 2 cents.

'SoS', Ken

Viewing all 47048 articles
Browse latest View live


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