apache - Intermittent errors with new code release to existing Mojolicious app -


i'm having problem existing mojolicous app. have added new routes, views, controllers, , models, , returning database results view using rose::db::object orm.

i updated production version today code had been working great on morbo. but, on apache2/plack/psgi mod_perl config new models returning queries 1 in 5 1 in 10 times.

i've eliminated number of variables, can query database directly , results no problem. older model's , queries work.

it appears new functionality intermittent. have narrowed requests 1 server , have restarted apache. but, @ point don't understand why issue persisting.

i think kind of mod_perl wonky behavior, don't know why apache restart doesn't fix it.

any or ideas awesome.

i did resolve , turned out simple. missing use statement controller in main application script. script setup routes. i'm not sure understand why working intermittently in production , working time in development. but, once added:

use theapp::controller::tags; in main app pm worked consistently.

in retrospect feels should have figured out sooner, fact worked part of time led me down wrong path. else sometime.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -