我正在使用有状态的数据库集在 kubernetes 上运行 moodle。
Moodle version : $version = 2018120303.14; // 20181203 = branching date YYYYMMDD - do not modify!
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.
$release = '3.6.3+ (Build: 20190501)'; // Human-friendly version name
$branch = '36'; // This version's branch.
$maturity = MATURITY_STABLE; // This version's maturity level.
写入数据库时出错有关此错误的其他信息
Debug info: Duplicate entry '1-12345678900' for key 'mdl_user_mneuse_uix'
INSERT INTO mdl_user (city,auth,policyagreed,idnumber,username,password,firstname,lastname,email,lang,confirmed,lastip,timecreated,timemodified,mnethostid) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
[array (
0 => '',
1 => 'wp2moodle',
2 => 1,
3 => '1584',
4 => '12345678900',
5 => 'a803bc70a48ce4568a9e85f7e1e30c58',
6 => 'Pedro',
7 => 'Marinelli',
8 => 'pedromarinelli@email.com',
9 => 'pt_br',
10 => 1,
11 => '177.192.193.143',
12 => 1537303059,
13 => 1537303059,
14 => '1',
)]
错误代码:dmlwriteexception
堆栈跟踪:/lib/dml/moodle_database.php 的第 489 行:dml_write_exception 抛出了 /lib/dml/mysqli_native_moodle_database.php 的第 1329 行:调用 moodle_database->query_end() 的 /lib/dml/mysqli_native_moodle_database.php 的第 1375 行:调用到 /auth/wp2moodle/login.php 的 mysqli_native_moodle_database->insert_record_raw() 第 232 行:调用 mysqli_native_moodle_database->insert_record()