mirror of
https://github.com/koel/koel.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #434] ErrorException in Application.php line 52 #308
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#308
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pabsroq on GitHub (Sep 4, 2016).
Original GitHub issue: https://github.com/koel/koel/issues/434
Hi @phanan
I am currently experiencing:
ErrorException in Application.php line 52:
file_get_contents(/var/www/html/koel/public/build/rev-manifest.json): failed to open stream: No such file or directory
ErrorException in Application.php line 52:
file_get_contents(/var/www/html/koel/public/build/rev-manifest.json): failed to open stream: No such file or directory (View: /var/www/html/koel/resources/views/index.blade.php)
Please see my environment below:
default['koel']['repos'] = [
'add-apt-repository ppa:mc3man/trusty-media', #for ffmpeg
'add-apt-repository ppa:ondrej/php',
'curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -'
]
default['koel']['packages'] = [
'git',
'vim',
'ffmpeg',
'frei0r-plugins',
'php5.6',
'php5.6-fpm',
'php5.6-mysql',
'php5.6-curl',
'php5.6-mbstring',
'php5.6-xml',
'nodejs',
'zip',
'unzip'
]
npm -v 3.10.3
node -v v6.5.0
php -v PHP 5.6.25-2
apachectl -v Server version: Apache/2.4.7 (Ubuntu)
I have performed the following
composer install
php artisan koel:init
as well asll
npminstall
composer install
php artisan koel:init
and nada, still getting the same error,
Thanks again!
@BernardGoldberger commented on GitHub (Sep 4, 2016):
@pabsroq this error is usually related to permission, for example running
npm installas sudo.Have a look at #426 or do a little search for similar issues that others had when installing Koel.
@pabsroq commented on GitHub (Sep 5, 2016):
Hi @bdgold, performed the below steps as www-data and still get the same results, also my /var/www/html folder permission is set to www-data
composer install
php artisan koel:init
php artisan serve --host 0.0.0.0
hmmm, now that you mention that, perhaps could be related because it needs to be run with a user with a /home, let me give that a shot.
@pabsroq commented on GitHub (Sep 5, 2016):
Hi @bdgold, just tried it again with /home/vagrant/koel and user vagrant, tried it with both npm install and the beggining and without it :(
npm install
composer install
php artisan koel:init
php artisan serve --host 0.0.0.0
This is a vagrant box,
2/2
ErrorException in Application.php line 52:
file_get_contents(/home/vagrant/koel/public/build/rev-manifest.json): failed to open stream: No such file or directory (View: /home/vagrant/koel/resources/views/index.blade.php)
1/2
ErrorException in Application.php line 52:
file_get_contents(/home/vagrant/koel/public/build/rev-manifest.json): failed to open stream: No such file or directory
@BernardGoldberger commented on GitHub (Sep 5, 2016):
I believe that the issue is whenever
npm installis run with a root user.@phanan commented on GitHub (Sep 5, 2016):
If the file is there but Koel still complains, 99.99% chance is a permission issue. Please make sure your file is readable by the Apache/nginx user.
@pabsroq commented on GitHub (Sep 5, 2016):
@bdgold @phanan
cloned koel within /home/vagrant and all operations are being ran as such, let me give it another shot!
@pabsroq commented on GitHub (Sep 6, 2016):
@phanan
Installed everything as www-data, ran:
su www-data -s /bin/bash
composer install
php artisan koel:init
php artisan serve --host 0.0.0.0
still getting the same error :(
@BernardGoldberger commented on GitHub (Sep 6, 2016):
@pabsroq can you provide the full log output of
koel:init.Also check the directory to see if the file exists or not.
@pabsroq commented on GitHub (Sep 6, 2016):
@phanan
Both files exist:
www-data@default-ubuntu-1404:
/html/koel$ ls -l /var/www/html/koel/resources/views/index.blade.php/html/koel$ ls -l /var/www/html/koel/resources/views/index.blade.php-rw-r--r-- 1 www-data www-data 1156 Sep 6 22:39 /var/www/html/koel/resources/views/index.blade.php
www-data@default-ubuntu-1404:
-rw-r--r-- 1 www-data www-data 1156 Sep 6 22:39 /var/www/html/koel/resources/views/index.blade.php
www-data@default-ubuntu-1404:~/html/koel$
Whoops, looks like something went wrong.
2/2
ErrorException in Application.php line 52:
file_get_contents(/var/www/html/koel/public/build/rev-manifest.json): failed to open stream: No such file or directory (View: /var/www/html/koel/resources/views/index.blade.php)
in Application.php line 52
at CompilerEngine->handleViewException(object(ErrorException), '1') in PhpEngine.php line 44
at PhpEngine->evaluatePath('/var/www/html/koel/storage/framework/views/78e695689c1f04e709656c0e33cfd14b1acd7d20.php', array('__env' => object(Factory), 'app' => object(Application))) in CompilerEngine.php line 59
at CompilerEngine->get('/var/www/html/koel/resources/views/index.blade.php', array('__env' => object(Factory), 'app' => object(Application))) in View.php line 147
at View->getContents() in View.php line 118
at View->renderContents() in View.php line 83
at View->render() in Response.php line 53
at Response->setContent(object(View)) in Response.php line 199
at Response->__construct(object(View)) in Router.php line 1087
at Router->prepareResponse(object(Request), object(View)) in Router.php line 725
at Router->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
at Pipeline->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Router.php line 726
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 699
at Router->dispatchToRoute(object(Request)) in Router.php line 675
at Router->dispatch(object(Request)) in Kernel.php line 246
at Kernel->Illuminate\Foundation\Http{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
at Pipeline->Illuminate\Routing{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Kernel.php line 132
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 99
at Kernel->handle(object(Request)) in index.php line 53
at require_once('/var/www/html/koel/index.php') in server.php line 19
1/2
ErrorException in Application.php line 52:
file_get_contents(/var/www/html/koel/public/build/rev-manifest.json): failed to open stream: No such file or directory
in Application.php line 52
at HandleExceptions->handleError('2', 'file_get_contents(/var/www/html/koel/public/build/rev-manifest.json): failed to open stream: No such file or directory', '/var/www/html/koel/app/Application.php', '52', array('file' => 'css/vendors.css', 'manifestFile' => '/var/www/html/koel/public/build/rev-manifest.json', 'manifest' => null))
at file_get_contents('/var/www/html/koel/public/build/rev-manifest.json') in Application.php line 52
at Application->rev('css/vendors.css') in Facade.php line 218
at Facade::__callStatic('rev', array('css/vendors.css')) in 78e695689c1f04e709656c0e33cfd14b1acd7d20.php line 20
at App::rev('css/vendors.css') in 78e695689c1f04e709656c0e33cfd14b1acd7d20.php line 20
at include('/var/www/html/koel/storage/framework/views/78e695689c1f04e709656c0e33cfd14b1acd7d20.php') in PhpEngine.php line 42
at PhpEngine->evaluatePath('/var/www/html/koel/storage/framework/views/78e695689c1f04e709656c0e33cfd14b1acd7d20.php', array('__env' => object(Factory), 'app' => object(Application))) in CompilerEngine.php line 59
at CompilerEngine->get('/var/www/html/koel/resources/views/index.blade.php', array('__env' => object(Factory), 'app' => object(Application))) in View.php line 147
at View->getContents() in View.php line 118
at View->renderContents() in View.php line 83
at View->render() in Response.php line 53
at Response->setContent(object(View)) in Response.php line 199
at Response->__construct(object(View)) in Router.php line 1087
at Router->prepareResponse(object(Request), object(View)) in Router.php line 725
at Router->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
at Pipeline->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Router.php line 726
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 699
at Router->dispatchToRoute(object(Request)) in Router.php line 675
at Router->dispatch(object(Request)) in Kernel.php line 246
at Kernel->Illuminate\Foundation\Http{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
at Pipeline->Illuminate\Routing{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Kernel.php line 132
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 99
at Kernel->handle(object(Request)) in index.php line 53
at require_once('/var/www/html/koel/index.php') in server.php line 19
@BernardGoldberger commented on GitHub (Sep 6, 2016):
I would like to see the console output of
koel:initornpm install.@pabsroq commented on GitHub (Sep 6, 2016):
@bdgold run it right now or in a new environment?
@BernardGoldberger commented on GitHub (Sep 6, 2016):
A new environment would be optimal.
@pabsroq commented on GitHub (Sep 6, 2016):
@bdgold Here you go
-----> Kitchen is finished. (3m35.38s)
Pablos-MacBook-Pro-2:koel pablo$ kitchen login
Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-92-generic x86_64)
Last login: Tue Sep 6 23:31:00 2016 from 10.0.2.2
vagrant@default-ubuntu-1404:~$ sudo su
root@default-ubuntu-1404:/home/vagrant# su www-data -s /bin/bash
www-data@default-ubuntu-1404:/home/vagrant$
www-data@default-ubuntu-1404:/home/vagrant$ cd /var/www/html/koel/
www-data@default-ubuntu-1404:~/html/koel$ ls -l
total 232
drwxr-xr-x 15 www-data www-data 4096 Sep 6 23:33 app
-rwxr-xr-x 1 www-data www-data 1646 Sep 6 23:33 artisan
drwxr-xr-x 3 www-data www-data 4096 Sep 6 23:33 bootstrap
-rw-r--r-- 1 www-data www-data 1678 Sep 6 23:33 composer.json
-rw-r--r-- 1 www-data www-data 140633 Sep 6 23:33 composer.lock
drwxr-xr-x 2 www-data www-data 4096 Sep 6 23:33 config
drwxr-xr-x 5 www-data www-data 4096 Sep 6 23:33 database
-rw-r--r-- 1 www-data www-data 1572 Sep 6 23:33 gulpfile.js
-rw-r--r-- 1 www-data www-data 1760 Sep 6 23:33 index.php
-rw-r--r-- 1 www-data www-data 867 Sep 6 23:33 ISSUE_TEMPLATE.md
-rw-r--r-- 1 www-data www-data 1074 Sep 6 23:33 LICENSE.md
-rw-r--r-- 1 www-data www-data 1283 Sep 6 23:33 nginx.conf.example
-rw-r--r-- 1 www-data www-data 1614 Sep 6 23:33 package.json
-rw-r--r-- 1 www-data www-data 87 Sep 6 23:33 phpspec.yml
-rw-r--r-- 1 www-data www-data 1072 Sep 6 23:33 phpunit.xml
drwxr-xr-x 2 www-data www-data 4096 Sep 6 23:33 public
-rw-r--r-- 1 www-data www-data 10191 Sep 6 23:33 README.md
drwxr-xr-x 5 www-data www-data 4096 Sep 6 23:33 resources
-rw-r--r-- 1 www-data www-data 24 Sep 6 23:33 robots.txt
-rw-r--r-- 1 www-data www-data 529 Sep 6 23:33 server.php
drwxr-xr-x 4 www-data www-data 4096 Sep 6 23:33 storage
drwxr-xr-x 5 www-data www-data 4096 Sep 6 23:33 tests
APP_URL=http://localhost/koel
DB_CONNECTION=mysql
DB_HOST=192.168.0.100
DB_DATABASE=koel
DB_USERNAME=koel
DB_PASSWORD=koel
ADMIN_EMAIL=admin@admin.ca
ADMIN_NAME=admin
ADMIN_PASSWORD=admin
FFMPEG_PATH=/usr/bin/ffmpeg
www-data@default-ubuntu-1404:
/html/koel$ npm -v/html/koel$ node -v3.10.3
www-data@default-ubuntu-1404:
v6.5.0
www-data@default-ubuntu-1404:~/html/koel$ nodejs -v
v6.5.0
www-data@default-ubuntu-1404:~/html/koel$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
Downloading: 100%
symfony/var-dumper suggests installing ext-symfony_debug ()
symfony/translation suggests installing symfony/config ()
symfony/routing suggests installing doctrine/annotations (For using the annotation loader)
symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader)
symfony/routing suggests installing symfony/dependency-injection (For loading routes from a service)
symfony/routing suggests installing symfony/expression-language (For using expression matching)
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/http-kernel suggests installing symfony/browser-kit ()
symfony/http-kernel suggests installing symfony/config ()
symfony/http-kernel suggests installing symfony/dependency-injection ()
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing videlalvaro/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
league/flysystem suggests installing league/flysystem-aws-s3-v2 (Allows you to use S3 storage with AWS SDK v2)
league/flysystem suggests installing league/flysystem-aws-s3-v3 (Allows you to use S3 storage with AWS SDK v3)
league/flysystem suggests installing league/flysystem-azure (Allows you to use Windows Azure Blob storage)
league/flysystem suggests installing league/flysystem-cached-adapter (Flysystem adapter decorator for metadata caching)
league/flysystem suggests installing league/flysystem-copy (Allows you to use Copy.com storage)
league/flysystem suggests installing league/flysystem-dropbox (Allows you to use Dropbox storage)
league/flysystem suggests installing league/flysystem-eventable-filesystem (Allows you to use EventableFilesystem)
league/flysystem suggests installing league/flysystem-rackspace (Allows you to use Rackspace Cloud Files)
league/flysystem suggests installing league/flysystem-sftp (Allows you to use SFTP server storage via phpseclib)
league/flysystem suggests installing league/flysystem-webdav (Allows you to use WebDAV storage)
league/flysystem suggests installing league/flysystem-ziparchive (Allows you to use ZipArchive adapter)
laravel/framework suggests installing doctrine/dbal (Required to rename columns and drop SQLite columns (~2.4).)
laravel/framework suggests installing league/flysystem-aws-s3-v3 (Required to use the Flysystem S3 driver (~1.0).)
laravel/framework suggests installing league/flysystem-rackspace (Required to use the Flysystem Rackspace driver (~1.0).)
laravel/framework suggests installing pda/pheanstalk (Required to use the beanstalk queue driver (~3.0).)
laravel/framework suggests installing predis/predis (Required to use the redis cache and queue drivers (~1.0).)
laravel/framework suggests installing pusher/pusher-php-server (Required to use the Pusher broadcast driver (~2.0).)
aws/aws-sdk-php suggests installing aws/aws-php-sns-message-validator (To validate incoming SNS notifications)
aws/aws-sdk-php suggests installing doctrine/cache (To use the DoctrineCacheAdapter)
aws/aws-sdk-php-laravel suggests installing laravel/lumen-framework (To test the Lumen bindings)
symfony/class-loader suggests installing symfony/polyfill-apcu (For using ApcClassLoader on HHVM)
phpdocumentor/reflection-docblock suggests installing dflydev/markdown (~1.0)
phpdocumentor/reflection-docblock suggests installing erusev/parsedown (~1.0)
barryvdh/laravel-ide-helper suggests installing doctrine/dbal (Load information from the database about models for phpdocs (~2.3))
phpseclib/phpseclib suggests installing ext-gmp (Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.)
phpseclib/phpseclib suggests installing ext-mcrypt (Install the Mcrypt extension in order to speed up a wide variety of cryptographic operations.)
phpseclib/phpseclib suggests installing pear-pear/PHP_Compat (Install PHP_Compat to get phpseclib working on PHP < 4.3.3.)
fzaninotto/faker suggests installing ext-intl ()
phpspec/phpspec suggests installing phpspec/nyan-formatters (~1.0 – Adds Nyan formatters)
sebastian/global-state suggests installing ext-uopz ()
phpunit/phpunit-mock-objects suggests installing ext-soap (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
Generating autoload files
www-data@default-ubuntu-1404:~/html/koel$ php artisan koel:init
Attempting to install or upgrade Koel.
Remember, you can always install/upgrade manually following the guide here:
📙 https://github.com/phanan/koel/wiki
Generating app key
Generating JWT secret
Migrating database
Seeding initial data
Executing npm install, gulp and whatnot
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN prefer global coffee-script@1.10.0 should be installed with -g
npm WARN prefer global marked@0.3.6 should be installed with -g
npm WARN prefer global node-gyp@3.4.0 should be installed with -g
🎆 Success! You can now run Koel from localhost with
php artisan serve.Again, for more configuration guidance, refer to
📙 https://github.com/phanan/koel/wiki.
WIKI ROCKS WIKI RULES.
KTHXBYE.
www-data@default-ubuntu-1404:~/html/koel$ php artisan serve --host 0.0.0.0
Laravel development server started on http://0.0.0.0:8000/
@BernardGoldberger commented on GitHub (Sep 6, 2016):
There is either some stuff missing or
gulpdid not run. could you rungulpand see what happens.@pabsroq commented on GitHub (Sep 6, 2016):
@bdgold
Gulp wasnt installed so had to add it as root
root@default-ubuntu-1404:/var/www/html/koel# su www-data -s /bin/bash
www-data@default-ubuntu-1404:~/html/koel$ gulp
[23:55:09] Using gulpfile ~/html/koel/gulpfile.js
[23:55:09] Starting 'default'...
[23:55:09] Starting 'browserify'...
Fetching Browserify Source Files...
Saving To...
[23:55:10] Finished 'default' after 709 ms
[23:55:10] gulp-notify: [Laravel Elixir] Browserify Failed!: ENOENT: no such file or directory, scandir '/var/www/html/koel/node_modules/node-sass/vendor' while parsing file: /var/www/html/koel/resources/assets/js/app.vue
[23:55:10] gulp-notify: [Error running notifier] Could not send message: not found: notify-send
{ Error: ENOENT: no such file or directory, scandir '/var/www/html/koel/node_modules/node-sass/vendor' while parsing file: /var/www/html/koel/resources/assets/js/app.vue
at Error (native)
at Object.fs.readdirSync (fs.js:951:18)
at Object.getInstalledBinaries (/var/www/html/koel/node_modules/node-sass/lib/extensions.js:119:13)
at foundBinariesList (/var/www/html/koel/node_modules/node-sass/lib/errors.js:20:15)
at foundBinaries (/var/www/html/koel/node_modules/node-sass/lib/errors.js:15:5)
at Object.module.exports.missingBinary (/var/www/html/koel/node_modules/node-sass/lib/errors.js:45:5)
at Object. (/var/www/html/koel/node_modules/node-sass/lib/index.js:15:28)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
errno: -2,
code: 'ENOENT',
syscall: 'scandir',
path: '/var/www/html/koel/node_modules/node-sass/vendor',
filename: '/var/www/html/koel/resources/assets/js/app.vue',
stream:
Labeled {
_readableState:
ReadableState {
highWaterMark: 16,
buffer: [],
length: 0,
pipes: [Object],
pipesCount: 1,
flowing: true,
ended: false,
endEmitted: false,
reading: true,
sync: false,
needReadable: true,
emittedReadable: false,
readableListening: false,
objectMode: true,
defaultEncoding: 'utf8',
ranOut: false,
awaitDrain: 0,
readingMore: false,
decoder: null,
encoding: null,
resumeScheduled: false },
readable: true,
domain: null,
_events:
{ end: [Object],
error: [Object],
data: [Function: ondata],
_mutate: [Object] },
_eventsCount: 4,
_maxListeners: undefined,
_writableState:
WritableState {
highWaterMark: 16,
objectMode: true,
needDrain: false,
ending: true,
ended: true,
finished: true,
decodeStrings: true,
defaultEncoding: 'utf8',
length: 0,
writing: false,
corked: 0,
sync: false,
bufferProcessing: false,
onwrite: [Function],
writecb: null,
writelen: 0,
buffer: [],
pendingcb: 0,
prefinished: true,
errorEmitted: false },
writable: true,
allowHalfOpen: true,
_options: { objectMode: true },
_wrapOptions: { objectMode: true },
_streams: [ [Object] ],
length: 1,
label: 'deps' } }
at Error (native)
at Object.fs.readdirSync (fs.js:951:18)
at Object.getInstalledBinaries (/var/www/html/koel/node_modules/node-sass/lib/extensions.js:119:13)
at foundBinariesList (/var/www/html/koel/node_modules/node-sass/lib/errors.js:20:15)
at foundBinaries (/var/www/html/koel/node_modules/node-sass/lib/errors.js:15:5)
at Object.module.exports.missingBinary (/var/www/html/koel/node_modules/node-sass/lib/errors.js:45:5)
at Object. (/var/www/html/koel/node_modules/node-sass/lib/index.js:15:28)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
[23:55:10] Finished 'browserify' after 1.18 s
[23:55:10] Starting 'sass'...
[23:55:10] 'sass' errored after 9.12 ms
[23:55:10] Error: ENOENT: no such file or directory, scandir '/var/www/html/koel/node_modules/node-sass/vendor'
at Error (native)
at Object.fs.readdirSync (fs.js:951:18)
at Object.getInstalledBinaries (/var/www/html/koel/node_modules/node-sass/lib/extensions.js:119:13)
at foundBinariesList (/var/www/html/koel/node_modules/node-sass/lib/errors.js:20:15)
at foundBinaries (/var/www/html/koel/node_modules/node-sass/lib/errors.js:15:5)
at Object.module.exports.missingBinary (/var/www/html/koel/node_modules/node-sass/lib/errors.js:45:5)
at Object. (/var/www/html/koel/node_modules/node-sass/lib/index.js:15:28)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
[23:55:10] Error in plugin 'run-sequence(sass)'
Message:
ENOENT: no such file or directory, scandir '/var/www/html/koel/node_modules/node-sass/vendor'
Details:
errno: -2
code: ENOENT
syscall: scandir
path: /var/www/html/koel/node_modules/node-sass/vendor
Stack:
Error: ENOENT: no such file or directory, scandir '/var/www/html/koel/node_modules/node-sass/vendor'
at Error (native)
at Object.fs.readdirSync (fs.js:951:18)
at Object.getInstalledBinaries (/var/www/html/koel/node_modules/node-sass/lib/extensions.js:119:13)
at foundBinariesList (/var/www/html/koel/node_modules/node-sass/lib/errors.js:20:15)
at foundBinaries (/var/www/html/koel/node_modules/node-sass/lib/errors.js:15:5)
at Object.module.exports.missingBinary (/var/www/html/koel/node_modules/node-sass/lib/errors.js:45:5)
at Object. (/var/www/html/koel/node_modules/node-sass/lib/index.js:15:28)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
www-data@default-ubuntu-1404:~/html/koel$
@BernardGoldberger commented on GitHub (Sep 7, 2016):
I completely forgot to ask, what OS are you running?
@pabsroq commented on GitHub (Sep 7, 2016):
www-data@default-ubuntu-1404:~/html/koel$ uname -a
Linux default-ubuntu-1404 3.13.0-92-generic #139-Ubuntu SMP Tue Jun 28 20:42:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
It's a vagrant box, box: bento/ubuntu-14.04 executed via kitchen converge
@BernardGoldberger commented on GitHub (Sep 7, 2016):
I don't have a ubuntu test environment right now.
I believe the issue is because you are running everything with
suorsudowhich means its running with root access.@pabsroq commented on GitHub (Sep 7, 2016):
I am running them as www-data as you can see on my screen grabs :(
that is the apache user, with no sudo privileges, su was only used to act as that user :s
@phanan commented on GitHub (Sep 7, 2016):
Apparently
node-sasswasn't installed? I'm re-opening this so that others can help you as well.@pabsroq commented on GitHub (Sep 7, 2016):
@phanan so do I need to install gulp as well as node-sass?
My cookbook is almost ready so if you send me some details or confirmation I will upload it to github.
Thanks,
@phanan commented on GitHub (Sep 7, 2016):
@pabsroq Try installing them individually – though it's weird that you'd have to, because
npm installshould handle it for you automatically.@BernardGoldberger commented on GitHub (Sep 7, 2016):
Maybe this is the issue he is having.
@phanan it seems like
npm installdid not rung when e rankoel:init.@pabsroq commented on GitHub (Sep 7, 2016):
@phanan so install gulp and then node-sass?
do I perform the npm install prior to php artisan koel:init?
@bdgold npm install does run during the koel:init
@BernardGoldberger commented on GitHub (Sep 7, 2016):
Koel:initshould run first, and just verify thatnpm intallran as well and that there are no errors.@pabsroq this issue you are having is beyond Koel, do some looking around on github and the web for users that had similar issues.
@pabsroq commented on GitHub (Sep 7, 2016):
@bdgold @phanan
After performing a composer install, koel:init
then
www-data@default-ubuntu-1404:~/html/koel$ npm ls | grep sass
│ ├─┬ gulp-sass@2.3.2
├─┬ node-sass@3.9.3
│ └─┬ sass-graph@2.1.2
they appear to be installed locally...
@BernardGoldberger commented on GitHub (Sep 7, 2016):
@pabsroq try running
npm rebuild node-sass@pabsroq commented on GitHub (Sep 9, 2016):
@bdgold the issue seems to be related to the vagrant bento box, got it to work in 1 go on Ubuntu 16, now just addressing some minor issues over here but at least the main page did not error out and installed using the same steps from the cookbook, will upload it shortly and share the link with you if interested
@BernardGoldberger commented on GitHub (Sep 9, 2016):
My suggestion comes from https://github.com/sass/node-sass/issues/1579#issuecomment-227662011, but you found another way around.
And yes, sure, please do share.
@pabsroq commented on GitHub (Sep 9, 2016):
@bdgold will give that another shot and report back
Weird thing is that I am now facing this issue "https://github.com/phanan/koel/issues/432" on the working Ubuntu 16 box,
@adamwbb commented on GitHub (Sep 10, 2016):
This issue seems to only be happening on Version 3.0.0 and above.
And when you try to run the npm install as a non root user for version 3.0.0 and above you get the following error:
npm weird error 8
@pabsroq commented on GitHub (Sep 10, 2016):
For the time being I gave up on writing the cookbook on a vagrant box and fully running on a Fresh ubuntu16 VM using my cookbook steps, still thinking about releasing the cookbook, just not too sure yet.
@BernardGoldberger commented on GitHub (Sep 11, 2016):
@adamwbb before the
npm weird error 8line there usually should be a few lines of output that should help figure out whats causing it.@adamwbb commented on GitHub (Sep 11, 2016):
ReferenceError: Promise is not defined
at EventEmitter.compiler.compile (/home/koel/koel/node_modules/vueify/lib/compiler.js:83:3)
at Stream.end (/home/koel/koel/node_modules/vueify/index.js:35:14)
at _end (/home/koel/koel/node_modules/vueify/node_modules/through/index.js:65:9)
at Stream.stream.end (/home/koel/koel/node_modules/vueify/node_modules/through/index.js:74:5)
at DestroyableTransform.onend (/home/koel/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:537:10)
at DestroyableTransform.g (events.js:180:16)
at DestroyableTransform.emit (events.js:117:20)
at /home/koel/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:934:16
at process._tickDomainCallback (node.js:502:13)
npm ERR! weird error 8
npm ERR! not ok code 0
This error happens on 3.0.0 and above
and here is from 3.0.1:
[koel@localhost koel]$ git fetch --all
Fetching origin
[koel@localhost koel]$ git checkout v3.0.1
Previous HEAD position was ecca215... Change the battle theme
HEAD is now at 3ab6780... Bump version
[koel@localhost koel]$ npm i
[23:06:47] Using gulpfile ~/koel/gulpfile.js
[23:06:47] Starting 'default'...
[23:06:47] Starting 'browserify'...
Fetching Browserify Source Files...
Saving To...
[23:06:47] Finished 'default' after 658 ms
/home/koel/koel/node_modules/vueify/lib/compiler.js:83
Promise.all([
^
ReferenceError: Promise is not defined
at EventEmitter.compiler.compile (/home/koel/koel/node_modules/vueify/lib/compiler.js:83:3)
at Stream.end (/home/koel/koel/node_modules/vueify/index.js:35:14)
at _end (/home/koel/koel/node_modules/vueify/node_modules/through/index.js:65:9)
at Stream.stream.end (/home/koel/koel/node_modules/vueify/node_modules/through/index.js:74:5)
at DestroyableTransform.onend (/home/koel/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:537:10)
at DestroyableTransform.g (events.js:180:16)
at DestroyableTransform.emit (events.js:117:20)
at /home/koel/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:934:16
at process._tickDomainCallback (node.js:502:13)
npm ERR! weird error 8
npm ERR! not ok code 0
@phanan commented on GitHub (Sep 11, 2016):
@adamwbb Please don't hijack this issue with another. For your problem, try upgrading Node. If the problem persists, please open a new issue.