Delete and recreate fails


#1

Issuing a sudo ee site delete bottleandglass.net results in this:

Are you sure, you want to delete database [y/N]: n (NOTE: db creation failed so the db does not exist)

Are you sure, you want to delete webroot [y/N]: y

Deleting Webroot, /var/www/bottleandglass.net

Deleted webroot successfully

sudo ee site create bottleandglass.net --wpfc site bottleandglass.net already exists

Note that it never removes the Nginx config. I removed the entries in sites-available and sites-enabled and reloaded Nginx… still fails. This is 3.01


#2

@Rick_Gregory

try again with delete database as y.

FYI,

Latest EasyEngine calls cleanup actions, if it fails at any step. so that user can create site again easily.

can you please share your logs? cat /var/log/ee/ee.log


#3

Hi,

I’m also having the exact same error. Currently I’m using 3.1.9. Here’s my log from cat /var/log/ee/ee.log

2015-05-26 15:31:59,093 (DEBUG) ee : logging initialized for ‘ee’ using LoggingL ogHandler 2015-05-26 15:31:59,396 (DEBUG) ee : [’/usr/local/bin/ee’, ‘site’, ‘delete’, ‘fr eestockingsdaily.com’] 2015-05-26 15:31:59,396 (DEBUG) ee : collecting arguments/commands for <ee.cli.c ontrollers.base.EEBaseController object at 0x7f1551eea160> 2015-05-26 15:31:59,403 (DEBUG) ee : collecting arguments/commands for <ee.cli.p lugins.site.EESiteController object at 0x7f1551eea6a0> 2015-05-26 15:31:59,406 (DEBUG) ee : collecting arguments/commands for <ee.cli.p lugins.site.EESiteDeleteController object at 0x7f1551eeaba8> 2015-05-26 15:31:59,411 (INFO) ee : Initializing EasyEngine Database 2015-05-26 15:32:02,440 (INFO) ee : Deleting Database, None, user None 2015-05-26 15:32:02,443 (DEBUG) ee : 2015-05-26 15:32:02,443 (DEBUG) ee : dropping user None 2015-05-26 15:32:02,446 (DEBUG) ee : (1045, “#28000Access denied for user ‘root’ @‘localhost’ (using password: YES)”) 2015-05-26 15:32:02,446 (ERROR) ee : Error occured while deleting database


#4

@Ditto_Rahmat

looks like your cedentials are not for mysql root user. check your ~/.my.cnf for correct mysql credentials


#5

As I have the same issues (see other thread) I can say this is not the root cause. The password to access the WP DB is correct. Any other ideas what could be a reason?


#6

@jochenthomas

Is your database server local or remote?


#7

Hi, it’s local. Can access the DB on console with the password stored in my.cnf


#8

@jochenthomas

could you please proviide me logs for the same so that i can detect the issue?


#9

Hi Harshad,

I’ve updated the root password but still get error

2015-06-11 09:31:59,304 (DEBUG) ee : logging initialized for ‘ee’ using LoggingL ogHandler 2015-06-11 09:31:59,661 (DEBUG) ee : [’/usr/local/bin/ee’, ‘site’, ‘delete’, ‘sz syang.com’] 2015-06-11 09:31:59,661 (DEBUG) ee : collecting arguments/commands for <ee.cli.c ontrollers.base.EEBaseController object at 0x7f9d162b1f98> 2015-06-11 09:31:59,667 (DEBUG) ee : collecting arguments/commands for <ee.cli.p lugins.site.EESiteController object at 0x7f9d162bf6d8> 2015-06-11 09:31:59,670 (DEBUG) ee : collecting arguments/commands for <ee.cli.p lugins.site.EESiteDeleteController object at 0x7f9d162bf048> 2015-06-11 09:31:59,673 (INFO) ee : Initializing EasyEngine Database 2015-06-11 09:32:02,613 (INFO) ee : Deleting Database, None, user None 2015-06-11 09:32:02,615 (DEBUG) ee : 2015-06-11 09:32:02,615 (DEBUG) ee : dropping user None 2015-06-11 09:32:02,616 (ERROR) ee : Error occured while deleting database


#10

Ditto-

You need to create and delete sites using the same sudo user as when you installed easyengine. If you installed easy engine as root user you will continually run into problems. If this is the case I suggest starting fresh and making sure you install as a sudoer, not root.


#11

Hello @Rick_Gregory

It’s been a long time, and we haven’t heard from you. It looks like your issue is resolved.

I am closing this support topic for now. Feel free to create a new support topic if you have any queries further. :slight_smile:


#12