{"id":4884,"date":"2019-09-29T02:28:13","date_gmt":"2019-09-29T02:28:13","guid":{"rendered":"http:\/\/myprojects.advchaweb.com\/?p=4884"},"modified":"2024-08-13T07:46:05","modified_gmt":"2024-08-13T07:46:05","slug":"install-sharetribe-go-on-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2019\/09\/29\/install-sharetribe-go-on-ubuntu-16-04\/","title":{"rendered":"Install Sharetribe Go on Ubuntu 16.04"},"content":{"rendered":"<p>Ref: https:\/\/github.com\/sharetribe\/sharetribe<\/p>\n<p>Make sure ruby already installed.<br \/>\nInstall Sphinx:<br \/>\ndownload it from http:\/\/sphinxsearch.com\/ then extract it. Pls read: http:\/\/sphinxsearch.com\/docs\/sphinx3.html#getting-started-on-linux-and-macos<br \/>\nHere is the extracted path: \/home\/teddy\/Documents\/sphinx-3.1.1\/<br \/>\nAnd the &#8216;program&#8217; (searchd, indexer, etc) in &#8216;bin&#8217; dir: \/home\/teddy\/Documents\/sphinx-3.1.1\/bin<br \/>\ncheck :<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~\/Documents\/sphinx-3.1.1\/bin$ .\/searchd \r\nSphinx 3.1.1 (commit 612d99f)\r\nCopyright (c) 2001-2018, Andrew Aksyonoff\r\nCopyright (c) 2008-2016, Sphinx Technologies Inc (http:\/\/sphinxsearch.com)\r\n\r\nno config file, using 'sphinxdata' folder...\r\nlistening on all interfaces, port=9312\r\nlistening on all interfaces, port=9306<\/pre>\n<p>NOTE: TO MAKE THE EXECUTABLE CAN RUN GLOBALLY, PLS DO:<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~$ sudo ln -s \/home\/teddy\/Documents\/sphinx-3.1.1\/bin\/ \/usr\/bin\/\r\n\r\nteddy@teddy:~$ PATH=\"$HOME\/Documents\/sphinx-3.1.1\/bin:$PATH\"\r\nteddy@teddy:~$ export PATH<\/pre>\n<p>THEN RUN FROM ANYWHERE<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~$ searchd\r\nSphinx 3.1.1 (commit 612d99f)\r\nCopyright (c) 2001-2018, Andrew Aksyonoff\r\nCopyright (c) 2008-2016, Sphinx Technologies Inc (http:\/\/sphinxsearch.com)\r\n\r\nno config file, using 'sphinxdata' folder...\r\nlistening on all interfaces, port=9312\r\nlistening on all interfaces, port=9306<\/pre>\n<p>Creating &#8216;test&#8217; database (no problem if the database is already exist)<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy:~\/Documents\/sphinx-3.1.1\/bin$ mysql -u root -p\r\nEnter password: \r\nWelcome to the MySQL monitor.  Commands end with ; or \\g.\r\nYour MySQL connection id is 19\r\nServer version: 5.7.24-0ubuntu0.16.04.1 (Ubuntu)\r\n\r\nCopyright (c) 2000, 2018, Oracle and\/or its affiliates. All rights reserved.\r\n\r\nOracle is a registered trademark of Oracle Corporation and\/or its\r\naffiliates. Other names may be trademarks of their respective\r\nowners.\r\n\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n\r\nmysql&gt; CREATE DATABASE test;\r\nERROR 1007 (HY000): Can't create database 'test'; database exists\r\nmysql&gt; SOURCE \/home\/teddy\/Documents\/sphinx-3.1.1\/etc\/example.sql;\r\nQuery OK, 0 rows affected, 1 warning (0,00 sec)\r\n\r\nQuery OK, 0 rows affected (0,06 sec)\r\n\r\nQuery OK, 4 rows affected (0,01 sec)\r\nRecords: 4  Duplicates: 0  Warnings: 0\r\n\r\nQuery OK, 0 rows affected, 1 warning (0,00 sec)\r\n\r\nQuery OK, 0 rows affected (0,06 sec)\r\n\r\nQuery OK, 10 rows affected (0,01 sec)\r\nRecords: 10  Duplicates: 0  Warnings: 0\r\n\r\nmysql&gt; quit\r\n<\/pre>\n<p>I need to create the sphinx.conf file (read: https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-and-configure-sphinx-on-ubuntu-16-04#step-6-%E2%80%94-testing)<br \/>\nFirst I need to remove\/move &#8216;sphinxdata&#8217; dir in &#8216;bin&#8217; dir because I got this message &#8216;No config file, using &#8216;sphinxdata&#8217; folder.&#8217; (read: https:\/\/stackoverflow.com\/questions\/50837676\/sphinx-3-0-3-searchd-dont-see-my-config)<br \/>\nCreate a new file &#8216;sphinx.conf&#8217; in \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/ dir:<\/p>\n<pre class=\"lang:default decode:true \">source src1\r\n{\r\n  type          = mysql\r\n\r\n  #SQL settings (for \u2018mysql\u2019 and \u2018pgsql\u2019 types)\r\n\r\n  sql_host      = localhost\r\n  sql_user      = root\r\n  sql_pass      = teddy\t\r\n  sql_db        = test\r\n  sql_port      = 3306 # optional, default is 3306\r\n\r\n  sql_query     = \\\r\n  SELECT id, group_id, UNIX_TIMESTAMP(date_added) AS date_added, title, content \\\r\n  FROM documents\r\n\r\n  sql_attr_uint         = group_id\r\n  sql_attr_timestamp    = date_added\r\n}\r\nindex test1\r\n{\r\n  source            = src1\r\n  path              = \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/data\/test1\r\n}\r\nsearchd\r\n{\r\n  listen            = 9306:mysql41\r\n  log               = \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/searchd.log\r\n  query_log         = \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/query.log\r\n  read_timeout      = 5\r\n  max_children      = 30\r\n  pid_file          = \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/searchd.pid\r\n  seamless_rotate   = 1\r\n  preopen_indexes   = 1\r\n  unlink_old        = 1\r\n  binlog_path       = \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/data\r\n}<\/pre>\n<p>RUN:<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy:~$ searchd --config \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/sphinx.conf \r\nSphinx 3.1.1 (commit 612d99f)\r\nCopyright (c) 2001-2018, Andrew Aksyonoff\r\nCopyright (c) 2008-2016, Sphinx Technologies Inc (http:\/\/sphinxsearch.com)\r\n\r\nusing config file '\/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/sphinx.conf'...\r\nlistening on all interfaces, port=9306\r\nbind() failed on 0.0.0.0, retrying...\r\nbind() failed on 0.0.0.0, retrying...\r\nbind() failed on 0.0.0.0, retrying...\r\n^C\r\nteddy@teddy:~$ bind() failed on 0.0.0.0, retrying...\r\nbind() failed on 0.0.0.0, retrying...\r\nbind() failed on 0.0.0.0, retrying...\r\nbind() failed on 0.0.0.0, retrying...\r\nbind() failed on 0.0.0.0, retrying...\r\nbind() failed on 0.0.0.0, retrying...\r\nbind() failed on 0.0.0.0, retrying...\r\nbind() failed on 0.0.0.0, retrying...\r\nbind() failed on 0.0.0.0, retrying...\r\nFATAL: bind() failed on 0.0.0.0: Address already in use\r\nshutdown complete<\/pre>\n<p>IF I GOT &#8216;bind() failed on 0.0.0.0, retrying&#8217; THEN IT MEANS &#8216;searchd&#8217; ALREADY RUNNING ON THE BACKGROUND (REF: http:\/\/sphinxsearch.com\/forum\/view.html?id=5542). CHECK<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~$ ps aux|grep searchd\r\nteddy      517  0.0  0.0  23896   328 ?        S    11:26   0:00 searchd\r\nteddy      518  2.0  0.0  91280  3400 ?        Sl   11:26   0:11 searchd\r\nteddy      868  0.0  0.0  14232   968 pts\/0    S+   11:35   0:00 grep --color=auto searchd<\/pre>\n<p>KILL THEM WITH &#8216;killall searchd&#8217; THEN CHECK AGAIN:<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy:~$ killall searchd\r\n\r\nteddy@teddy:~$ ps aux|grep searchd\r\nteddy      888  0.0  0.0  14232   912 pts\/0    S+   11:36   0:00 grep --color=auto searchd<\/pre>\n<p>RE RUN &#8216;searchd&#8217;<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~$ searchd --config \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/sphinx.conf \r\nSphinx 3.1.1 (commit 612d99f)\r\nCopyright (c) 2001-2018, Andrew Aksyonoff\r\nCopyright (c) 2008-2016, Sphinx Technologies Inc (http:\/\/sphinxsearch.com)\r\n\r\nWARNING: both 'sphinxdata' and config file '\/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/sphinx.conf' exist; using 'sphinxdata' folder\r\nno config file, using 'sphinxdata' folder...\r\nlistening on all interfaces, port=9312\r\nlistening on all interfaces, port=9306<\/pre>\n<p>MODIFY sphinx.conf<\/p>\n<pre class=\"lang:default decode:true \">#\r\n# Minimal Sphinx configuration sample (clean, simple, functional)\r\n#\r\n\r\nsource src1\r\n{\r\n\ttype\t\t\t= mysql\r\n\r\n\tsql_host\t\t= localhost\r\n\tsql_user\t\t= root\r\n\tsql_pass\t\t= teddy\r\n\tsql_db\t\t\t= test\r\n\tsql_port\t\t= 3306\t# optional, default is 3306\r\n\r\n\tsql_query\t\t= \\\r\n\t\tSELECT id, group_id, UNIX_TIMESTAMP(date_added) AS date_added, title, content \\\r\n\t\tFROM documents\r\n\r\n\tsql_attr_uint\t\t= group_id\r\n\tsql_attr_timestamp\t= date_added\r\n}\r\n\r\n\r\nindex test1\r\n{\r\n\tsource\t\t\t= src1\r\n\tpath\t\t\t= \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/data\/test1\r\n}\r\n\r\n\r\nindex testrt\r\n{\r\n\ttype\t\t\t= rt\r\n\trt_mem_limit\t\t= 128M\r\n\r\n\tpath\t\t\t= \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/data\/testrt\r\n\r\n\trt_field\t\t= title\r\n\trt_field\t\t= content\r\n\trt_attr_uint\t\t= gid\r\n}\r\n\r\n\r\nindexer\r\n{\r\n\tmem_limit\t\t= 128M\r\n}\r\n\r\n\r\nsearchd\r\n{\r\n\tlisten\t\t\t= 9312\r\n\tlisten\t\t\t= 9306:mysql41\r\n\tlog\t\t\t= \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/data\/searchd.log\r\n\tquery_log\t\t= \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/data\/query.log\r\n\tread_timeout\t\t= 5\r\n\tmax_children\t\t= 30\r\n\tpid_file\t\t= \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/data\/searchd.pid\r\n\tseamless_rotate\t\t= 1\r\n\tpreopen_indexes\t\t= 1\r\n\tunlink_old\t\t= 1\r\n\tworkers\t\t\t= threads # for RT to work\r\n\tbinlog_path\t\t= \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/data\r\n}<\/pre>\n<p>BUT<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy:\/usr\/sbin$ searchd --config \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/sphinx.conf \r\nSphinx 3.1.1 (commit 612d99f)\r\nCopyright (c) 2001-2018, Andrew Aksyonoff\r\nCopyright (c) 2008-2016, Sphinx Technologies Inc (http:\/\/sphinxsearch.com)\r\n\r\nusing config file '\/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/sphinx.conf'...\r\nlistening on all interfaces, port=9312\r\nlistening on all interfaces, port=9306\r\nprecaching index 'test1'\r\nWARNING: index 'test1': prealloc: failed to open \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/data\/test1.sph: No such file or directory; NOT SERVING\r\nprecaching index 'testrt'\r\nprecached 2 indexes in 0.004 sec<\/pre>\n<p>OK. HERE IS THE WORKING sphinx.conf. USE &#8216;type=rt&#8217; (READ: https:\/\/sphinxsearch.com\/forum\/view.html?id=16238)<\/p>\n<pre class=\"lang:default decode:true\">#\r\n# Minimal Sphinx configuration sample (clean, simple, functional)\r\n#\r\n\r\nsource src1\r\n{\r\n\ttype\t\t\t= mysql\r\n\r\n\tsql_host\t\t= localhost\r\n\tsql_user\t\t= root\r\n\tsql_pass\t\t= teddy\r\n\tsql_db\t\t\t= test\r\n\tsql_port\t\t= 3306\t# optional, default is 3306\r\n\r\n\tsql_query\t\t= \\\r\n\t\tSELECT id, group_id, UNIX_TIMESTAMP(date_added) AS date_added, title, content \\\r\n\t\tFROM documents\r\n\r\n\tsql_attr_uint\t\t= group_id\r\n\tsql_attr_timestamp\t= date_added\r\n}\r\n\r\n\r\nindex test1\r\n{\r\n\ttype\t\t\t= rt\r\n\tsource\t\t\t= src1\r\n\tpath\t\t\t= \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/data\/test1\r\n\trt_field\t\t= title\r\n\trt_field\t\t= content\r\n\trt_attr_uint\t= gid\r\n}\r\n\r\n\r\nindex testrt\r\n{\r\n\ttype\t\t\t= rt\r\n\trt_mem_limit\t\t= 128M\r\n\r\n\tpath\t\t\t= \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/data\/testrt\r\n\r\n\trt_field\t\t= title\r\n\trt_field\t\t= content\r\n\trt_attr_uint\t\t= gid\r\n}\r\n\r\n\r\nindexer\r\n{\r\n\tmem_limit\t\t= 128M\r\n}\r\n\r\n\r\nsearchd\r\n{\r\n\tlisten\t\t\t= 9312\r\n\tlisten\t\t\t= 9306:mysql41\r\n\tlog\t\t\t= \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/data\/searchd.log\r\n\tquery_log\t\t= \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/data\/query.log\r\n\tread_timeout\t\t= 5\r\n\tmax_children\t\t= 30\r\n\tpid_file\t\t= \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/data\/searchd.pid\r\n\tseamless_rotate\t\t= 1\r\n\tpreopen_indexes\t\t= 1\r\n\tunlink_old\t\t= 1\r\n\tworkers\t\t\t= threads # for RT to work\r\n\tbinlog_path\t\t= \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/data\r\n}<\/pre>\n<p>PLS REMOVE ALL FILE IN \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/data FIRST! ALSO RUN &#8216;killall searchd&#8217; THEN<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:\/usr\/sbin$ searchd --config \/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/sphinx.conf \r\nSphinx 3.1.1 (commit 612d99f)\r\nCopyright (c) 2001-2018, Andrew Aksyonoff\r\nCopyright (c) 2008-2016, Sphinx Technologies Inc (http:\/\/sphinxsearch.com)\r\n\r\nusing config file '\/home\/teddy\/Documents\/sphinx-3.1.1\/sphinxsearch\/sphinx.conf'...\r\nlistening on all interfaces, port=9312\r\nlistening on all interfaces, port=9306\r\nprecaching index 'test1'\r\nprecaching index 'testrt'\r\nprecached 2 indexes in 0.002 sec<\/pre>\n<p>NO ERROR!<\/p>\n<p>&nbsp;<\/p>\n<p>Imagemagick<br \/>\nCheck<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~\/Documents\/sphinx-3.1.1\/bin$ identify -version\r\nVersion: ImageMagick 6.8.9-9 Q16 x86_64 2018-09-28 http:\/\/www.imagemagick.org\r\nCopyright: Copyright (C) 1999-2014 ImageMagick Studio LLC\r\nFeatures: DPC Modules OpenMP\r\nDelegates: bzlib cairo djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png rsvg tiff wmf x xml zlib<\/pre>\n<p>INSTALL SHARETRIBE<\/p>\n<pre class=\"lang:default decode:true \">git clone git:\/\/github.com\/sharetribe\/sharetribe.git\r\ncd sharetribe\r\ngit checkout latest<\/pre>\n<p>CURRENTLY HAVE TO USE ruby 2.6.2<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~\/Documents\/ruby\/sharetribe$ bundle install\r\nrbenv: version `2.6.2' is not installed (set by \/home\/teddy\/Documents\/ruby\/sharetribe\/.ruby-version)<\/pre>\n<p>SO USE rbenv TO INSTALL 2.6.2 AND MAKE IT DEFAULT WITH &#8216;global&#8217;<\/p>\n<pre class=\"lang:default decode:true \">rbenv install 2.6.2\r\nrbenv global 2.6.2\r\nruby -v<\/pre>\n<p>THEN CONTINUE WITH<\/p>\n<pre class=\"lang:default decode:true \">bundle install<\/pre>\n<p>Install node modules:<\/p>\n<pre class=\"lang:default decode:true \">npm install<\/pre>\n<p>Create a\u00a0database.yml\u00a0file by copying the example database configuration:<\/p>\n<pre class=\"lang:default decode:true \">cp config\/database.example.yml config\/database.yml<\/pre>\n<p>Add your database configuration details to config\/database.yml. You will probably only need to fill in the password for the database(s). Pls set the right config for &#8216;development&#8217; and &#8216;test&#8217;:<\/p>\n<pre class=\"lang:default decode:true\">development:\r\n    adapter: mysql2\r\n    database: sharetribe_development\r\n    encoding: utf8\r\n    username: root\r\n    password: teddy\r\n    host: localhost\r\n\r\n# Warning: The database defined as \"test\" will be erased and\r\n# re-generated from your development database when you run \"rake\".\r\n# Do not set this db to the same as development or production.\r\ntest: &amp;test\r\n    adapter: mysql2\r\n    database: sharetribe_test\r\n    encoding: utf8\r\n    username: root\r\n    password: teddy\r\n    host: localhost\r\n\r\nstaging:\r\n    adapter: mysql2\r\n    database: sharetribe_staging\r\n    encoding: utf8\r\n    username: # ADD DATABASE USERNAME\r\n    password: # ADD DATABASE PASSWORD\r\n    host: localhost\r\n\r\nproduction:\r\n    adapter: mysql2\r\n    database: sharetribe_production\r\n    encoding: utf8\r\n    username: # ADD DATABASE USERNAME\r\n    password: # ADD DATABASE PASSWORD\r\n    host: localhost\r\n\r\ncucumber:\r\n  &lt;&lt;: *test<\/pre>\n<p>Create a\u00a0config.yml\u00a0file by copying the example configuration file:<\/p>\n<pre class=\"lang:default decode:true \">cp config\/config.example.yml config\/config.yml<\/pre>\n<p>Create and initialize the database:<\/p>\n<pre class=\"lang:default decode:true\">bundle exec rake db:create db:structure:load<\/pre>\n<p>Run Sphinx index:<\/p>\n<pre class=\"lang:default decode:true \">bundle exec rake ts:index<\/pre>\n<p>Output:<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~\/Documents\/ruby\/sharetribe$ bundle exec rake ts:index\r\nGenerating configuration to \/home\/teddy\/Documents\/ruby\/sharetribe\/config\/development.sphinx.conf\r\nDEBUG    (0.2ms)  SET NAMES utf8,  @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'),  @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483\r\nDEBUG   \u21b3 app\/indices\/custom_field_value_index.rb:8\r\nDEBUG   Delayed::Backend::ActiveRecord::Job Destroy (0.4ms)  DELETE FROM `delayed_jobs` WHERE (handler LIKE ('--- !ruby\/object:ThinkingSphinx::Deltas::%') AND locked_at IS NULL AND locked_by IS NULL AND failed_at IS NULL)\r\nDEBUG   \u21b3 \/home\/teddy\/.rbenv\/versions\/2.6.2\/bin\/rake:23\r\nSphinx 3.1.1 (commit 612d99f)\r\nCopyright (c) 2001-2018, Andrew Aksyonoff\r\nCopyright (c) 2008-2016, Sphinx Technologies Inc (http:\/\/sphinxsearch.com)\r\n\r\nusing config file '\/home\/teddy\/Documents\/ruby\/sharetribe\/config\/development.sphinx.conf'...\r\nWARNING: key 'docinfo' was permanently removed from Sphinx configuration. Refer to documentation for details.\r\nWARNING: key 'docinfo' was permanently removed from Sphinx configuration. Refer to documentation for details.\r\nWARNING: key 'docinfo' was permanently removed from Sphinx configuration. Refer to documentation for details.\r\nWARNING: key 'enable_star' was permanently removed from Sphinx configuration. Refer to documentation for details.\r\nWARNING: key 'docinfo' was permanently removed from Sphinx configuration. Refer to documentation for details.\r\nWARNING: 1 more warnings skipped.\r\nindexing index 'custom_field_value_core'...\r\ncollected 0 docs, 0.0 MB\r\ntotal 0 docs, 0.0 Kb\r\ntotal 0.0 sec, 0.0 Kb\/sec, 0 docs\/sec\r\nindexing index 'custom_field_value_delta'...\r\ncollected 0 docs, 0.0 MB\r\ntotal 0 docs, 0.0 Kb\r\ntotal 0.0 sec, 0.0 Kb\/sec, 0 docs\/sec\r\nindexing index 'listing_core'...\r\ncollected 0 docs, 0.0 MB\r\ntotal 0 docs, 0.0 Kb\r\ntotal 0.0 sec, 0.0 Kb\/sec, 0 docs\/sec\r\nindexing index 'listing_delta'...\r\ncollected 0 docs, 0.0 MB\r\ntotal 0 docs, 0.0 Kb\r\ntotal 0.0 sec, 0.0 Kb\/sec, 0 docs\/sec\r\nskipping non-plain index 'custom_field_value'...\r\nskipping non-plain index 'listing'...<\/pre>\n<p>Start the Sphinx daemon:<\/p>\n<div class=\"highlight highlight-source-shell\">\n<pre class=\"\">bundle <span class=\"pl-c1\">exec<\/span> rake ts:start<\/pre>\n<\/div>\n<p>Output:<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy:~\/Documents\/ruby\/sharetribe$ bundle exec rake ts:start\r\nSphinx 3.1.1 (commit 612d99f)\r\nCopyright (c) 2001-2018, Andrew Aksyonoff\r\nCopyright (c) 2008-2016, Sphinx Technologies Inc (http:\/\/sphinxsearch.com)\r\n\r\nusing config file '\/home\/teddy\/Documents\/ruby\/sharetribe\/config\/development.sphinx.conf'...\r\nWARNING: key 'docinfo' was permanently removed from Sphinx configuration. Refer to documentation for details.\r\nWARNING: key 'docinfo' was permanently removed from Sphinx configuration. Refer to documentation for details.\r\nWARNING: key 'docinfo' was permanently removed from Sphinx configuration. Refer to documentation for details.\r\nWARNING: key 'enable_star' was permanently removed from Sphinx configuration. Refer to documentation for details.\r\nWARNING: key 'docinfo' was permanently removed from Sphinx configuration. Refer to documentation for details.\r\nWARNING: 1 more warnings skipped.\r\nlistening on all interfaces, port=3563\r\nprecaching index 'custom_field_value_core'\r\nprecaching index 'custom_field_value_delta'\r\nprecaching index 'listing_core'\r\nprecaching index 'listing_delta'\r\nprecached 4 indexes in 0.006 sec\r\nStarted searchd successfully (pid: 6158).<\/pre>\n<p>Start the development server:<\/p>\n<div class=\"highlight highlight-source-shell\">\n<pre class=\"\">foreman start -f Procfile.static<\/pre>\n<\/div>\n<p>But Install &#8216;foreman&#8217; FIRST (READ: https:\/\/github.com\/ddollar\/foreman)<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~\/Documents\/ruby\/sharetribe$ gem install foreman\r\nFetching thor-0.19.4.gem\r\nFetching foreman-0.85.0.gem\r\n\/home\/teddy\/.rbenv\/rbenv.d\/exec\/gem-rehash\/rubygems_plugin.rb:6: warning: Insecure world writable dir \/home\/teddy\/.composer\/vendor\/bin in PATH, mode 040777\r\nSuccessfully installed thor-0.19.4\r\nSuccessfully installed foreman-0.85.0\r\nParsing documentation for thor-0.19.4\r\nInstalling ri documentation for thor-0.19.4\r\nParsing documentation for foreman-0.85.0\r\nInstalling ri documentation for foreman-0.85.0\r\nDone installing documentation for thor, foreman after 0 seconds\r\n2 gems installed<\/pre>\n<p>But to run &#8216;foreman&#8217;, it need node js v10.15.3 and npm 6.4.1<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy:~\/Documents\/ruby\/sharetribe$ foreman start -f Procfile.static\r\n\/home\/teddy\/.rbenv\/versions\/2.6.2\/lib\/ruby\/gems\/2.6.0\/gems\/foreman-0.85.0\/lib\/foreman\/process.rb:54: warning: Insecure world writable dir \/home\/teddy\/.composer\/vendor\/bin in PATH, mode 040777\r\n... \r\n13:34:13 rails-client-assets.1 | node: 8.9.4\r\n13:34:13 rails-client-assets.1 | Error: Wanted node version 10.15.3 (10.15.3)\r\n13:34:13 rails-client-assets.1 | To install node, run `nvm install 10.15.3` or see https:\/\/nodejs.org\/\r\n13:34:13 rails-client-assets.1 | npm: 6.7.0\r\n13:34:13 rails-client-assets.1 | Error: Wanted npm version 6.4.1 (6.4.1)\r\n13:34:13 rails-client-assets.1 | To install npm, run `npm install -g npm@6.4.1`\r\n...<\/pre>\n<p>current node version is v8.9.4<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~\/Documents\/ruby\/sharetribe$ node -v\r\nv8.9.4<\/pre>\n<p>So use &#8216;nvm&#8217; to install node v10.15.3<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy:~\/Documents\/ruby\/sharetribe$ nvm install 10.15.3\r\nDownloading and installing node v10.15.3...\r\nDownloading https:\/\/nodejs.org\/dist\/v10.15.3\/node-v10.15.3-linux-x64.tar.xz...\r\n######################################################################## 100,0%\r\nComputing checksum with sha256sum\r\nChecksums matched!\r\nNow using node v10.15.3 (npm v6.4.1)\r\n\r\nteddy@teddy:~\/Documents\/ruby\/sharetribe$ node -v\r\nv10.15.3\r\n\r\nteddy@teddy:~\/Documents\/ruby\/sharetribe$ nvm ls\r\n         v8.9.4\r\n        v8.15.0\r\n       v10.15.1\r\n-&gt;     v10.15.3\r\ndefault -&gt; 8.9.4 (-&gt; v8.9.4)\r\nnode -&gt; stable (-&gt; v10.15.3) (default)\r\nstable -&gt; 10.15 (-&gt; v10.15.3) (default)\r\niojs -&gt; N\/A (default)\r\nlts\/* -&gt; lts\/dubnium (-&gt; N\/A)\r\nlts\/argon -&gt; v4.9.1 (-&gt; N\/A)\r\nlts\/boron -&gt; v6.17.1 (-&gt; N\/A)\r\nlts\/carbon -&gt; v8.16.1 (-&gt; N\/A)\r\nlts\/dubnium -&gt; v10.16.3 (-&gt; N\/A)<\/pre>\n<p>RE RUN &#8216;foreman&#8217; BUT GOT ANOTHER ERROR ABOUT node-sass<\/p>\n<pre class=\"lang:default decode:true\">...\r\n13:45:00 rails-client-assets.1 | ERROR in .\/node_modules\/react-dates\/css\/styles.scss (.\/node_modules\/css-loader\/dist\/cjs.js!.\/node_modules\/sass-loader\/lib\/loader.js!.\/node_modules\/react-dates\/css\/styles.scss)\r\n13:45:00 rails-client-assets.1 | Module build failed (from .\/node_modules\/sass-loader\/lib\/loader.js):\r\n13:45:00 rails-client-assets.1 | Error: Missing binding \/home\/teddy\/Documents\/ruby\/sharetribe\/client\/node_modules\/node-sass\/vendor\/linux-x64-64\/binding.node\r\n13:45:00 rails-client-assets.1 | Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 10.x\r\n13:45:00 rails-client-assets.1 | \r\n13:45:00 rails-client-assets.1 | Found bindings for the following environments:\r\n13:45:00 rails-client-assets.1 |   - Linux 64-bit with Node.js 8.x\r\n13:45:00 rails-client-assets.1 | \r\n13:45:00 rails-client-assets.1 | This usually happens because your environment has changed since running `npm install`.\r\n13:45:00 rails-client-assets.1 | Run `npm rebuild node-sass` to download the binding for your current environment.\r\n...<\/pre>\n<p>&nbsp;<\/p>\n<p>Then open your browser: http:\/\/localhost:5000<br \/>\nThe first time will go to http:\/\/localhost:5000\/communities\/new?locale=en<br \/>\nSetting:<br \/>\nadmin email: advcha@yahoo.com<br \/>\nadmin pass: Admin@123<br \/>\nAdmin user first name: Satria<br \/>\nAdmin user last name; Faestha<br \/>\nMarketplace name: Web Devs Service<br \/>\nMarketplace type: Service marketplace<br \/>\nMarketplace country: Australia<br \/>\nMarketplace language: English<br \/>\nSave<br \/>\nThen it&#8217;ll go to http:\/\/web-devs-service.lvh.me:3000\/?auth=IETnn4GA1Nc<br \/>\nBUT I GOT<\/p>\n<pre class=\"lang:default decode:true \">This site can\u2019t be reached\r\n\r\nweb-devs-service.lvh.me refused to connect.<\/pre>\n<p>IT SHOULD OPEN http:\/\/localhost:5000<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/09\/sharetribe.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-4906\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/09\/sharetribe-1024x573.png\" alt=\"\" width=\"840\" height=\"470\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/09\/sharetribe-1024x573.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/09\/sharetribe-300x168.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/09\/sharetribe-768x430.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/09\/sharetribe-1200x671.png 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/09\/sharetribe.png 1366w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>ALSO OPEN ANOTHER TERMINAL THEN RUN:<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~\/Documents\/ruby\/sharetribe$ bundle exec rake jobs:work<\/pre>\n<p>ADMIN: http:\/\/localhost:5000\/en\/login<br \/>\nadmin email: advcha@yahoo.com<br \/>\nadmin pass: Admin@123<\/p>\n<p>JS ERROR<\/p>\n<pre class=\"lang:default decode:true\">Uncaught Error: Module build failed (from .\/node_modules\/sass-loader\/lib\/loader.js):\r\nError: Missing binding \/home\/teddy\/Documents\/ruby\/sharetribe\/client\/node_modules\/node-sass\/vendor\/linux-x64-64\/binding.node\r\nNode Sass could not find a binding for your current environment: Linux 64-bit with Node.js 10.x\r\n\r\nFound bindings for the following environments:\r\n  - Linux 64-bit with Node.js 8.x\r\n\r\nThis usually happens because your environment has changed since running `npm install`.\r\nRun `npm rebuild node-sass` to download the binding for your current environment.\r\n    at module.exports (:5000\/home\/teddy\/Documents\/ruby\/sharetribe\/client\/node_modules\/node-sass\/lib\/binding.js:15)\r\n    at Object.&lt;anonymous&gt; (:5000\/home\/teddy\/Documents\/ruby\/sharetribe\/client\/node_modules\/node-sass\/lib\/index.js:14)\r\n    at Module._compile (:5000\/home\/teddy\/Documents\/ruby\/sharetribe\/client\/node_modules\/v8-compile-cache\/v8-compile-cache.js:192)\r\n    at Object.Module._extensions..js (internal\/modules\/cjs\/loader.js:712)\r\n    at Module.load (internal\/modules\/cjs\/loader.js:600)\r\n    at tryModuleLoad (internal\/modules\/cjs\/loader.js:539)\r\n    at Function.Module._load (internal\/modules\/cjs\/loader.js:531)\r\n    at Module.require (internal\/modules\/cjs\/loader.js:637)\r\n    at require (:5000\/home\/teddy\/Documents\/ruby\/sharetribe\/client\/node_modules\/v8-compile-cache\/v8-compile-cache.js:161)\r\n    at Object.sassLoader (:5000\/home\/teddy\/Documents\/ruby\/sharetribe\/client\/node_modules\/sass-loader\/lib\/loader.js:46)\r\n    at eval (styles.scss:1)\r\n    at Object..\/node_modules\/css-loader\/dist\/cjs.js!.\/node_modules\/sass-loader\/lib\/loader.js!.\/node_modules\/react-dates\/css\/styles.scss (application-704bf177df4b8be9f75d0dfecbd09d41cd5da0080f515899b9faa2fc882972f4.js:2151)\r\n    at __webpack_require__ (application-704bf177df4b8be9f75d0dfecbd09d41cd5da0080f515899b9faa2fc882972f4.js:8367)\r\n    at eval (styles.scss?23f2:2)\r\n    at Object..\/node_modules\/react-dates\/css\/styles.scss (application-704bf177df4b8be9f75d0dfecbd09d41cd5da0080f515899b9faa2fc882972f4.js:5051)\r\n    at __webpack_require__ (application-704bf177df4b8be9f75d0dfecbd09d41cd5da0080f515899b9faa2fc882972f4.js:8367)\r\n    at eval (ManageAvailabilityCalendar.js?7215:1)\r\n    at Module..\/app\/components\/composites\/ManageAvailabilityCalendar\/ManageAvailabilityCalendar.js (application-704bf177df4b8be9f75d0dfecbd09d41cd5da0080f515899b9faa2fc882972f4.js:8791)\r\n    at __webpack_require__ (application-704bf177df4b8be9f75d0dfecbd09d41cd5da0080f515899b9faa2fc882972f4.js:8367)\r\n    at eval (ManageAvailability.js:14)\r\nslogan_and_description:504 Uncaught TypeError: Cannot set property 'jsonTranslations' of undefined\r\n    at slogan_and_description:504\r\nslogan_and_description:536 Uncaught ReferenceError: $ is not defined\r\n    at slogan_and_description:536\r\nslogan_and_description:545 Uncaught ReferenceError: $ is not defined\r\n    at slogan_and_description:545\r\nslogan_and_description:549 Uncaught ReferenceError: $ is not defined\r\n    at slogan_and_description:549\r\nslogan_and_description:553 Uncaught ReferenceError: ST is not defined\r\n    at slogan_and_description:553\r\n    at slogan_and_description:558\r\nclientStartup.js?2d59:161 Uncaught Error: ReactOnRails encountered an error while rendering component: OnboardingTopBar.\r\nOriginal message: Could not find component registered with name OnboardingTopBar. Registered component names include [  ]. Maybe you forgot to register the component?\r\n    at Object.get (ComponentRegistry.js?8e5d:58)\r\n    at Object.getComponent (ReactOnRails.js?6455:196)\r\n    at render (clientStartup.js?2d59:134)\r\n    at forEach (clientStartup.js?2d59:58)\r\n    at forEachComponent (clientStartup.js?2d59:71)\r\n    at reactOnRailsPageLoaded (clientStartup.js?2d59:179)\r\n    at HTMLDocument.renderInit (clientStartup.js?2d59:204)\r\nstep2_sloganDescription-b19a5e558e3d56b5334dcfe55e3c036c.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)<\/pre>\n<p>I did : nvm alias default 10.15.3<br \/>\nalso nvm use 10.15.3<\/p>\n<p>also<br \/>\nnpm -g uninstall node-sass<br \/>\nnpm -g i node-sass<\/p>\n<p>BUT STILL EXIST<\/p>\n<p>npm install node-sass<\/p>\n<p>teddy@teddy:~\/Documents\/ruby\/sharetribe$ npm rebuild node-sass<\/p>\n<p>&gt; node-sass@4.12.0 install \/home\/teddy\/Documents\/ruby\/sharetribe\/node_modules\/node-sass<br \/>\n&gt; node scripts\/install.js<\/p>\n<p>node-sass build Binary found at \/home\/teddy\/Documents\/ruby\/sharetribe\/node_modules\/node-sass\/vendor\/linux-x64-64\/binding.node<\/p>\n<p>&gt; node-sass@4.12.0 postinstall \/home\/teddy\/Documents\/ruby\/sharetribe\/node_modules\/node-sass<br \/>\n&gt; node scripts\/build.js<\/p>\n<p>Binary found at \/home\/teddy\/Documents\/ruby\/sharetribe\/node_modules\/node-sass\/vendor\/linux-x64-64\/binding.node<br \/>\nTesting binary<br \/>\nBinary is fine<br \/>\nnode-sass@4.12.0 \/home\/teddy\/Documents\/ruby\/sharetribe\/node_modules\/node-sass<\/p>\n<p>teddy@teddy:~\/Documents\/ruby\/sharetribe$ npm ls node-sass<br \/>\n\/home\/teddy\/Documents\/ruby\/sharetribe<br \/>\n\u2514\u2500\u2500 node-sass@4.12.0<br \/>\nSOLUTION: REMOVE &#8216;node_modules&#8217; DIR IN SHARETRIBE ROOT AND IN client\/ DIR<br \/>\nTHEN RUN IN SHARETRIBE ROOT &#8216;npm install &#8211;no-cache&#8217;<br \/>\nNO MORE ERROR!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ref: https:\/\/github.com\/sharetribe\/sharetribe Make sure ruby already installed. Install Sphinx: download it from http:\/\/sphinxsearch.com\/ then extract it. Pls read: http:\/\/sphinxsearch.com\/docs\/sphinx3.html#getting-started-on-linux-and-macos Here is the extracted path: \/home\/teddy\/Documents\/sphinx-3.1.1\/ And the &#8216;program&#8217; (searchd, indexer, etc) in &#8216;bin&#8217; dir: \/home\/teddy\/Documents\/sphinx-3.1.1\/bin check : teddy@teddy:~\/Documents\/sphinx-3.1.1\/bin$ .\/searchd Sphinx 3.1.1 (commit 612d99f) Copyright (c) 2001-2018, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http:\/\/sphinxsearch.com) &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2019\/09\/29\/install-sharetribe-go-on-ubuntu-16-04\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Install Sharetribe Go on Ubuntu 16.04&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50,108],"tags":[],"class_list":["post-4884","post","type-post","status-publish","format-standard","hentry","category-ruby-on-rails","category-sharetribe"],"_links":{"self":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/4884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/comments?post=4884"}],"version-history":[{"count":19,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/4884\/revisions"}],"predecessor-version":[{"id":4886,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/4884\/revisions\/4886"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=4884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=4884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=4884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}