Error when adding park domain
Hi all,
I am getting below errors when creating an addon domain.
Please help. Thanks
Cpanel::Exception::Database::ConnectError/(XID 9uwtek) The system failed to connect to the "SQLite" database "/var/cpanel/bandwidth/user.sqlite.creating.Thu Aug 24 16:16:22 2017.21940.0.305734411654161" because of an error: SQLITE_CANTOPEN (unable to open database file) at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 330. Cpanel::Exception::create("Database::ConnectError", ARRAY(0x32e1598)) called at /usr/local/cpanel/Cpanel/DBI.pm line 92 Cpanel::DBI::__ANON__(__CPANEL_HIDDEN__...) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 122 Try::Tiny::try(CODE(0x31d65f0), Try::Tiny::Catch=REF(0x3223618)) called at /usr/local/cpanel/Cpanel/DBI.pm line 104 Cpanel::DBI::connect("Cpanel::DBI::SQLite", "dbi:SQLite:dbname=/var/cpanel/bandwidth/user.sqlite.creati"..., undef, undef, HASH(0x31be4c0)) called at /usr/local/cpanel/Cpanel/DBI/SQLite.pm line 59 Cpanel::DBI::SQLite::_connect("Cpanel::DBI::SQLite", undef, undef, HASH(0x31bfa30)) called at /usr/local/cpanel/Cpanel/DBI/ConnectUsesHash.pm line 35 Cpanel::DBI::ConnectUsesHash::connect("Cpanel::DBI::SQLite", HASH(0x32e17f0)) called at /usr/local/cpanel/Cpanel/FileUtils/RaceSafe/SQLite.pm line 77 Cpanel::FileUtils::RaceSafe::SQLite::_create_file(Cpanel::FileUtils::RaceSafe::SQLite=HASH(0x3223360), "/var/cpanel/bandwidth/user.sqlite.creating.Thu Aug 24 16:1"..., "path", "/var/cpanel/bandwidth/user.sqlite") called at /usr/local/cpanel/Cpanel/FileUtils/RaceSafe/Base.pm line 102 Cpanel::FileUtils::RaceSafe::Base::new("Cpanel::FileUtils::RaceSafe::SQLite", "path", "/var/cpanel/bandwidth/user.sqlite") called at /usr/local/cpanel/Cpanel/BandwidthDB/Create.pm line 134 Cpanel::BandwidthDB::Create::_create_dbh(Cpanel::BandwidthDB::Create=HASH(0x31ba748)) called at /usr/local/cpanel/Cpanel/BandwidthDB/Base.pm line 33 Cpanel::BandwidthDB::Base::new("Cpanel::BandwidthDB::Create", "user") called at /usr/local/cpanel/Cpanel/BandwidthDB/Read.pm line 86 Cpanel::BandwidthDB::Read::new("Cpanel::BandwidthDB::Create", "user") called at /usr/local/cpanel/Cpanel/BandwidthDB/Write.pm line 43 Cpanel::BandwidthDB::Write::new("Cpanel::BandwidthDB::Create", "user") called at /usr/local/cpanel/Cpanel/BandwidthDB/Create.pm line 118 Cpanel::BandwidthDB::Create::new("Cpanel::BandwidthDB::Create", "user") called at /usr/local/cpanel/Cpanel/BandwidthDB.pm line 119 Cpanel::BandwidthDB::_create_and_import("user") called at /usr/local/cpanel/Cpanel/BandwidthDB.pm line 186 Cpanel::BandwidthDB::_instantiate_for_root(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__) called at /usr/local/cpanel/Cpanel/BandwidthDB.pm line 104 Cpanel::BandwidthDB::get_writer("user") called at /usr/local/cpanel/Cpanel/Sub.pm line 234 Cpanel::Sub::addsubdomain(__CPANEL_HIDDEN__, 0, __CPANEL_HIDDEN__, 1, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, ...) called at bin/admin/Cpanel/domain.pl line 198 main::__ANON__() called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 97 eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 92 Try::Tiny::try(CODE(0x316a748), Try::Tiny::Catch=REF(0x1ad9be8)) called at bin/admin/Cpanel/domain.pl line 211
Please help. Thanks
-
Hello, Do you notice any error messages when restart the mysql service ? 0 -
Hi SysSachin, I am using MariaDB on centOS 7. 0 -
No errors on restart. Do i need to configure/enable sqlite? 0 -
I managed to fix the issue. The system was not able to write the content for the user as the folder "Bandwidth" was missing in /var/cpanel/. 0 -
I managed to fix the issue. The system was not able to write the content for the user as the folder "Bandwidth" was missing in /var/cpanel/.
Hello, I'm happy to see you were able to solve the issue. Note that we do have an internal case open (CPANEL-14343) to address the issue where adding subdomains or addon domains fails when the /var/cpanel/bandwidth/ directory does not exist. I'll monitor this case and update this thread with more information as it becomes available. Thank you.0
Please sign in to leave a comment.
Comments
5 comments