Problems, need help? Have a tip or advice? Post it here.
6 posts Page 1 of 1
Hi, when I moved my site from localhost to my server, copied db, changed config.php etc I need to install it. After filling login etc in next step I get


Installation failed!

Table "couch_comments" already exists


That is first time when it not working. What to do?
Looks like Couch doesn't know that db is already there. To proceed with current setup you have to wipe out the database, unfortunately. This is when data about your server is different in some database fields.
There is always a better way of doing migration properly. Use gen_dump and install couch in line with this tutorial. You'll be up and running in no time.
http://docs.couchcms.com/miscellaneous/ ... erver.html
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Hi,

I'm assuming, as @trendoman suggested, you are using the method of deployment described at http://docs.couchcms.com/miscellaneous/ ... erver.html and so you have the 'install_ex.php' file in place on the target server.

With that assumption, I'd suggest you please edit the couch/config.php file and make the following change - Find this line
// 7b.
// Needed only if multiple instances of this CMS are to be installed in the same database
// (please use only alphanumeric characters, hyphen or underscore)
define( 'K_DB_TABLES_PREFIX', '' );

And add a value (any value) as the prefix. For example make it as follows -
define( 'K_DB_TABLES_PREFIX', 'new_' );

With that change, access the admin panel again to start the installation and now, hopefully, you shouldn't encounter the problem you mentioned.

Do let us know how it goes.
but why I need to reinstall couch?
What if I need to move couch with filled cms? Like I said before, prev moving site was everything I need to do. Strange ;)
but why I need to reinstall couch?
What if I need to move couch with filled cms?

The method described at http://docs.couchcms.com/miscellaneous/ ... erver.html actually does exactly that i.e. "moves the filled cms".

It is not clear from your original post so may I ask if you could confirm you are indeed using the aforementioned method of trying some other way to migrate the site?
Yup.
The described way is *exactly* crafted for moving couch with *filled* data. It includes everything (though images you'd still want to upload by yourself).

Reinstallation with 'new_' prefix is suggested, as there is some misunderstading with database as you described in post. We don't know what is going on there, but the simplest thing is for Couch to do it again, not overwriting problematic fields, but instead write new fresh and working set of data beside old one, by using prefix.

Also, I don't understand exactly what you mean by 'copy database'. And being blind here about your configs and environment, we can only suggest the old good way of migration, with no hassle and with preservation of all data fields stored in CMS.
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
6 posts Page 1 of 1