etsy / 411

An Alert Management Web Application
https://demo.fouroneone.io
MIT License
971 stars 112 forks source link

Invalid type: logstash #125

Closed missnebun closed 7 years ago

missnebun commented 7 years ago

Not sure what is wrong with this ...

/var/www/411/bin/cron.php && /var/www/411/bin/worker.php [+] Scheduler: 1496356626 [+] Maintenance [+] Search Health [+] Rollups [+] Searches PHP Fatal error: Uncaught OutOfBoundsException: Invalid type: logstash in /var/www/411/phplib/TypeModel.php:73 Stack trace:

0 /var/www/411/phplib/TypeModel.php(115): FOO\TypeModel::newObject('logstash', Array)

1 /var/www/411/phplib/Model.php(581): FOO\TypeModelFinder::construct(Array)

2 /var/www/411/phplib/Model.php(516): FOO\ModelFinder::hydrateModels(Array)

3 /var/www/411/phplib/Scheduler.php(221): FOO\ModelFinder::getByQuery(Array)

4 /var/www/411/phplib/Scheduler.php(154): FOO\Scheduler->processSearches(1496356626, Array, false)

5 /var/www/411/bin/cron.php(45): FOO\Scheduler->processSite(Object(FOO\Site), 1496356626, false)

6 {main}

thrown in /var/www/411/phplib/TypeModel.php on line 73 err [411_Scheduler] Scheduler error site:[1] ret:[65280] [+] Worker [+] Worker: 1496356636 [+] Job count: 0

kiwiz commented 7 years ago

Have you run the bin/migration.php script to update the DB?

missnebun commented 7 years ago

I did restore the DB from backup and I did run bin/migration.php and I get Migrating from 1.3.3 to 1.3.3 ... but the DB version I think was from a different version. How can I check the DB version ?

kiwiz commented 7 years ago

Try opening up version.txt and replacing the version number with 1.1.1. Then try running bin/migration.php and lemme know if that works!

missnebun commented 7 years ago

Looks like that fixed the problem. Thank you Kai.

kiwiz commented 7 years ago

Glad that worked for you. ⭐️

missnebun commented 7 years ago

When I try to add a user I get: SQLSTATE[HY000]: General error: 1 table users has no column named api_key

kiwiz commented 7 years ago

Try the same steps with versions 1.0.0 and 1.0.1. You'll likely get errors, but the DB updates should still work.