cachet icon indicating copy to clipboard operation
cachet copied to clipboard

Error while migrating

Open gustavomerini opened this issue 6 years ago • 2 comments

Hello,

I'm following this doc: https://hub.docker.com/r/cachethq/docker/ I'm using cachet-docker master and Cachet at v2.3.18, php 7.2. What version of laravel/composer should I use?

The build works successfully. When I execute docker-compose up the following error ocurs:

postgres_1 | ERROR: relation "chq_settings" does not exist at character 29

Stack trace:

merineira@merini:~/cachet-teste/cachet-docker$ docker-compose up Starting cachet-docker_postgres_1 ... done Recreating cachet-docker_cachet_1 ... done Attaching to cachet-docker_postgres_1, cachet-docker_cachet_1 cachet_1 | Initializing Cachet container ... postgres_1 | postgres_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization postgres_1 | postgres_1 | LOG: database system was shut down at 2020-02-17 17:22:46 UTC postgres_1 | LOG: MultiXact member wraparound protections are now enabled postgres_1 | LOG: autovacuum launcher started postgres_1 | LOG: database system is ready to accept connections cachet_1 | Attempting to connect to database ... cachet_1 | cachet_1 | Table chq_sessions does not exist! ... cachet_1 | Initializing Cachet database ... postgres_1 | ERROR: relation "chq_settings" does not exist at character 29 postgres_1 | STATEMENT: select "name", "value" from "chq_settings" cachet_1 | PHP Fatal error: Uncaught ErrorException: count(): Parameter must be an array or an object that implements Countable in /var/www/html/vendor/graham-campbell/exceptions/src/ExceptionIdentifier.php:51

Also, if I try to execute php artisian cachet:seed I got the error [PDOException, could not find driver]

gustavomerini avatar Feb 18 '20 13:02 gustavomerini

:wave: Thank you for opening your first issue. I'm just an automated bot that's here to help you get the information you need quicker, so please ignore this message if it doesn't apply to your issue. If you're looking for support, you should try the Slack group by registering your email address at https://cachethq-slack.herokuapp.com. Alternatively, email [email protected] for our Professional support service (please note, this a paid service.) If you're issue is with documentation, you can suggest edits by clicking the Suggest Edits link on any page, or open an issue at https://github.com/CachetHQ/Docs

welcome[bot] avatar Feb 18 '20 13:02 welcome[bot]

I managed to solve the problem, I was using incompatible versions (docker-cachet and Docker) Using both at 2.3 and now is up and running :+1:

gustavomerini avatar Feb 18 '20 16:02 gustavomerini