[URGENT] Sphinx don't work anymore

Hi !
I recently update my system but now, the search don’t work anymore,

I also just add the line
external_search_in_use: true

And activate the distance search but after seeing that nothing works anymore, I’ll remove all changes and search don’t come back (I don’t check if it was working before the config change).

Do you know what can be the issue ?

Nobody have a solution ? :confused:

For Sphinx, you should leave in config.yml:

external_search_in_use: false

Then restart rails server to apply config changes, and optionally ensure that sphinx is running with

rake ts:rebuild

1 Like

Restart sphinx and server it will work :slight_smile: cheers

Thank you but I have a new bug now,
mai 31 04:08:50 185-163-125-47.onetsolutions.network sharetri3[10500]: /usr/local/rvm/gems/ruby- 2.3.4/gems/rack-2.0.4/li
mai 31 04:08:50 185-163-125-47.onetsolutions.network sharetri3[10500]: config.ru:1:in new' mai 31 04:08:50 185-163-125-47.onetsolutions.network sharetri3[10500]: config.ru:1:in
mai 31 04:08:50 185-163-125-47.onetsolutions.network sharetri3[10500]: /usr/local/rvm/gems/ruby-2.3.4/gems/passenger-5.1
mai 31 04:08:50 185-163-125-47.onetsolutions.network sharetri3[10500]: /usr/local/rvm/gems/ruby-2.3.4/gems/passenger-5.1
mai 31 04:08:50 185-163-125-47.onetsolutions.network sharetri3[10500]: /usr/local/rvm/gems/ruby-2.3.4/gems/passenger-5.1
mai 31 04:08:50 185-163-125-47.onetsolutions.network sharetri3[10500]: /usr/local/rvm/gems/ruby-2.3.4/gems/passenger-5.1
mai 31 04:08:50 185-163-125-47.onetsolutions.network sharetri3[10500]: /usr/local/rvm/gems/ruby-2.3.4/gems/passenger-5.1
mai 31 04:08:50 185-163-125-47.onetsolutions.network sharetri3[10500]: [ 2018-05-31 04:08:50.3246 10620/7f0ee7fff700 age/C
mai 31 04:08:50 185-163-125-47.onetsolutions.network sharetri3[10500]: App 12001 stdout:

Here’s the error on the website

We’re sorry, but something went wrong.
The issue has been logged for investigation. Please try again later.

Here’s my passenger log

App 4208 stdout:
App 4208 stdout:
[ 2018-05-31 04:23:18.4316 3409/7f3479997700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /root/sharetribe: An error occurred while starting up the preloader.
  Error ID: c5eb2750
  Error details saved to: /tmp/passenger-error.or15uG
  Message from application: 765: unexpected token at '{
  "repository": "sharetribe/sharetribe",
  "license": "MIT",
  "engines": {
    "node": "6.1"
    "npm": "3.10.7"
  },
  "scripts": {
    "ensure-node-version": "check-node-version --package",
    "lint": "npm run eslint && npm run stylelint",
    "eslint": "npm run ensure-node-version && eslint .",
    "stylelint": "npm run ensure-node-version && stylelint **/*.css",
    "build:client": "npm run ensure-node-version && webpack --config webpack.client.config.js",
    "build:server": "npm run ensure-node-version && webpack --config webpack.server.config.js",
    "build:production:client": "NODE_ENV=production npm run ensure-node-version && webpack --config webpack.client.config.js",
    "build:production:server": "NODE_ENV=production npm run ensure-node-version && webpack --config webpack.server.config.js",
    "build:production": "npm run ensure-node-version && npm run build:production:client && npm run build:production:server",
    "build:dev:client": "npm run ensure-node-version && webpack -w --config webpack.client.config.js",
    "build:dev:server": "npm run ensure-node-version && webpack -w --config webpack.server.config.js",
    "build:test": "npm run ensure-node-version && npm run build:client && npm run build:server",
    "print-phantomjs-version": "npm run ensure-node-version && phantomjs --version",
    "start-phantomjs": "npm run ensure-node-version && phantomjs --webdriver=8910",
    "styleguide": "npm run ensure-node-version && start-storybook -p 9001",
    "deploy-storybook": "npm run ensure-node-version && storybook-to-ghpages",
    "test:stories": "npm run ensure-node-version && mocha './app/components/**/*.story.js' --reporter mocha-circleci-reporter --require babel-register --require ignore-styles --require ./mochaConfig.js",
    "test:specs": "npm run ensure-node-version && mocha './app/specs/*.spec.js' --reporter mocha-circleci-reporter --require babel-register --require ignore-styles --require ./mochaConfig.js",
    "test": "npm run ensure-node-version && npm run test:stories && npm run test:specs",
    "test:devspecs": "mocha './app/specs/*.spec.js' --require babel-register"
  },
  "dependencies": {
    "babel-cli": "6.18.0",
    "babel-core": "6.18.2",
    "babel-loader": "6.2.8",
    "babel-polyfill": "6.16.0",
    "babel-preset-es2015": "6.18.0",
    "babel-preset-react": "6.16.0",
    "babel-preset-stage-2": "6.18.0",
    "babel-runtime": "6.18.0",
    "check-node-version": "1.1.2",
    "classnames": "2.2.5",
    "css-loader": "0.26.0",
    "customfile-loader": "./customloaders/customfileloader",
    "es6-shim": "0.35.1",
    "extract-text-webpack-plugin": "1.0.1",
    "file-loader": "0.9.0",
    "i18n-js": "http://github.com/sharetribe/i18n-js/archive/interpolation-mode.tar.gz",
    "immutable": "3.8.1",
    "imports-loader": "0.6.5",
    "json-loader": "https://registry.npmjs.org/json-loader/-/json-loader-0.5.4.tgz",
    "loader-utils": "0.2.16",
    "lodash": "4.17.2",
    "lodash.merge": "4.6.0",
    "moment": "2.17.0",
    "node-libs-browser": "2.0.0",
    "node-sass": "3.13.0",
    "numbro": "1.9.3",
    "postcss-cssnext": "2.8.0",
    "postcss-loader": "0.13.0",
    "postcss-mixins": "5.4.0",
    "r-dom": "2.3.1",
    "raw-loader": "0.5.1",
    "react": "15.4.1",
    "react-addons-css-transition-group": "15.4.1",
    "react-addons-transition-group": "15.4.1",
    "react-addons-shallow-compare": "15.4.1",
    "react-dates": "4.1.0",
    "react-dom": "15.4.1",
    "react-on-rails": "6.9.3",
    "react-redux": "4.4.6",
    "redux": "3.6.0",
    "redux-thunk": "2.1.0",
    "resolve-url-loader": "1.6.0",
    "sass-loader": "4.0.2",
    "style-loader": "0.13.1",
    "transit-js": "0.8.846",
    "webpack": "1.13.3",
    "whatwg-fetch": "2.0.1",
    "axios": "0.17.0",
    "react-form": "github:ithouse/react-form"
  },
  "devDependencies": {
    "@kadira/storybook": "2.32.1",
    "@kadira/storybook-deployer": "github:mporkola/storybook-deployer",
    "babel-eslint": "7.0.0",
    "babel-plugin-react-transform": "2.0.2",
    "babel-register": "6.18.0",
    "chai": "3.5.0",
    "chai-enzyme": "0.6.1",
    "enzyme": "2.6.0",
    "eslint": "3.8.1",
    "eslint-plugin-babel": "3.3.0",
    "eslint-plugin-react": "6.4.1",
    "ignore-styles": "5.0.1",
    "jsdom": "9.8.3",
    "json": "9.0.4",
    "mocha": "3.1.2",
    "mocha-circleci-reporter": "0.0.2",
    "phantomjs-prebuilt": "2.1.13",
    "react-addons-test-utils": "15.4.1",
    "react-transform-hmr": "1.0.4",
    "storybook-addon-specifications": "1.0.15",
    "stylelint": "7.5.0",
    "stylelint-config-standard": "13.0.2",
    "webpack-dev-server": "1.16.2"
  },
  "browser": {
    "fs": false
  }
}
' (JSON::ParserError)
  /usr/local/rvm/gems/ruby-2.3.4/gems/json-2.1.0/lib/json/common.rb:156:in `parse'
  /usr/local/rvm/gems/ruby-2.3.4/gems/json-2.1.0/lib/json/common.rb:156:in `parse'
  /usr/local/rvm/gems/ruby-2.3.4/gems/react_on_rails-6.9.3/lib/react_on_rails/version_checker.rb:61:in `raw'
  /usr/local/rvm/gems/ruby-2.3.4/gems/react_on_rails-6.9.3/lib/react_on_rails/version_checker.rb:71:in `relative_path?'
  /usr/local/rvm/gems/ruby-2.3.4/gems/react_on_rails-6.9.3/lib/react_on_rails/version_checker.rb:21:in `warn_if_gem_and_node_package_versions_differ'
  /usr/local/rvm/gems/ruby-2.3.4/gems/react_on_rails-6.9.3/lib/react_on_rails/engine.rb:5:in `block in <class:Engine>'
  /usr/local/rvm/gems/ruby-2.3.4/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:413:in `instance_exec'
  /usr/local/rvm/gems/ruby-2.3.4/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:413:in `block in make_lambda'
  /usr/local/rvm/gems/ruby-2.3.4/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:197:in `block (2 levels) in halting'
  /usr/local/rvm/gems/ruby-2.3.4/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:601:in `block (2 levels) in default_terminator'
  /usr/local/rvm/gems/ruby-2.3.4/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:600:in `catch'
  /usr/local/rvm/gems/ruby-2.3.4/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:600:in `block in default_terminator'
  /usr/local/rvm/gems/ruby-2.3.4/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:198:in `block in halting'
  /usr/local/rvm/gems/ruby-2.3.4/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:507:in `block in invoke_before'
  /usr/local/rvm/gems/ruby-2.3.4/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:507:in `each'
  /usr/local/rvm/gems/ruby-2.3.4/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:507:in `invoke_before'
  /usr/local/rvm/gems/ruby-2.3.4/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:130:in `run_callbacks'
  /usr/local/rvm/gems/ruby-2.3.4/gems/activesupport-5.1.1/lib/active_support/reloader.rb:87:in `prepare!'
  /usr/local/rvm/gems/ruby-2.3.4/gems/railties-5.1.1/lib/rails/application/finisher.rb:61:in `block in <module:Finisher>'
  /usr/local/rvm/gems/ruby-2.3.4/gems/railties-5.1.1/lib/rails/initializable.rb:30:in `instance_exec'
  /usr/local/rvm/gems/ruby-2.3.4/gems/railties-5.1.1/lib/rails/initializable.rb:30:in `run'
  /usr/local/rvm/gems/ruby-2.3.4/gems/railties-5.1.1/lib/rails/initializable.rb:59:in `block in run_initializers'
  /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each'
  /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
  /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from'
  /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component'
  /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `each'
  /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `call'
  /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component'
  /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each'
  /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each'
  /usr/local/rvm/gems/ruby-2.3.4/gems/railties-5.1.1/lib/rails/initializable.rb:58:in `run_initializers'
  /usr/local/rvm/gems/ruby-2.3.4/gems/railties-5.1.1/lib/rails/application.rb:353:in `initialize!'
  /root/sharetribe/config/environment.rb:18:in `<top (required)>'
  config.ru:3:in `require'
  config.ru:3:in `block in <main>'
  /usr/local/rvm/gems/ruby-2.3.4/gems/rack-2.0.4/lib/rack/builder.rb:55:in `instance_eval'
  /usr/local/rvm/gems/ruby-2.3.4/gems/rack-2.0.4/lib/rack/builder.rb:55:in `initialize'
  config.ru:1:in `new'
  config.ru:1:in `<main>'
  /usr/local/rvm/gems/ruby-2.3.4/gems/passenger-5.1.4/src/helper-scripts/rack-preloader.rb:110:in `eval'
  /usr/local/rvm/gems/ruby-2.3.4/gems/passenger-5.1.4/src/helper-scripts/rack-preloader.rb:110:in `preload_app'
  /usr/local/rvm/gems/ruby-2.3.4/gems/passenger-5.1.4/src/helper-scripts/rack-preloader.rb:156:in `<module:App>'
  /usr/local/rvm/gems/ruby-2.3.4/gems/passenger-5.1.4/src/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
  /usr/local/rvm/gems/ruby-2.3.4/gems/passenger-5.1.4/src/helper-scripts/rack-preloader.rb:29:in `<main>'


[ 2018-05-31 04:23:18.5544 3409/7f347776a700 age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 2-3] Cannot checkout session because a spawning error occurred. The identifier of the error is c5eb2750. Please see earlier logs for details about the error.
[ 2018-05-31 04:23:18.5568 3409/7f3477fec700 age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 1-3] Cannot checkout session because a spawning error occurred. The identifier of the error is c5eb2750. Please see earlier logs for details about the error.
App 4514 stdout:

You have typo in your client/package.json:

Also, odd that you edited it to use node 6.1, as current version uses 7.8, see https://github.com/sharetribe/sharetribe/blob/master/client/package.json#L5

1 Like

You save me ! ahah
I just need to install my memcached server now, I still have not succeeded! haha

My mails are not sending anymore ! :confused:

RAILS_ENV=production rake jobs:work
[Worker(host:ip-172-31-15-131 pid:2745)] Starting job worker
2018-05-31T21:50:15+0000: [Worker(host:ip-172-31-15-131 pid:2745)] Starting job worker
[Worker(host:ip-172-31-15-131 pid:2745)] Job CommunityMemberEmailSentJob (id=257) (queue=default) RUNNING
2018-05-31T21:50:30+0000: [Worker(host:ip-172-31-15-131 pid:2745)] Job CommunityMemberEmailSentJob (id=257) (queue=default) RUNNING
{“tag”:“delayed_job”,“free”:“Running job”,“type”:“running”,“structured”:{“job_name”:“CommunityMemberEmailSentJob”,“args”:{“sender_id”:“L4PDRiGF2SqekPw5TT1seA”,“recipient_id”:“L4PDRiGF2SqekPw5TT1seA”,“community_id”:1,“content”:“”,“locale”:“any”,“test_to_yourself”:true}}}
127.0.0.1:11211 failed (count: 0) Errno::ECONNREFUSED: Connection refused - connect(2) for “127.0.0.1” port 11211
DalliError: No server available
127.0.0.1:11211 failed (count: 1) Errno::ECONNREFUSED: Connection refused - connect(2) for “127.0.0.1” port 11211
127.0.0.1:11211 is down
DalliError: No server available
{“tag”:“action_mailer”,“free”:“Delivering email”,“type”:“delivering_email”,“structured”:{“to”:[“maxence.carpentier@musicalink.fr”],“from”:[“musicalinkinc@gmail.com”],“subject”:“[TEST] Un nouveau message de l’équipe Musicalink”}}
Sent mail to maxence.carpentier@musicalink.fr (184.2ms)
{“tag”:“delayed_job”,“free”:“Job success”,“type”:“success”,“structured”:{“job_name”:“CommunityMemberEmailSentJob”,“args”:{“sender_id”:“L4PDRiGF2SqekPw5TT1seA”,“recipient_id”:“L4PDRiGF2SqekPw5TT1seA”,“community_id”:1,“content”:“”,“locale”:“any”,“test_to_yourself”:true}}}
[Worker(host:ip-172-31-15-131 pid:2745)] Job CommunityMemberEmailSentJob (id=257) (queue=default) COMPLETED after 1.6730
2018-05-31T21:50:32+0000: [Worker(host:ip-172-31-15-131 pid:2745)] Job CommunityMemberEmailSentJob (id=257) (queue=default) COMPLETED after 1.6730
[Worker(host:ip-172-31-15-131 pid:2745)] 1 jobs processed at 0.5844 j/s, 0 failed
2018-05-31T21:50:32+0000: [Worker(host:ip-172-31-15-131 pid:2745)] 1 jobs processed at 0.5844 j/s, 0 failed

sign with the user to access where sharetribe folder. In my case root user does not give you access to sharetribe so ssh into my server with another user name.

get into sharetribe directory with the following command line

cd sharetribe

from the sharetribe folder, run the following command line

RAILS_ENV=production bundle exec rake ts:start

You search function should work now.

Have fun!