Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid type: logstash #125

Closed
missnebun opened this issue Jun 1, 2017 · 7 comments
Closed

Invalid type: logstash #125

missnebun opened this issue Jun 1, 2017 · 7 comments

Comments

@missnebun
Copy link

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
Copy link
Contributor

kiwiz commented Jun 2, 2017

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

@missnebun
Copy link
Author

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
Copy link
Contributor

kiwiz commented Jun 2, 2017

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
Copy link
Author

Looks like that fixed the problem.
Thank you Kai.

@kiwiz
Copy link
Contributor

kiwiz commented Jun 2, 2017

Glad that worked for you. ⭐️

@kiwiz kiwiz closed this as completed Jun 2, 2017
@missnebun
Copy link
Author

missnebun commented Jun 2, 2017

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

@kiwiz
Copy link
Contributor

kiwiz commented Jun 2, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants