The system could not create the calendar error

Chattr

Registered
Aug 25, 2010
1
0
51
Hello,

How can I recreate storage.sqlite file in /home/user/.subaccounts. A user removed the file and now creating an email account leads to this error.
Code:
Error: The operation “POST” “/cpsess1063816560/execute/Email/add_pop” failed with a “The system could not create the calendar “Calendar” for “[email protected]”: Cpanel::Exception::Database::Error/(XID k2mt8p) The system received an error from “SQLite”: SQLITE_ERROR (no such table: kronolith_shares) at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 336. Cpanel::Exception::create("Database::Error", ARRAY(0x3319dc0)) called at /usr/local/cpanel/Cpanel/DBI.pm line 200 Cpanel::DBI::_create_exception(Cpanel::DBI::db=HASH(0x3319220), "DBD::SQLite::db selectrow_hashref failed: no such table: kron"..., undef) called at /usr/local/cpanel/Cpanel/DBI.pm line 188 Cpanel::DBI::_error_handler("DBD::SQLite::db selectrow_hashref failed: no such table: kron"..., Cpanel::DBI::db=HASH(0x3319220), undef) called at /usr/local/cpanel/Cpanel/DAV/Backend/DB/Horde.pm line 94 eval {...} called at /usr/local/cpanel/Cpanel/DAV/Backend/DB/Horde.pm line 94 Cpanel::DAV::Backend::DB::Horde::select_one(Cpanel::DBI::db=HASH(0x3319220), " SELECT * FROM kronolith_shares\x{a} WHERE attribute_name ="..., "Calendar", "test\@test.com") called at /usr/local/cpanel/Cpanel/DAV/Backend/HordeCalendar.pm line 57 Cpanel::DAV::Backend::HordeCalendar::create_calendar(Cpanel::DAV::Principal=HASH(0x2ce1a70), "Calendar", "This is your personal calendar.") called at /usr/local/cpanel/Cpanel/DAV/Calendars.pm line 58 Cpanel::DAV::Calendars::create_calendar(Cpanel::DAV::Principal=HASH(0x2ce1a70), "Calendar", "This is your personal calendar.") called at /usr/local/cpanel/Cpanel/DAV/Defaults.pm line 58 Cpanel::DAV::Defaults::create_calendar(Cpanel::DAV::Principal=HASH(0x2ce1a70)) called at /usr/local/cpanel/Cpanel/DAV/Defaults.pm line 139 Cpanel::DAV::Defaults::create_calendars_and_address_books("test\@test.com") called at /usr/local/cpanel/Cpanel/API/Email.pm line 1140 Cpanel::API::Email::add_pop(Cpanel::Args=HASH(0x2cdd668), Cpanel::Result=HASH(0x2cb1b40)) called at /usr/local/cpanel/Cpanel/API.pm line 276 Cpanel::API::__ANON__() called at /usr/local/cpanel/Cpanel/API.pm line 348 eval {...} called at /usr/local/cpanel/Cpanel/API.pm line 348 Cpanel::API::_eval_guard(Cpanel::Result=HASH(0x2cb1b40), CODE(0x2cdd8d8)) called at /usr/local/cpanel/Cpanel/API.pm line 276 Cpanel::API::_run_module_function(Cpanel::Args=HASH(0x2cdd668), Cpanel::Result=HASH(0x2cb1b40), "Email", "add_pop") called at /usr/local/cpanel/Cpanel/API.pm line 139 Cpanel::API::execute("Email", "add_pop", HASH(0x2caf518)) called at /usr/local/cpanel/Cpanel/API.pm line 547 Cpanel::API::run_api_mode(HASH(0x2caf518)) called at uapi.pl line 266 main::script() called at uapi.pl line 85 ” error.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello @Chattr,

You can recreate that file using the following command:

Code:
/scripts/upgrade_subaccount_databases --user=user123
Replace "user123" with the username that needs the file.

Thank you.