Flood-UI / flood

A web UI for rTorrent, qBittorrent and Transmission with a Node.js backend and React frontend. Migrate to v4: https://github.com/jesec/flood/wiki/Migrate-from-older-versions-of-Flood.
https://flood.js.org
GNU General Public License v3.0
1.81k stars 173 forks source link

npm run start:production bug on Debian 8 #150

Closed angristan closed 8 years ago

angristan commented 8 years ago

npm install --production works fine

root@seedbox:/srv/flood# npm run start:production

> flood@0.0.0 start:production /srv/flood
> npm run prestart; node ./server/bin/www

> flood@0.0.0 prestart /srv/flood
> gulp dist

[09:11:40] Using gulpfile /srv/flood/gulpfile.js
[09:11:40] Starting 'webpack'...
[09:11:40] Starting 'sass'...
[09:11:40] Starting 'minify-js'...
[09:12:11] Finished 'sass' after 31 s
[09:12:11] Starting 'minify-css'...
[09:12:11] Finished 'minify-js' after 31 s
[09:12:13] Finished 'minify-css' after 2.57 s
[09:12:36] [webpack] Hash: 658b3b8671a6803a3f65
Version: webpack 1.13.2
Time: 56072ms
                      Asset     Size  Chunks             Chunk Names
    ./server/assets//app.js  3.81 MB       0  [emitted]  main
./server/assets//app.js.map  4.57 MB       0  [emitted]  main
[09:12:36] Finished 'webpack' after 56 s
[09:12:36] Starting 'default'...
[09:12:36] Finished 'default' after 17 μs
[09:12:36] Starting 'dist'...
[09:12:36] Finished 'dist' after 18 μs
Port 3000 is already in use

npm ERR! Linux 2.6.32-042stab116.2
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "start:production"
npm ERR! node v4.6.1
npm ERR! npm  v2.15.9
npm ERR! code ELIFECYCLE
npm ERR! flood@0.0.0 start:production: `npm run prestart; node ./server/bin/www`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the flood@0.0.0 start:production script 'npm run prestart; node ./server/bin/www'.
npm ERR! This is most likely a problem with the flood package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run prestart; node ./server/bin/www
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs flood
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls flood
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /srv/flood/npm-debug.log
angristan commented 8 years ago

Fixed by running what wasn't working... okay :|

root@seedbox:/srv/flood# npm run prestart; node ./server/bin/www

> flood@0.0.0 prestart /srv/flood
> gulp dist

[09:18:05] Using gulpfile /srv/flood/gulpfile.js
[09:18:05] Starting 'webpack'...
[09:18:06] Starting 'sass'...
[09:18:06] Starting 'minify-js'...
[09:18:39] Finished 'sass' after 33 s
[09:18:39] Starting 'minify-css'...
[09:18:39] Finished 'minify-js' after 33 s
[09:18:44] Finished 'minify-css' after 5.76 s
[09:19:04] [webpack] Hash: 658b3b8671a6803a3f65
Version: webpack 1.13.2
Time: 58091ms
                      Asset     Size  Chunks             Chunk Names
    ./server/assets//app.js  3.81 MB       0  [emitted]  main
./server/assets//app.js.map  4.57 MB       0  [emitted]  main
[09:19:04] Finished 'webpack' after 58 s
[09:19:04] Starting 'default'...
[09:19:04] Finished 'default' after 11 μs
[09:19:04] Starting 'dist'...
[09:19:04] Finished 'dist' after 12 μs
removed 0 entries from hourSnapshot
removed 0 entries from fiveMinSnapshot
removed 0 entries from weekSnapshot
removed 0 entries from daySnapshot
removed 0 entries from thirtyMinSnapshot
removed 0 entries from monthSnapshot
GET / 304 10675.796 ms - -
GET /style.css 200 18.828 ms - -
GET /app.js 200 5.488 ms - -
GET /auth/verify?1477142791185 200 5.245 ms - 20
^C
root@seedbox:/srv/flood# npm run start:production

> flood@0.0.0 start:production /srv/flood
> npm run prestart; node ./server/bin/www

> flood@0.0.0 prestart /srv/flood
> gulp dist

[09:22:33] Using gulpfile /srv/flood/gulpfile.js
[09:22:33] Starting 'webpack'...
[09:22:33] Starting 'sass'...
[09:22:34] Starting 'minify-js'...
[09:23:07] Finished 'sass' after 34 s
[09:23:07] Starting 'minify-css'...
[09:23:07] Finished 'minify-js' after 34 s
[09:23:13] Finished 'minify-css' after 6.19 s
[09:23:29] [webpack] Hash: 658b3b8671a6803a3f65
Version: webpack 1.13.2
Time: 55276ms
                      Asset     Size  Chunks             Chunk Names
    ./server/assets//app.js  3.81 MB       0  [emitted]  main
./server/assets//app.js.map  4.57 MB       0  [emitted]  main
[09:23:29] Finished 'webpack' after 55 s
[09:23:29] Starting 'default'...
[09:23:29] Finished 'default' after 15 μs
[09:23:29] Starting 'dist'...
[09:23:29] Finished 'dist' after 14 μs
removed 0 entries from weekSnapshot
removed 0 entries from hourSnapshot
removed 0 entries from monthSnapshot
removed 0 entries from daySnapshot
removed 0 entries from thirtyMinSnapshot
removed 0 entries from fiveMinSnapshot
GET / 304 534.865 ms - -
GET /style.css 200 172.797 ms - -
GET /app.js 200 148.198 ms - -
GET /auth/verify?1477142884209 200 3.371 ms - 20