Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Error when adding park domain

Discussion in 'General Discussion' started by Faw, Aug 24, 2017.

  1. Faw

    Faw Registered

    Joined:
    Aug 24, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Mau
    cPanel Access Level:
    Root Administrator
    Hi all,

    I am getting below errors when creating an addon domain.
    Code:
    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
     
    #1 Faw, Aug 24, 2017
    Last edited by a moderator: Aug 24, 2017
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    562
    Likes Received:
    40
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Do you notice any error messages when restart the mysql service ?
     
  3. Faw

    Faw Registered

    Joined:
    Aug 24, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Mau
    cPanel Access Level:
    Root Administrator
    Hi SysSachin,

    I am using MariaDB on centOS 7.
     
  4. Faw

    Faw Registered

    Joined:
    Aug 24, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Mau
    cPanel Access Level:
    Root Administrator
    No errors on restart. Do i need to configure/enable sqlite?
     
  5. Faw

    Faw Registered

    Joined:
    Aug 24, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Mau
    cPanel Access Level:
    Root Administrator
    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/.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,080
    Likes Received:
    1,364
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page