{"action":"created","issue":{"url":"https://api.github.com/repos/uzh/sushi/issues/3","repository_url":"https://api.github.com/repos/uzh/sushi","labels_url":"https://api.github.com/repos/uzh/sushi/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/uzh/sushi/issues/3/comments","events_url":"https://api.github.com/repos/uzh/sushi/issues/3/events","html_url":"https://github.com/uzh/sushi/issues/3","id":330672689,"node_id":"MDU6SXNzdWUzMzA2NzI2ODk=","number":3,"title":"Issue in installing SUSHI on Ubuntu","user":{"login":"dktanwar","id":8986859,"node_id":"MDQ6VXNlcjg5ODY4NTk=","avatar_url":"https://avatars2.githubusercontent.com/u/8986859?v=4","gravatar_id":"","url":"https://api.github.com/users/dktanwar","html_url":"https://github.com/dktanwar","followers_url":"https://api.github.com/users/dktanwar/followers","following_url":"https://api.github.com/users/dktanwar/following{/other_user}","gists_url":"https://api.github.com/users/dktanwar/gists{/gist_id}","starred_url":"https://api.github.com/users/dktanwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dktanwar/subscriptions","organizations_url":"https://api.github.com/users/dktanwar/orgs","repos_url":"https://api.github.com/users/dktanwar/repos","events_url":"https://api.github.com/users/dktanwar/events{/privacy}","received_events_url":"https://api.github.com/users/dktanwar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-08T14:07:23Z","updated_at":"2018-06-15T07:51:44Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI have successfully carried out all the steps of installation, as explained in [README](https://github.com/uzh/sushi/blob/master/README.rdoc) When I am starting the SUSHI server with `bundle exec rails server -e production` command, I am getting following error:\r\n\r\n```\r\nubuntu@sushi:~/sushi/master$ sudo bundle exec rails server -e production\r\n=> Booting Thin\r\n=> Rails 4.2.10 application starting in production on http://localhost:3000\r\n=> Run `rails server -h` for more startup options\r\n=> Ctrl-C to shutdown server\r\nExiting\r\nTraceback (most recent call last):\r\n\t58: from script/rails:6:in `<main>'\r\n\t57: from script/rails:6:in `require'\r\n\t56: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/commands.rb:17:in `<top (required)>'\r\n\t55: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:39:in `run_command!'\r\n\t54: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:75:in `server'\r\n\t53: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:75:in `tap'\r\n\t52: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:80:in `block in server'\r\n\t51: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/commands/server.rb:80:in `start'\r\n\t50: from /var/lib/gems/2.5.0/gems/rack-1.6.10/lib/rack/server.rb:273:in `start'\r\n\t49: from /var/lib/gems/2.5.0/gems/rack-1.6.10/lib/rack/server.rb:337:in `wrapped_app'\r\n\t48: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/commands/server.rb:61:in `app'\r\n\t47: from /var/lib/gems/2.5.0/gems/rack-1.6.10/lib/rack/server.rb:209:in `app'\r\n\t46: from /var/lib/gems/2.5.0/gems/rack-1.6.10/lib/rack/server.rb:300:in `build_app_and_options_from_config'\r\n\t45: from /var/lib/gems/2.5.0/gems/rack-1.6.10/lib/rack/builder.rb:40:in `parse_file'\r\n\t44: from /var/lib/gems/2.5.0/gems/rack-1.6.10/lib/rack/builder.rb:49:in `new_from_string'\r\n\t43: from /var/lib/gems/2.5.0/gems/rack-1.6.10/lib/rack/builder.rb:49:in `eval'\r\n\t42: from /home/ubuntu/sushi/master/config.ru:in `<main>'\r\n\t41: from /home/ubuntu/sushi/master/config.ru:in `new'\r\n\t40: from /var/lib/gems/2.5.0/gems/rack-1.6.10/lib/rack/builder.rb:55:in `initialize'\r\n\t39: from /var/lib/gems/2.5.0/gems/rack-1.6.10/lib/rack/builder.rb:55:in `instance_eval'\r\n\t38: from /home/ubuntu/sushi/master/config.ru:3:in `block in <main>'\r\n\t37: from /var/lib/gems/2.5.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `require'\r\n\t36: from /var/lib/gems/2.5.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in `load_dependency'\r\n\t35: from /var/lib/gems/2.5.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `block in require'\r\n\t34: from /var/lib/gems/2.5.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `require'\r\n\t33: from /home/ubuntu/sushi/master/config/environment.rb:5:in `<top (required)>'\r\n\t32: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/railtie.rb:194:in `method_missing'\r\n\t31: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/railtie.rb:194:in `public_send'\r\n\t30: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/application.rb:352:in `initialize!'\r\n\t29: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/initializable.rb:54:in `run_initializers'\r\n\t28: from /usr/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'\r\n\t27: from /usr/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'\r\n\t26: from /usr/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'\r\n\t25: from /usr/lib/ruby/2.5.0/tsort.rb:347:in `call'\r\n        53: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:75:in `tap'\r\n        52: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:80:in `block in server'\r\n        51: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/commands/server.rb:80:in `start'\r\n        50: from /var/lib/gems/2.5.0/gems/rack-1.6.10/lib/rack/server.rb:273:in `start'\r\n        49: from /var/lib/gems/2.5.0/gems/rack-1.6.10/lib/rack/server.rb:337:in `wrapped_app'\r\n        48: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/commands/server.rb:61:in `app'\r\n        47: from /var/lib/gems/2.5.0/gems/rack-1.6.10/lib/rack/server.rb:209:in `app'\r\n        46: from /var/lib/gems/2.5.0/gems/rack-1.6.10/lib/rack/server.rb:300:in `build_app_and_options_from_config'\r\n        45: from /var/lib/gems/2.5.0/gems/rack-1.6.10/lib/rack/builder.rb:40:in `parse_file'\r\n        44: from /var/lib/gems/2.5.0/gems/rack-1.6.10/lib/rack/builder.rb:49:in `new_from_string'\r\n        43: from /var/lib/gems/2.5.0/gems/rack-1.6.10/lib/rack/builder.rb:49:in `eval'\r\n        42: from /home/ubuntu/sushi/master/config.ru:in `<main>'\r\n        41: from /home/ubuntu/sushi/master/config.ru:in `new'\r\n        40: from /var/lib/gems/2.5.0/gems/rack-1.6.10/lib/rack/builder.rb:55:in `initialize'\r\n        39: from /var/lib/gems/2.5.0/gems/rack-1.6.10/lib/rack/builder.rb:55:in `instance_eval'\r\n        38: from /home/ubuntu/sushi/master/config.ru:3:in `block in <main>'\r\n        37: from /var/lib/gems/2.5.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `require'\r\n        36: from /var/lib/gems/2.5.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in `load_dependency'\r\n        35: from /var/lib/gems/2.5.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `block in require'\r\n        34: from /var/lib/gems/2.5.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `require'\r\n        33: from /home/ubuntu/sushi/master/config/environment.rb:5:in `<top (required)>'\r\n        32: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/railtie.rb:194:in `method_missing'\r\n        31: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/railtie.rb:194:in `public_send'\r\n        30: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/application.rb:352:in `initialize!'\r\n        29: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/initializable.rb:54:in `run_initializers'\r\n        28: from /usr/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'\r\n        27: from /usr/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'\r\n        26: from /usr/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'\r\n        25: from /usr/lib/ruby/2.5.0/tsort.rb:347:in `call'\r\n        24: from /usr/lib/ruby/2.5.0/tsort.rb:347:in `each'\r\n        23: from /usr/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'\r\n        22: from /usr/lib/ruby/2.5.0/tsort.rb:415:in `each_strongly_connected_component_from'\r\n        21: from /usr/lib/ruby/2.5.0/tsort.rb:415:in `call'\r\n        20: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/initializable.rb:44:in `tsort_each_child'\r\n        19: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/initializable.rb:44:in `each'\r\n        18: from /usr/lib/ruby/2.5.0/tsort.rb:421:in `block in each_strongly_connected_component_from'\r\n        17: from /usr/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'\r\n        16: from /usr/lib/ruby/2.5.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'\r\n        15: from /usr/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'\r\n        14: from /usr/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'\r\n        13: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/initializable.rb:55:in `block in run_initializers'\r\n        12: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/initializable.rb:30:in `run'\r\n        11: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/initializable.rb:30:in `instance_exec'\r\n        10: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/engine.rb:615:in `block in <class:Engine>'\r\n         9: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/engine.rb:615:in `each'\r\n         8: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'\r\n         7: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/engine.rb:651:in `load_config_initializer'\r\n         6: from /var/lib/gems/2.5.0/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument'\r\n         5: from /var/lib/gems/2.5.0/gems/railties-4.2.10/lib/rails/engine.rb:652:in `block in load_config_initializer'\r\n         4: from /var/lib/gems/2.5.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:268:in `load'\r\n         3: from /var/lib/gems/2.5.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in `load_dependency'\r\n         2: from /var/lib/gems/2.5.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:268:in `block in load'\r\n         1: from /var/lib/gems/2.5.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:268:in `load'\r\n/home/ubuntu/sushi/master/config/initializers/devise.rb:1:in `<top (required)>': undefined local variable or method `config' for main:Object (NameError)\r\n```"},"comment":{"url":"https://api.github.com/repos/uzh/sushi/issues/comments/397542922","html_url":"https://github.com/uzh/sushi/issues/3#issuecomment-397542922","issue_url":"https://api.github.com/repos/uzh/sushi/issues/3","id":397542922,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzU0MjkyMg==","user":{"login":"masaomi-hatakeyama","id":26854892,"node_id":"MDQ6VXNlcjI2ODU0ODky","avatar_url":"https://avatars2.githubusercontent.com/u/26854892?v=4","gravatar_id":"","url":"https://api.github.com/users/masaomi-hatakeyama","html_url":"https://github.com/masaomi-hatakeyama","followers_url":"https://api.github.com/users/masaomi-hatakeyama/followers","following_url":"https://api.github.com/users/masaomi-hatakeyama/following{/other_user}","gists_url":"https://api.github.com/users/masaomi-hatakeyama/gists{/gist_id}","starred_url":"https://api.github.com/users/masaomi-hatakeyama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masaomi-hatakeyama/subscriptions","organizations_url":"https://api.github.com/users/masaomi-hatakeyama/orgs","repos_url":"https://api.github.com/users/masaomi-hatakeyama/repos","events_url":"https://api.github.com/users/masaomi-hatakeyama/events{/privacy}","received_events_url":"https://api.github.com/users/masaomi-hatakeyama/received_events","type":"User","site_admin":false},"created_at":"2018-06-15T07:51:44Z","updated_at":"2018-06-15T07:51:44Z","author_association":"COLLABORATOR","body":"The followings are my command log on Debian (not Ubuntu):\r\n$ uname -a\r\nLinux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64 GNU/Linux\r\n\r\n$ ruby -v\r\nruby 2.4.3p205 (2017-12-14 revision 61247) [x86_64-linux]\r\n\r\n$ git --version\r\ngit version 2.1.4\r\n\r\n$ bundle --version\r\nBundler version 1.16.1\r\n\r\n$ git clone https://github.com/uzh/sushi.git\r\n$ cd sushi/master/\r\n$ bundle install --path vendor/bundle\r\n$ bundle exec rake secret\r\nxxxx\r\n$ vim config/initializers/devise.rb\r\n(edit)\r\n$ tail -n 2 config/initializers/devise.rb\r\n  config.secret_key = \"xxx\"\r\nend\r\n$ bundle exec rake db:migrate RAILS_ENV=production\r\n\r\n$ mkdir workflow_manager\r\n$ cd workflow_manager/\r\n$ bundle exec workflow_manager -m development\r\nversion = 0.4.1\r\nmode = development\r\nDB = PStore\r\nCluster = LocalComputer\r\ndruby://localhost:12345\r\n\r\n(back to sushi/ directory in another terminal)\r\n$ bundle exec rails server -e production\r\n=> Booting Thin\r\n=> Rails 4.2.10 application starting in production on http://localhost:3000\r\n=> Run `rails server -h` for more startup options\r\n=> Ctrl-C to shutdown server\r\nThin web server (v1.7.2 codename Bachmanity)\r\nMaximum connections set to 1024\r\nListening on localhost:3000, CTRL+C to stop\r\n------\r\n\r\nThe \r\n`\r\nconfig.secret_key = \"xxx\" \r\n`\r\nshould be written in config/initilizers/devise.rb between\r\n`\r\nDevise.setup do |config|\r\n  ...\r\n  # here at the end\r\nend\r\n`\r\n"}}
{"actor":{"display_login":"masaomi-hatakeyama"}}