Error in centos server

this is my 5th day with this sharetribe installation… did line by line installed of all necessary gems with their versions.

but in that rake ts:index level i met problem related to webpack… db structure only generated in my mysql…

cant proceed to goto next step.

any guide for me?

here is my logs when i tried bundle exec rake jobs:work

(in /var/www/html)
WARN You specified server rendering JS file: app/assets/webpack/server-bundle.js, but it cannot be read. You may set the server_bundle_js_file in your configuration to be “” to avoid this warning
You specified server rendering JS file: app/assets/webpack/server-bundle.js, but it cannot be read. You may set the server_bundle_js_file in your configuration to be “” to avoid this warning
[Worker(host:vps4719.unoeuro-server.com pid:342)] Starting job worker
INFO 2016-09-24T14:49:04+0200: [Worker(host:vps4719.unoeuro-server.com pid:342)] Starting job worker
DEBUG SQL (0.3ms) UPDATE delayed_jobs SET delayed_jobs.locked_at = ‘2016-09-24 12:49:04’, delayed_jobs.locked_by = ‘host:vps4719.unoeuro-server.com pid:342’ WHERE ((run_at <= ‘2016-09-24 12:49:04’ AND (locked_at IS NULL OR locked_at < ‘2016-09-24 12:46:04’) OR locked_by = ‘host:vps4719.unoeuro-server.com pid:342’) AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1
WARN You specified server rendering JS file: app/assets/webpack/server-bundle.js, but it cannot be read. You may set the server_bundle_js_file in your configuration to be “” to avoid this warning
You specified server rendering JS file: app/assets/webpack/server-bundle.js, but it cannot be read. You may set the server_bundle_js_file in your configuration to be “” to avoid this warning
DEBUG SQL (0.4ms) UPDATE delayed_jobs SET delayed_jobs.locked_at = ‘2016-09-24 12:49:09’, delayed_jobs.locked_by = ‘host:vps4719.unoeuro-server.com pid:342’ WHERE ((run_at <= ‘2016-09-24 12:49:09’ AND (locked_at IS NULL OR locked_at < ‘2016-09-24 12:46:09’) OR locked_by = ‘host:vps4719.unoeuro-server.com pid:342’) AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1
WARN You specified server rendering JS file: app/assets/webpack/server-bundle.js, but it cannot be read. You may set the server_bundle_js_file in your configuration to be “” to avoid this warning
You specified server rendering JS file: app/assets/webpack/server-bundle.js, but it cannot be read. You may set the server_bundle_js_file in your configuration to be “” to avoid this warning
DEBUG SQL (0.3ms) UPDATE delayed_jobs SET delayed_jobs.locked_at = ‘2016-09-24 12:49:15’, delayed_jobs.locked_by = ‘host:vps4719.unoeuro-server.com pid:342’ WHERE ((run_at <= ‘2016-09-24 12:49:15’ AND (locked_at IS NULL OR locked_at < ‘2016-09-24 12:46:15’) OR locked_by = ‘host:vps4719.unoeuro-server.com pid:342’) AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1
WARN You specified server rendering JS file: app/assets/webpack/server-bundle.js, but it cannot be read. You may set the server_bundle_js_file in your configuration to be “” to avoid this warn

So what’s the error you are seeing? In the stacktrace you posted there are no errors, only warnings (WARN). How does this prevent you from proceeding?

this error logs continue without no end… so why this warning?

db table structure only created… no data inserted

seems that skipping something

can you help me in right direction?

Sorry, but I’m still not sure what’s the error you are facing. Can you describe your problem a bit more?

What commands have you run before bundle exec rake jobs:work? Any errors there? Have you started the Rails server by running foreman start -f Procfile.static? Did the server start properly? Are you able to access the localhost:3000?

this is the error when i use that previous COMMAND

20:53:17 rails.1 | started with pid 9396
20:53:17 rails-client-assets.1 | started with pid 9398
20:53:17 rails-server-assets.1 | started with pid 9399
20:53:17 rails-client-assets.1 | Skipping routes export task. Routes file ./client/app/routes/routes.js exists already.
20:53:17 rails-server-assets.1 | Skipping translation export task. Translation bundle ./client/app/i18n/all.js exists already.
20:53:17 rails.1 | Waiting for app/assets/webpack/server-bundle.js…
20:53:17 rails-server-assets.1 | Waiting for client/app/routes/routes.js…
20:53:17 rails-server-assets.1 | client/app/routes/routes.js found
20:53:20 rails-client-assets.1 |
20:53:20 rails-client-assets.1 | > @ build:dev:client /var/www/html/client
20:53:20 rails-client-assets.1 | > webpack -w --config webpack.client.config.js
20:53:20 rails-client-assets.1 |
20:53:20 rails-server-assets.1 |
20:53:20 rails-server-assets.1 | > @ build:dev:server /var/www/html/client
20:53:20 rails-server-assets.1 | > webpack -w --config webpack.server.config.js
20:53:20 rails-server-assets.1 |
20:53:21 rails-client-assets.1 | module.js:457
20:53:21 rails-client-assets.1 | throw err;
20:53:21 rails-client-assets.1 | ^
20:53:21 rails-client-assets.1 |
20:53:21 rails-client-assets.1 | Error: Cannot find module 'extract-text-webpack-plugin’
20:53:21 rails-client-assets.1 | at Function.Module._resolveFilename (module.js:455:15)
20:53:21 rails-client-assets.1 | at Function.Module._load (module.js:403:25)
20:53:21 rails-client-assets.1 | at Module.require (module.js:483:17)
20:53:21 rails-client-assets.1 | at require (internal/module.js:20:19)
20:53:21 rails-client-assets.1 | at Object. (/var/www/html/client/webpack.client.config.js:4:27)
20:53:21 rails-client-assets.1 | at Module._compile (module.js:556:32)
20:53:21 rails-client-assets.1 | at Object.Module._extensions…js (module.js:565:10)
20:53:21 rails-client-assets.1 | at Module.load (module.js:473:32)
20:53:21 rails-client-assets.1 | at tryModuleLoad (module.js:432:12)
20:53:21 rails-client-assets.1 | at Function.Module._load (module.js:424:3)
20:53:21 rails-client-assets.1 |
20:53:21 rails-client-assets.1 | npm ERR! Linux 2.6.32-042stab111.12
20:53:21 rails-client-assets.1 | npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “run” "build:dev:client"
20:53:21 rails-client-assets.1 | npm ERR! node v6.6.0
20:53:21 rails-client-assets.1 | npm ERR! npm v3.10.3
20:53:21 rails-client-assets.1 | npm ERR! code ELIFECYCLE
20:53:21 rails-client-assets.1 | npm ERR! @ build:dev:client: webpack -w --config webpack.client.config.js
20:53:21 rails-client-assets.1 | npm ERR! Exit status 1
20:53:21 rails-client-assets.1 | npm ERR!
20:53:21 rails-client-assets.1 | npm ERR! Failed at the @ build:dev:client script ‘webpack -w --config webpack.client.config.js’.
20:53:21 rails-client-assets.1 | npm ERR! Make sure you have the latest version of node.js and npm installed.
20:53:21 rails-client-assets.1 | npm ERR! If you do, this is most likely a problem with the package,
20:53:21 rails-client-assets.1 | npm ERR! not with npm itself.
20:53:21 rails-client-assets.1 | npm ERR! Tell the author that this fails on your system:
20:53:21 rails-client-assets.1 | npm ERR! webpack -w --config webpack.client.config.js
20:53:21 rails-client-assets.1 | npm ERR! You can get information on how to open an issue for this project with:
20:53:21 rails-client-assets.1 | npm ERR! npm bugs
20:53:21 rails-client-assets.1 | npm ERR! Or if that isn’t available, you can get their info via:
20:53:21 rails-client-assets.1 | npm ERR! npm owner ls
20:53:21 rails-client-assets.1 | npm ERR! There is likely additional logging output above.
20:53:21 rails-client-assets.1 | npm WARN Local package.json exists, but node_modules missing, did you mean to install?
20:53:21 rails-client-assets.1 |
20:53:21 rails-client-assets.1 | npm ERR! Please include the following file with any support request:
20:53:21 rails-client-assets.1 | npm ERR! /var/www/html/client/npm-debug.log
20:53:22 rails-server-assets.1 | Hash: fd459e00da939ef39f37
20:53:22 rails-server-assets.1 | Version: webpack 1.13.2
20:53:22 rails-server-assets.1 | Time: 72ms
20:53:22 rails-server-assets.1 | Asset Size Chunks Chunk Names
20:53:22 rails-server-assets.1 | server-bundle.js 1.63 kB 0 [emitted] main
20:53:22 rails-server-assets.1 | [0] multi main 40 bytes {0} [built] [2 errors]
20:53:22 rails-server-assets.1 |
20:53:22 rails-server-assets.1 | ERROR in multi main
20:53:22 rails-server-assets.1 | Module not found: Error: Cannot resolve module ‘babel-polyfill’ in /var/www/html/client
20:53:22 rails-server-assets.1 | @ multi main
20:53:22 rails-server-assets.1 |
20:53:22 rails-server-assets.1 | ERROR in multi main
20:53:22 rails-server-assets.1 | Module not found: Error: Cannot resolve module ‘babel-loader’ in /var/www/html/client
20:53:22 rails-server-assets.1 | @ multi main
20:53:22 rails.1 | app/assets/webpack/server-bundle.js found
20:53:22 rails-client-assets.1 | exited with code 1
20:53:22 system | sending SIGTERM to all processes
20:53:22 rails.1 | terminated by SIGTERM
20:53:22 rails-server-assets.1 | terminated by SIGTERM

lot of NPM problems and WEBPACK issues

Have you tried with node 6.1 (which is the currently supported version)?

My current versions for node environment seems to be:

$ node --version && npm --version
v6.1.0
3.10.7

Also, the error log states that it can’t find ‘extract-text-webpack-plugin’, did you managed to fetch that one when you installed node modules with npm install?

2 Likes

Have had this a couple of times. Always because node version was wrong.

Current version supported is 6.9.

Use NVM to set it.

After switching switching, run

rm -rf client/node-modules && npm install