# Unable to use Thor commands?

**URL:** <https://discuss.dradis.com/t/unable-to-use-thor-commands/442>\
**Category:** uncategorized\
**Created:** [March 29, 2017, 1:55pm UTC](https://discuss.dradis.com/t/unable-to-use-thor-commands/442 "2017-03-29T13:55:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kalaratri](https://avatars.discourse-cdn.com/v4/letter/k/8797f3/32.png) [@Kalaratri](https://discuss.dradis.com/u/Kalaratri)\
**Post date:** [March 29, 2017, 1:55pm UTC](https://discuss.dradis.com/t/unable-to-use-thor-commands/442/1 "2017-03-29T13:55:22Z")

</div>

So I was trying to use the thor command line to upload a metasploit import and I get this output:

So far everything else seems to be working OK. What implications does this have and how can this be resolved?

## RAILS\_ENV=production bundle exec thor -T DEPRECATION WARNING: before\_filter is deprecated and will be removed in Rails 5.1. Use before\_action instead. (called from \<top (required)\> at /opt/dradis-ce/config/application.rb:16) DEPRECATION WARNING: before\_filter is deprecated and will be removed in Rails 5.1. Use before\_action instead. (called from \<top (required)\> at /opt/dradis-ce/config/application.rb:16) WARNING: unable to load thorfile “/opt/dradis-ce/Thorfile”: uninitialized constant Rack::Session::Abstract::Persisted /var/lib/gems/2.3.0/gems/actionpack-5.0.1/lib/action\_dispatch/middleware/session/abstract\_store.rb:90:in `module:Session’ dradis

thor dradis:backup # creates a backup of your current repository  
thor dradis:logs:clean DAYS # delete all logs older than DAYS days (default 7)  
thor dradis:reset # resets your local dradis repository  
thor dradis:reset:attachments # removes all attachments  
thor dradis:reset:database # removes all data from a dradis repository, except …  
thor dradis:reset:logs # removes all log files  
thor dradis:reset:password # Set a new shared password to access the web interface  
thor dradis:server # start dradis server  
thor dradis:setup:configure # Creates the Dradis configuration files from their …  
thor dradis:setup:migrate # ensures the database schema is up-to-date  
thor dradis:setup:seed # adds initial values to the database (i.e., categor…  
thor dradis:version # displays the version of the dradis server

## root

rails generate base [options] # Description: Create rails files for bas…  
rails generate named\_base NAME [options] # Description: Create rails files for nam…

Investigating the ruby file this line is throwing the exception:

/var/lib/gems/2.3.0/gems/actionpack-5.0.1/lib/action\_dispatch/middleware/session/abstract\_store.rb

Line 90:  
class AbstractStore \< Rack::Session::Abstract::Persisted

The Thorfile is sitting right there in the directory

Ideas?

---

<div class="post-metadata">

**Author:** ![Kalaratri](https://avatars.discourse-cdn.com/v4/letter/k/8797f3/32.png) [@Kalaratri](https://discuss.dradis.com/u/Kalaratri)\
**Post date:** [March 30, 2017, 10:35am UTC](https://discuss.dradis.com/t/unable-to-use-thor-commands/442/2 "2017-03-30T10:35:18Z")

</div>

OK, so sorted this one. Looks like it’s critical to run bundle exec rake resque:work from the /usr/lib/dradis/ path, otherwise it would use incompatible gems
