[GH-ISSUE #53] Exception After login #39

Closed
opened 2026-02-26 02:31:53 +03:00 by kerem · 11 comments
Owner

Originally created by @riteshpuj2013 on GitHub (Dec 15, 2015).
Original GitHub issue: https://github.com/koel/koel/issues/53

Hi,

Please suggest me solution for the issue below:

Whoops, looks like something went wrong.
2/2 ErrorException in Application.php line 36: file_get_contents(/home/ritesh/koel/public/build/rev-manifest.json): failed to open stream: No such file or directory (View: /home/ritesh/koel/resources/views/index.blade.php)

in Application.php line 36
at CompilerEngine->handleViewException(object(ErrorException), '1') in compiled.php line 14628
at PhpEngine->evaluatePath('/home/ritesh/koel/storage/framework/views/44a9c34426a86757db1565b62aa58eab', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) in compiled.php line 14662
at CompilerEngine->get('/home/ritesh/koel/resources/views/index.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) in compiled.php line 14495
at View->getContents() in compiled.php line 14483
at View->renderContents() in compiled.php line 14474
at View->render() in compiled.php line 15623
at Response->setContent(object(View)) in compiled.php line 15138
at Response->__construct(object(View)) in compiled.php line 7688
at Router->prepareResponse(object(Request), object(View)) in compiled.php line 7479
at Router->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 9585
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Authenticate.php line 45
at Authenticate->handle(object(Request), object(Closure))
at call_user_func_array(array(object(Authenticate), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 9567
at Pipeline->then(object(Closure)) in compiled.php line 7480
at Router->runRouteWithinStack(object(Route), object(Request)) in compiled.php line 7468
at Router->dispatchToRoute(object(Request)) in compiled.php line 7453
at Router->dispatch(object(Request)) in compiled.php line 2302
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 9585
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 2926
at VerifyCsrfToken->handle(object(Request), object(Closure))
at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 12949
at ShareErrorsFromSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 11536
at StartSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 12686
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 12623
at EncryptCookies->handle(object(Request), object(Closure))
at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 2983
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 9567
at Pipeline->then(object(Closure)) in compiled.php line 2249
at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 2232
at Kernel->handle(object(Request)) in index.php line 53
at require_once('/home/ritesh/koel/index.php') in server.php line 19

1/2 ErrorException in Application.php line 36: file_get_contents(/home/ritesh/koel/public/build/rev-manifest.json): failed to open stream: No such file or directory

in Application.php line 36
at HandleExceptions->handleError('2', 'file_get_contents(/home/ritesh/koel/public/build/rev-manifest.json): failed to open stream: No such file or directory', '/home/ritesh/koel/app/Application.php', '36', array('file' => 'css/vendors.css', 'manifest' => null))
at file_get_contents('/home/ritesh/koel/public/build/rev-manifest.json') in Application.php line 36
at Application->rev('css/vendors.css') in compiled.php line 6024
at Facade::__callStatic('rev', array('css/vendors.css')) in 44a9c34426a86757db1565b62aa58eab line 14
at App::rev('css/vendors.css') in 44a9c34426a86757db1565b62aa58eab line 14
at include('/home/ritesh/koel/storage/framework/views/44a9c34426a86757db1565b62aa58eab') in compiled.php line 14626
at PhpEngine->evaluatePath('/home/ritesh/koel/storage/framework/views/44a9c34426a86757db1565b62aa58eab', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) in compiled.php line 14662
at CompilerEngine->get('/home/ritesh/koel/resources/views/index.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) in compiled.php line 14495
at View->getContents() in compiled.php line 14483
at View->renderContents() in compiled.php line 14474
at View->render() in compiled.php line 15623
at Response->setContent(object(View)) in compiled.php line 15138
at Response->__construct(object(View)) in compiled.php line 7688
at Router->prepareResponse(object(Request), object(View)) in compiled.php line 7479
at Router->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 9585
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Authenticate.php line 45
at Authenticate->handle(object(Request), object(Closure))
at call_user_func_array(array(object(Authenticate), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 9567
at Pipeline->then(object(Closure)) in compiled.php line 7480
at Router->runRouteWithinStack(object(Route), object(Request)) in compiled.php line 7468
at Router->dispatchToRoute(object(Request)) in compiled.php line 7453
at Router->dispatch(object(Request)) in compiled.php line 2302
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 9585
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 2926
at VerifyCsrfToken->handle(object(Request), object(Closure))
at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 12949
at ShareErrorsFromSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 11536
at StartSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 12686
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 12623
at EncryptCookies->handle(object(Request), object(Closure))
at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 2983
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 9567
at Pipeline->then(object(Closure)) in compiled.php line 2249
at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 2232
at Kernel->handle(object(Request)) in index.php line 53
at require_once('/home/ritesh/koel/index.php') in server.php line 19
Originally created by @riteshpuj2013 on GitHub (Dec 15, 2015). Original GitHub issue: https://github.com/koel/koel/issues/53 Hi, Please suggest me solution for the issue below: Whoops, looks like something went wrong. 2/2 ErrorException in Application.php line 36: file_get_contents(/home/ritesh/koel/public/build/rev-manifest.json): failed to open stream: No such file or directory (View: /home/ritesh/koel/resources/views/index.blade.php) ``` in Application.php line 36 at CompilerEngine->handleViewException(object(ErrorException), '1') in compiled.php line 14628 at PhpEngine->evaluatePath('/home/ritesh/koel/storage/framework/views/44a9c34426a86757db1565b62aa58eab', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) in compiled.php line 14662 at CompilerEngine->get('/home/ritesh/koel/resources/views/index.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) in compiled.php line 14495 at View->getContents() in compiled.php line 14483 at View->renderContents() in compiled.php line 14474 at View->render() in compiled.php line 15623 at Response->setContent(object(View)) in compiled.php line 15138 at Response->__construct(object(View)) in compiled.php line 7688 at Router->prepareResponse(object(Request), object(View)) in compiled.php line 7479 at Router->Illuminate\Routing\{closure}(object(Request)) at call_user_func(object(Closure), object(Request)) in compiled.php line 9585 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Authenticate.php line 45 at Authenticate->handle(object(Request), object(Closure)) at call_user_func_array(array(object(Authenticate), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) at call_user_func(object(Closure), object(Request)) in compiled.php line 9567 at Pipeline->then(object(Closure)) in compiled.php line 7480 at Router->runRouteWithinStack(object(Route), object(Request)) in compiled.php line 7468 at Router->dispatchToRoute(object(Request)) in compiled.php line 7453 at Router->dispatch(object(Request)) in compiled.php line 2302 at Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) at call_user_func(object(Closure), object(Request)) in compiled.php line 9585 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 2926 at VerifyCsrfToken->handle(object(Request), object(Closure)) at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 12949 at ShareErrorsFromSession->handle(object(Request), object(Closure)) at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 11536 at StartSession->handle(object(Request), object(Closure)) at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 12686 at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 12623 at EncryptCookies->handle(object(Request), object(Closure)) at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 2983 at CheckForMaintenanceMode->handle(object(Request), object(Closure)) at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) at call_user_func(object(Closure), object(Request)) in compiled.php line 9567 at Pipeline->then(object(Closure)) in compiled.php line 2249 at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 2232 at Kernel->handle(object(Request)) in index.php line 53 at require_once('/home/ritesh/koel/index.php') in server.php line 19 ``` 1/2 ErrorException in Application.php line 36: file_get_contents(/home/ritesh/koel/public/build/rev-manifest.json): failed to open stream: No such file or directory ``` in Application.php line 36 at HandleExceptions->handleError('2', 'file_get_contents(/home/ritesh/koel/public/build/rev-manifest.json): failed to open stream: No such file or directory', '/home/ritesh/koel/app/Application.php', '36', array('file' => 'css/vendors.css', 'manifest' => null)) at file_get_contents('/home/ritesh/koel/public/build/rev-manifest.json') in Application.php line 36 at Application->rev('css/vendors.css') in compiled.php line 6024 at Facade::__callStatic('rev', array('css/vendors.css')) in 44a9c34426a86757db1565b62aa58eab line 14 at App::rev('css/vendors.css') in 44a9c34426a86757db1565b62aa58eab line 14 at include('/home/ritesh/koel/storage/framework/views/44a9c34426a86757db1565b62aa58eab') in compiled.php line 14626 at PhpEngine->evaluatePath('/home/ritesh/koel/storage/framework/views/44a9c34426a86757db1565b62aa58eab', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) in compiled.php line 14662 at CompilerEngine->get('/home/ritesh/koel/resources/views/index.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) in compiled.php line 14495 at View->getContents() in compiled.php line 14483 at View->renderContents() in compiled.php line 14474 at View->render() in compiled.php line 15623 at Response->setContent(object(View)) in compiled.php line 15138 at Response->__construct(object(View)) in compiled.php line 7688 at Router->prepareResponse(object(Request), object(View)) in compiled.php line 7479 at Router->Illuminate\Routing\{closure}(object(Request)) at call_user_func(object(Closure), object(Request)) in compiled.php line 9585 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Authenticate.php line 45 at Authenticate->handle(object(Request), object(Closure)) at call_user_func_array(array(object(Authenticate), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) at call_user_func(object(Closure), object(Request)) in compiled.php line 9567 at Pipeline->then(object(Closure)) in compiled.php line 7480 at Router->runRouteWithinStack(object(Route), object(Request)) in compiled.php line 7468 at Router->dispatchToRoute(object(Request)) in compiled.php line 7453 at Router->dispatch(object(Request)) in compiled.php line 2302 at Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) at call_user_func(object(Closure), object(Request)) in compiled.php line 9585 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 2926 at VerifyCsrfToken->handle(object(Request), object(Closure)) at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 12949 at ShareErrorsFromSession->handle(object(Request), object(Closure)) at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 11536 at StartSession->handle(object(Request), object(Closure)) at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 12686 at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 12623 at EncryptCookies->handle(object(Request), object(Closure)) at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 2983 at CheckForMaintenanceMode->handle(object(Request), object(Closure)) at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577 at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) at call_user_func(object(Closure), object(Request)) in compiled.php line 9567 at Pipeline->then(object(Closure)) in compiled.php line 2249 at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 2232 at Kernel->handle(object(Request)) in index.php line 53 at require_once('/home/ritesh/koel/index.php') in server.php line 19 ```
kerem closed this issue 2026-02-26 02:31:53 +03:00
Author
Owner

@phanan commented on GitHub (Dec 15, 2015):

Try npm install.

<!-- gh-comment-id:164660900 --> @phanan commented on GitHub (Dec 15, 2015): Try `npm install`.
Author
Owner

@r-jenish commented on GitHub (Dec 15, 2015):

npm install gives error. I also tried with root privileges

npm ERR! System Linux 3.19.0-37-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/panda/all_dependencies/koel
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/vm-browserify/index.js
npm ERR! fstream_path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/vm-browserify/index.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call utimes
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/stream-http/README.md'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.19.0-37-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/panda/all_dependencies/koel
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/stream-http/README.md
npm ERR! fstream_path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/stream-http/README.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/JSONStream/node_modules/through'
npm ERR! error rolling back  laravel-elixir@4.1.0 { [Error: ENOTEMPTY, rmdir '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/JSONStream/node_modules/through']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/JSONStream/node_modules/through' }
npm ERR! Error: ENOENT, lstat '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/JSONStream/node_modules/jsonparse/.npmignore'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.19.0-37-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/panda/all_dependencies/koel
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/JSONStream/node_modules/jsonparse/.npmignore
npm ERR! fstream_path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/JSONStream/node_modules/jsonparse/.npmignore
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/constants-browserify/build.sh'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.19.0-37-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/panda/all_dependencies/koel
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/constants-browserify/build.sh
npm ERR! fstream_path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/constants-browserify/build.sh
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, chown '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/duplexer2'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.19.0-37-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/panda/all_dependencies/koel
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/duplexer2
npm ERR! fstream_path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/duplexer2
npm ERR! fstream_type Directory
npm ERR! fstream_class DirWriter
npm ERR! fstream_finish_call chown
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:305:19
npm ERR! fstream_stack /usr/lib/nodejs/graceful-fs/polyfills.js:133:7
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/read-only-stream/.travis.yml'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.19.0-37-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/panda/all_dependencies/koel
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/read-only-stream/.travis.yml
npm ERR! fstream_path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/read-only-stream/.travis.yml
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! EEXIST, mkdir '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/url'
File exists: /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/url
Move it away, and try again. 

npm ERR! System Linux 3.19.0-37-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/panda/all_dependencies/koel
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/url
npm ERR! fstream_path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/url/LICENSE
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/browser-pack/_prelude.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.19.0-37-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/panda/all_dependencies/koel
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/browser-pack/_prelude.js
npm ERR! fstream_path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/browser-pack/_prelude.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/console-browserify/LICENCE'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/panda/all_dependencies/koel/npm-debug.log
npm ERR! not ok code 0

There are many other errors too.
also there isn't any log file created.

<!-- gh-comment-id:164667497 --> @r-jenish commented on GitHub (Dec 15, 2015): npm install gives error. I also tried with root privileges ``` npm ERR! System Linux 3.19.0-37-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! cwd /home/panda/all_dependencies/koel npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.10 npm ERR! path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/vm-browserify/index.js npm ERR! fstream_path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/vm-browserify/index.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! fstream_finish_call utimes npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:305:19 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, lstat '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/stream-http/README.md' npm ERR! If you need help, you may report this log at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR! <npm-@googlegroups.com> npm ERR! System Linux 3.19.0-37-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! cwd /home/panda/all_dependencies/koel npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.10 npm ERR! path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/stream-http/README.md npm ERR! fstream_path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/stream-http/README.md npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/JSONStream/node_modules/through' npm ERR! error rolling back laravel-elixir@4.1.0 { [Error: ENOTEMPTY, rmdir '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/JSONStream/node_modules/through'] npm ERR! error rolling back errno: 53, npm ERR! error rolling back code: 'ENOTEMPTY', npm ERR! error rolling back path: '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/JSONStream/node_modules/through' } npm ERR! Error: ENOENT, lstat '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/JSONStream/node_modules/jsonparse/.npmignore' npm ERR! If you need help, you may report this log at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR! <npm-@googlegroups.com> npm ERR! System Linux 3.19.0-37-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! cwd /home/panda/all_dependencies/koel npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.10 npm ERR! path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/JSONStream/node_modules/jsonparse/.npmignore npm ERR! fstream_path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/JSONStream/node_modules/jsonparse/.npmignore npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, lstat '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/constants-browserify/build.sh' npm ERR! If you need help, you may report this log at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR! <npm-@googlegroups.com> npm ERR! System Linux 3.19.0-37-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! cwd /home/panda/all_dependencies/koel npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.10 npm ERR! path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/constants-browserify/build.sh npm ERR! fstream_path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/constants-browserify/build.sh npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, chown '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/duplexer2' npm ERR! If you need help, you may report this log at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR! <npm-@googlegroups.com> npm ERR! System Linux 3.19.0-37-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! cwd /home/panda/all_dependencies/koel npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.10 npm ERR! path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/duplexer2 npm ERR! fstream_path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/duplexer2 npm ERR! fstream_type Directory npm ERR! fstream_class DirWriter npm ERR! fstream_finish_call chown npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:305:19 npm ERR! fstream_stack /usr/lib/nodejs/graceful-fs/polyfills.js:133:7 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, lstat '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/read-only-stream/.travis.yml' npm ERR! If you need help, you may report this log at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR! <npm-@googlegroups.com> npm ERR! System Linux 3.19.0-37-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! cwd /home/panda/all_dependencies/koel npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.10 npm ERR! path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/read-only-stream/.travis.yml npm ERR! fstream_path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/read-only-stream/.travis.yml npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! EEXIST, mkdir '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/url' File exists: /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/url Move it away, and try again. npm ERR! System Linux 3.19.0-37-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! cwd /home/panda/all_dependencies/koel npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.10 npm ERR! path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/url npm ERR! fstream_path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/url/LICENSE npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code EEXIST npm ERR! errno 47 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:171:23 npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:37:53 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, lstat '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/browser-pack/_prelude.js' npm ERR! If you need help, you may report this log at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR! <npm-@googlegroups.com> npm ERR! System Linux 3.19.0-37-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! cwd /home/panda/all_dependencies/koel npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.10 npm ERR! path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/browser-pack/_prelude.js npm ERR! fstream_path /home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/browser-pack/_prelude.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, lstat '/home/panda/all_dependencies/koel/node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/console-browserify/LICENCE' npm ERR! If you need help, you may report this log at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR! <npm-@googlegroups.com> npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/panda/all_dependencies/koel/npm-debug.log npm ERR! not ok code 0 ``` There are many other errors too. also there isn't any log file created.
Author
Owner

@riteshpuj2013 commented on GitHub (Dec 15, 2015):

Hi Phanan,

Thank you for quick response, really appreciate it.

As per your instruction in the wiki i have followed all the steps, but still i have receiving the same error on the web page as mentioned above:
ritesh@ritesh:/koel$ sudo npm install
npm WARN lifecycle koel@0.1.0
postinstall: cannot run in wd %s %s (wd=%s) koel@0.1.0 node node_modules/bower/bin/bower install && gulp --production /home/ritesh/koel
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.6
npm WARN optional Skipping failed optional dependency /laravel-elixir/gulp-watch/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.6
npm WARN optional Skipping failed optional dependency /laravel-elixir/watchify/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.6
ritesh@ritesh:~/koel$ sudo composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files

php artisan clear-compiled
php artisan optimize
Generating optimized class loader
php -r "if (!file_exists('.env')) copy('.env.example', '.env');"
ritesh@ritesh:/koel$ vi .env
ritesh@ritesh:
/koel$ sudo php artisan init
php artisan key:generate
php artisan migrate --force
php artisan db:seed --force

[Illuminate\Database\QueryException]
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'riteshpuj2013@gmail.com' for key 'users_email_unique' (SQL: insert i
nto users (name, email, password, is_admin, updated_at, created_at) values (ritesh, riteshpuj2013@gmail.com, y$pOflCR5r6Dx7qM
uULwq5f.NtYVNcr3fMbuR7NH6zOKjpAZWB1zrd6, 1, 2015-12-15 07:53:56, 2015-12-15 07:53:56))

[PDOException]
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'riteshpuj2013@gmail.com' for key 'users_email_unique'

ritesh@ritesh:~/koel$ sudo php artisan serve
Laravel development server started on http://localhost:8000/
[Tue Dec 15 13:24:14 2015] 127.0.0.1:38820 [200]: /favicon.ico
[Tue Dec 15 13:24:16 2015] 127.0.0.1:38825 [200]: /favicon.ico

<!-- gh-comment-id:164677863 --> @riteshpuj2013 commented on GitHub (Dec 15, 2015): Hi Phanan, Thank you for quick response, really appreciate it. As per your instruction in the wiki i have followed all the steps, but still i have receiving the same error on the web page as mentioned above: ritesh@ritesh:~/koel$ sudo npm install npm WARN lifecycle koel@0.1.0~postinstall: cannot run in wd %s %s (wd=%s) koel@0.1.0 node node_modules/bower/bin/bower install && gulp --production /home/ritesh/koel npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.6 npm WARN optional Skipping failed optional dependency /laravel-elixir/gulp-watch/chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.6 npm WARN optional Skipping failed optional dependency /laravel-elixir/watchify/chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.6 ritesh@ritesh:~/koel$ sudo composer install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Nothing to install or update Generating autoload files > php artisan clear-compiled > php artisan optimize > Generating optimized class loader > php -r "if (!file_exists('.env')) copy('.env.example', '.env');" > ritesh@ritesh:~/koel$ vi .env > ritesh@ritesh:~/koel$ sudo php artisan init > php artisan key:generate > php artisan migrate --force > php artisan db:seed --force [Illuminate\Database\QueryException] SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'riteshpuj2013@gmail.com' for key 'users_email_unique' (SQL: insert i nto `users` (`name`, `email`, `password`, `is_admin`, `updated_at`, `created_at`) values (ritesh, riteshpuj2013@gmail.com, y$pOflCR5r6Dx7qM uULwq5f.NtYVNcr3fMbuR7NH6zOKjpAZWB1zrd6, 1, 2015-12-15 07:53:56, 2015-12-15 07:53:56)) [PDOException] SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'riteshpuj2013@gmail.com' for key 'users_email_unique' ritesh@ritesh:~/koel$ sudo php artisan serve Laravel development server started on http://localhost:8000/ [Tue Dec 15 13:24:14 2015] 127.0.0.1:38820 [200]: /favicon.ico [Tue Dec 15 13:24:16 2015] 127.0.0.1:38825 [200]: /favicon.ico
Author
Owner

@wzzle commented on GitHub (Dec 15, 2015):

Had the same issue. Fixed it by creating the dirs "public" and "bower_components" and making these writable for the user that I execute "npm install" with. Then I executed "npm install" again.

<!-- gh-comment-id:164678789 --> @wzzle commented on GitHub (Dec 15, 2015): Had the same issue. Fixed it by creating the dirs "public" and "bower_components" and making these writable for the user that I execute "npm install" with. Then I executed "npm install" again.
Author
Owner

@phanan commented on GitHub (Dec 15, 2015):

First, you shouldn't sudo npm install or sudo composer install.
Second, looks like you have composer install (and therefore artisan db:seed) before. Just ignore the error.

On Tue, Dec 15, 2015 at 3:55 PM, Ritesh Puj notifications@github.com
wrote:

Hi Phanan,

Thank you for quick response, really appreciate it.

As per your instruction in the wiki i have followed all the steps, but
still i have receiving the same error on the web page as mentioned above:
ritesh@ritesh:/koel$ sudo npm install
npm WARN lifecycle koel@0.1.0
postinstall: cannot run in wd %s %s (wd=%s)
koel@0.1.0 node node_modules/bower/bin/bower install && gulp --production
/home/ritesh/koel
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture:
fsevents@1.0.6
npm WARN optional Skipping failed optional dependency
/laravel-elixir/gulp-watch/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture:
fsevents@1.0.6
npm WARN optional Skipping failed optional dependency
/laravel-elixir/watchify/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture:
fsevents@1.0.6
ritesh@ritesh:~/koel$ sudo composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files

php artisan clear-compiled
php artisan optimize
Generating optimized class loader
php -r "if (!file_exists('.env')) copy('.env.example', '.env');"
ritesh@ritesh:/koel$ vi .env
ritesh@ritesh:
/koel$ sudo php artisan init
php artisan key:generate
php artisan migrate --force
php artisan db:seed --force

[Illuminate\Database\QueryException]

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '
riteshpuj2013@gmail.com' for key 'users_email_unique' (SQL: insert i

nto users (name, email, password, is_admin, updated_at, created_at)
values (ritesh, riteshpuj2013@gmail.com, y$pOflCR5r6Dx7qM

uULwq5f.NtYVNcr3fMbuR7NH6zOKjpAZWB1zrd6, 1, 2015-12-15 07:53:56,
2015-12-15 07:53:56))

[PDOException]

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '
riteshpuj2013@gmail.com' for key 'users_email_unique'

ritesh@ritesh:~/koel$ sudo php artisan serve
Laravel development server started on http://localhost:8000/
[Tue Dec 15 13:24:14 2015] 127.0.0.1:38820 [200]: /favicon.ico
[Tue Dec 15 13:24:16 2015] 127.0.0.1:38825 [200]: /favicon.ico


Reply to this email directly or view it on GitHub
https://github.com/phanan/koel/issues/53#issuecomment-164677863.

<!-- gh-comment-id:164678962 --> @phanan commented on GitHub (Dec 15, 2015): First, you shouldn't `sudo npm install` or `sudo composer install`. Second, looks like you have `composer install` (and therefore `artisan db:seed`) before. Just ignore the error. On Tue, Dec 15, 2015 at 3:55 PM, Ritesh Puj notifications@github.com wrote: > Hi Phanan, > > Thank you for quick response, really appreciate it. > > As per your instruction in the wiki i have followed all the steps, but > still i have receiving the same error on the web page as mentioned above: > ritesh@ritesh:~/koel$ sudo npm install > npm WARN lifecycle koel@0.1.0~postinstall: cannot run in wd %s %s (wd=%s) > koel@0.1.0 node node_modules/bower/bin/bower install && gulp --production > /home/ritesh/koel > npm WARN optional Skipping failed optional dependency /chokidar/fsevents: > npm WARN notsup Not compatible with your operating system or architecture: > fsevents@1.0.6 > npm WARN optional Skipping failed optional dependency > /laravel-elixir/gulp-watch/chokidar/fsevents: > npm WARN notsup Not compatible with your operating system or architecture: > fsevents@1.0.6 > npm WARN optional Skipping failed optional dependency > /laravel-elixir/watchify/chokidar/fsevents: > npm WARN notsup Not compatible with your operating system or architecture: > fsevents@1.0.6 > ritesh@ritesh:~/koel$ sudo composer install > Loading composer repositories with package information > Installing dependencies (including require-dev) from lock file > Nothing to install or update > Generating autoload files > > php artisan clear-compiled > php artisan optimize > Generating optimized class loader > php -r "if (!file_exists('.env')) copy('.env.example', '.env');" > ritesh@ritesh:~/koel$ vi .env > ritesh@ritesh:~/koel$ sudo php artisan init > php artisan key:generate > php artisan migrate --force > php artisan db:seed --force > > [Illuminate\Database\QueryException] > > SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ' > riteshpuj2013@gmail.com' for key 'users_email_unique' (SQL: insert i > > nto users (name, email, password, is_admin, updated_at, created_at) > values (ritesh, riteshpuj2013@gmail.com, y$pOflCR5r6Dx7qM > > uULwq5f.NtYVNcr3fMbuR7NH6zOKjpAZWB1zrd6, 1, 2015-12-15 07:53:56, > 2015-12-15 07:53:56)) > > [PDOException] > > SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ' > riteshpuj2013@gmail.com' for key 'users_email_unique' > > ritesh@ritesh:~/koel$ sudo php artisan serve > Laravel development server started on http://localhost:8000/ > [Tue Dec 15 13:24:14 2015] 127.0.0.1:38820 [200]: /favicon.ico > [Tue Dec 15 13:24:16 2015] 127.0.0.1:38825 [200]: /favicon.ico > > — > Reply to this email directly or view it on GitHub > https://github.com/phanan/koel/issues/53#issuecomment-164677863.
Author
Owner

@riteshpuj2013 commented on GitHub (Dec 15, 2015):

Shell asked me to run command using sudo.

ritesh@ritesh:~/koel$ npm install
npm WARN package.json asap@1.0.0 No repository field.
npm WARN package.json assert@1.3.0 assert is also the name of a node core module.
npm WARN package.json babel-traverse@6.3.19 No description
npm WARN package.json buffer@3.5.5 buffer is also the name of a node core module.
npm WARN package.json callsite@1.0.0 No repository field.
npm WARN package.json cli-usage@0.1.2 No repository field.
npm WARN package.json events@1.0.2 events is also the name of a node core module.
npm WARN package.json has-binary@0.1.6 No repository field.
npm WARN package.json has-binary-data@0.1.3 No repository field.
npm WARN package.json indexof@0.0.1 No repository field.
npm WARN package.json object-component@0.0.3 No repository field.
npm WARN package.json parsejson@0.0.1 No repository field.
npm WARN package.json parseqs@0.0.2 No repository field.
npm WARN package.json parseuri@0.0.2 No repository field.
npm WARN package.json punycode@1.4.0 punycode is also the name of a node core module.
npm WARN package.json querystring@0.2.0 querystring is also the name of a node core module.
npm WARN package.json string_decoder@0.10.31 string_decoder is also the name of a node core module.
npm WARN package.json url@0.10.3 url is also the name of a node core module.
npm WARN package.json util@0.10.3 util is also the name of a node core module.

bufferutil@1.2.1 install /home/ritesh/koel/node_modules/bufferutil
node-gyp rebuild

child_process: customFds option is deprecated, use stdio instead.
make: Entering directory /home/ritesh/koel/node_modules/bufferutil/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/obj.target/bufferutil.node SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished COPY Release/bufferutil.node make: Leaving directory/home/ritesh/koel/node_modules/bufferutil/build'
npm WARN prefer global marked@0.3.5 should be installed with -g
npm WARN prefer global node-gyp@3.2.1 should be installed with -g

spawn-sync@1.0.13 postinstall /home/ritesh/koel/node_modules/spawn-sync
node postinstall

npm ERR! Linux 3.13.0-24-generic
npm ERR! argv "/home/ritesh/.nvm/versions/node/v0.12.0/bin/node" "/home/ritesh/.nvm/versions/node/v0.12.0/bin/npm" "install"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! path /home/ritesh/koel/node_modules/tfunk/node_modules/.bin/has-ansi
npm ERR! code EACCES
npm ERR! errno -13

npm ERR! Error: EACCES, unlink '/home/ritesh/koel/node_modules/tfunk/node_modules/.bin/has-ansi'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES, unlink '/home/ritesh/koel/node_modules/tfunk/node_modules/.bin/has-ansi']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! path: '/home/ritesh/koel/node_modules/tfunk/node_modules/.bin/has-ansi' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR! /home/ritesh/koel/npm-debug.log

<!-- gh-comment-id:164680299 --> @riteshpuj2013 commented on GitHub (Dec 15, 2015): Shell asked me to run command using sudo. ritesh@ritesh:~/koel$ npm install npm WARN package.json asap@1.0.0 No repository field. npm WARN package.json assert@1.3.0 assert is also the name of a node core module. npm WARN package.json babel-traverse@6.3.19 No description npm WARN package.json buffer@3.5.5 buffer is also the name of a node core module. npm WARN package.json callsite@1.0.0 No repository field. npm WARN package.json cli-usage@0.1.2 No repository field. npm WARN package.json events@1.0.2 events is also the name of a node core module. npm WARN package.json has-binary@0.1.6 No repository field. npm WARN package.json has-binary-data@0.1.3 No repository field. npm WARN package.json indexof@0.0.1 No repository field. npm WARN package.json object-component@0.0.3 No repository field. npm WARN package.json parsejson@0.0.1 No repository field. npm WARN package.json parseqs@0.0.2 No repository field. npm WARN package.json parseuri@0.0.2 No repository field. npm WARN package.json punycode@1.4.0 punycode is also the name of a node core module. npm WARN package.json querystring@0.2.0 querystring is also the name of a node core module. npm WARN package.json string_decoder@0.10.31 string_decoder is also the name of a node core module. npm WARN package.json url@0.10.3 url is also the name of a node core module. npm WARN package.json util@0.10.3 util is also the name of a node core module. > bufferutil@1.2.1 install /home/ritesh/koel/node_modules/bufferutil > node-gyp rebuild child_process: customFds option is deprecated, use stdio instead. make: Entering directory `/home/ritesh/koel/node_modules/bufferutil/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/obj.target/bufferutil.node SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished COPY Release/bufferutil.node make: Leaving directory`/home/ritesh/koel/node_modules/bufferutil/build' npm WARN prefer global marked@0.3.5 should be installed with -g npm WARN prefer global node-gyp@3.2.1 should be installed with -g > spawn-sync@1.0.13 postinstall /home/ritesh/koel/node_modules/spawn-sync > node postinstall npm ERR! Linux 3.13.0-24-generic npm ERR! argv "/home/ritesh/.nvm/versions/node/v0.12.0/bin/node" "/home/ritesh/.nvm/versions/node/v0.12.0/bin/npm" "install" npm ERR! node v0.12.0 npm ERR! npm v2.5.1 npm ERR! path /home/ritesh/koel/node_modules/tfunk/node_modules/.bin/has-ansi npm ERR! code EACCES npm ERR! errno -13 npm ERR! Error: EACCES, unlink '/home/ritesh/koel/node_modules/tfunk/node_modules/.bin/has-ansi' npm ERR! at Error (native) npm ERR! { [Error: EACCES, unlink '/home/ritesh/koel/node_modules/tfunk/node_modules/.bin/has-ansi'] npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! path: '/home/ritesh/koel/node_modules/tfunk/node_modules/.bin/has-ansi' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! Please include the following file with any support request: npm ERR! /home/ritesh/koel/npm-debug.log
Author
Owner

@pyraxo commented on GitHub (Dec 15, 2015):

I'm experiencing the same issues. Running npm install, composer install, with or without sudo, does not help. In addition, I've tried @wzzle's method but to no avail.

<!-- gh-comment-id:164685668 --> @pyraxo commented on GitHub (Dec 15, 2015): I'm experiencing the same issues. Running `npm install`, `composer install`, with or without `sudo`, does not help. In addition, I've tried @wzzle's method but to no avail.
Author
Owner

@riteshpuj2013 commented on GitHub (Dec 15, 2015):

Hi Phanan,
There was one issue with folder permissions of /home/ritesh/.npm and /home/ritesh/.composer I fixed it for my user
Used following command: sudo chown -R ritesh.ritesh /home/ritesh/.npm /home/ritesh/.composer
Created a new clone of the repository in a folder name PUBLIC_DIR and I repeated all the steps exactly (without sudo) as mentioned as here: https://github.com/phanan/koel/wiki
Now, i have successfully installed and looking forward to stream music on my phone now :)

Thanks a lot for quick response

<!-- gh-comment-id:164692610 --> @riteshpuj2013 commented on GitHub (Dec 15, 2015): Hi Phanan, There was one issue with folder permissions of /home/ritesh/.npm and /home/ritesh/.composer I fixed it for my user Used following command: sudo chown -R ritesh.ritesh /home/ritesh/.npm /home/ritesh/.composer Created a new clone of the repository in a folder name PUBLIC_DIR and I repeated all the steps exactly (without sudo) as mentioned as here: https://github.com/phanan/koel/wiki Now, i have successfully installed and looking forward to stream music on my phone now :) Thanks a lot for quick response
Author
Owner

@phanan commented on GitHub (Dec 15, 2015):

Glad it works!

<!-- gh-comment-id:164701190 --> @phanan commented on GitHub (Dec 15, 2015): Glad it works!
Author
Owner

@riteshpuj2013 commented on GitHub (Dec 15, 2015):

Hi Phanan,

How can i run the server on different port ? For example port 80

<!-- gh-comment-id:164765207 --> @riteshpuj2013 commented on GitHub (Dec 15, 2015): Hi Phanan, How can i run the server on different port ? For example port 80
Author
Owner

@phanan commented on GitHub (Dec 15, 2015):

You would deploy like any other PHP website.

<!-- gh-comment-id:164767759 --> @phanan commented on GitHub (Dec 15, 2015): You would deploy like any other PHP website.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#39
No description provided.