koel / koel

🐦 A personal music streaming server that works.
https://koel.dev
MIT License
15.92k stars 1.96k forks source link

Can't Login on Fedora 31 #1141

Closed navjotjsingh closed 4 years ago

navjotjsingh commented 4 years ago

Describe the bug I tried to install it on Fedora 31. Everything went fine. The site loads fine as well. But I can't seem to log in. There is nothing in PHP or Koel logs to suggest any error. I have reset the password manually but doesn't help.

Output of composer install

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 141 installs, 0 updates, 0 removals
  - Installing kylekatarnls/update-helper (1.2.0): Downloading (100%)
  - Installing ocramius/package-versions (1.4.0): Downloading (100%)
  - Installing symfony/polyfill-ctype (v1.13.1): Downloading (100%)
  - Installing phpoption/phpoption (1.5.0): Downloading (100%)
  - Installing vlucas/phpdotenv (v3.6.0): Downloading (100%)
  - Installing symfony/css-selector (v3.4.32): Downloading (100%)
  - Installing tijsverkoyen/css-to-inline-styles (2.2.1): Downloading (100%)
  - Installing symfony/polyfill-php72 (v1.12.0): Downloading (100%)
  - Installing symfony/polyfill-mbstring (v1.13.1): Downloading (100%)
  - Installing symfony/var-dumper (v4.3.5): Downloading (100%)
  - Installing symfony/routing (v4.3.5): Downloading (100%)
  - Installing symfony/process (v4.3.5): Downloading (100%)
  - Installing symfony/polyfill-php73 (v1.12.0): Downloading (100%)
  - Installing symfony/polyfill-intl-idn (v1.12.0): Downloading (100%)
  - Installing symfony/mime (v4.3.8): Downloading (100%)
  - Installing symfony/http-foundation (v4.3.8): Downloading (100%)
  - Installing symfony/event-dispatcher-contracts (v1.1.7): Downloading (100%)
  - Installing symfony/event-dispatcher (v4.3.8): Downloading (100%)
  - Installing psr/log (1.1.2): Downloading (100%)
  - Installing symfony/debug (v4.3.8): Downloading (100%)
  - Installing symfony/http-kernel (v4.3.8): Downloading (100%)
  - Installing symfony/finder (v4.3.5): Downloading (100%)
  - Installing psr/container (1.0.0): Downloading (100%)
  - Installing symfony/service-contracts (v1.1.7): Downloading (100%)
  - Installing symfony/console (v4.3.5): Downloading (100%)
  - Installing symfony/polyfill-iconv (v1.12.0): Downloading (100%)
  - Installing doctrine/lexer (1.0.2): Downloading (100%)
  - Installing egulias/email-validator (2.1.11): Downloading (100%)
  - Installing swiftmailer/swiftmailer (v6.2.1): Downloading (100%)
  - Installing paragonie/random_compat (v9.99.99): Downloading (100%)
  - Installing ramsey/uuid (3.8.0): Downloading (100%)
  - Installing psr/simple-cache (1.0.1): Downloading (100%)
  - Installing opis/closure (3.4.0): Downloading (100%)
  - Installing symfony/translation-contracts (v1.1.7): Downloading (100%)
  - Installing symfony/translation (v4.3.5): Downloading (100%)
  - Installing nesbot/carbon (1.39.0): Downloading (100%)
  - Installing monolog/monolog (1.25.1): Downloading (100%)
  - Installing league/flysystem (1.0.55): Downloading (100%)
  - Installing erusev/parsedown (1.7.3): Downloading (100%)
  - Installing dragonmantank/cron-expression (v2.3.0): Downloading (100%)
  - Installing doctrine/inflector (v1.3.0): Downloading (100%)
  - Installing laravel/framework (v5.8.35): Downloading (100%)
  - Installing mtdowling/jmespath.php (2.4.0): Downloading (100%)
  - Installing ralouphie/getallheaders (3.0.3): Downloading (100%)
  - Installing psr/http-message (1.0.1): Downloading (100%)
  - Installing guzzlehttp/psr7 (1.6.1): Downloading (100%)
  - Installing guzzlehttp/promises (v1.3.1): Downloading (100%)
  - Installing guzzlehttp/guzzle (6.4.1): Downloading (100%)
  - Installing aws/aws-sdk-php (3.112.17): Downloading (100%)
  - Installing aws/aws-sdk-php-laravel (3.4.0): Downloading (100%)
  - Installing daverandom/resume (v0.0.3): Downloading (100%)
  - Installing doctrine/cache (v1.8.1): Downloading (100%)
  - Installing doctrine/event-manager (v1.0.0): Downloading (100%)
  - Installing fideloper/proxy (4.2.1): Downloading (100%)
  - Installing jackiedo/dotenv-editor (1.0.8): Downloading (100%)
  - Installing james-heinrich/getid3 (v1.9.18): Downloading (100%)
  - Installing laravel/helpers (v1.1.1): Downloading (100%)
  - Installing predis/predis (v1.1.1): Downloading (100%)
  - Installing paragonie/sodium_compat (v1.12.0): Downloading (100%)
  - Installing pusher/pusher-php-server (v4.1.0): Downloading (100%)
  - Installing symfony/polyfill-util (v1.12.0): Downloading (100%)
  - Installing symfony/polyfill-php56 (v1.12.0): Downloading (100%)
  - Installing namshi/jose (7.2.3): Downloading (100%)
  - Installing tymon/jwt-auth (0.5.12): Downloading (100%)
  - Installing doctrine/dbal (v2.9.3): Downloading (100%)
  - Installing symfony/filesystem (v4.3.5): Downloading (100%)
  - Installing seld/phar-utils (1.0.1): Downloading (100%)
  - Installing seld/jsonlint (1.7.1): Downloading (100%)
  - Installing justinrainbow/json-schema (5.2.9): Downloading (100%)
  - Installing composer/xdebug-handler (1.3.3): Downloading (100%)
  - Installing composer/spdx-licenses (1.5.2): Downloading (100%)
  - Installing composer/semver (1.5.0): Downloading (100%)
  - Installing composer/ca-bundle (1.2.4): Downloading (100%)
  - Installing composer/composer (1.9.0): Downloading (100%)
  - Installing barryvdh/reflection-docblock (v2.0.6): Downloading (100%)
  - Installing barryvdh/laravel-ide-helper (v2.6.5): Downloading (100%)
  - Installing facebook/webdriver (1.7.1): Downloading (100%)
  - Installing filp/whoops (2.5.0): Downloading (100%)
  - Installing hamcrest/hamcrest-php (v2.0.0): Downloading (100%)
  - Installing jakub-onderka/php-console-color (v0.2): Downloading (100%)
  - Installing symfony/dom-crawler (v3.4.36): Downloading (100%)
  - Installing laravel/browser-kit-testing (v2.0.0): Downloading (100%)
  - Installing nikic/php-parser (v4.2.4): Downloading (100%)
  - Installing jakub-onderka/php-console-highlighter (v0.4): Downloading (100%)
  - Installing dnoegel/php-xdg-base-dir (0.1): Downloading (100%)
  - Installing psy/psysh (v0.9.9): Downloading (100%)
  - Installing laravel/tinker (v1.0.10): Downloading (100%)
  - Installing mikey179/vfsstream (v1.6.8): Downloading (100%)
  - Installing symfony/yaml (v4.3.5): Downloading (100%)
  - Installing mnapoli/front-yaml (1.6.0): Downloading (100%)
  - Installing php-di/invoker (2.0.0): Downloading (100%)
  - Installing mnapoli/silly (1.7.1): Downloading (100%)
  - Installing mpociot/reflection-docblock (1.0.1): Downloading (100%)
  - Installing windwalker/structure (3.5.12): Downloading (100%)
  - Installing windwalker/renderer (3.5.12): Downloading (100%)
  - Installing mpociot/documentarian (0.3.0): Downloading (100%)
  - Installing fzaninotto/faker (v1.9.0): Downloading (100%)
  - Installing mpociot/laravel-apidoc-generator (3.17.1): Downloading (100%)
  - Installing nette/utils (v3.0.2): Downloading (100%)
  - Installing nette/finder (v2.5.1): Downloading (100%)
  - Installing nette/php-generator (v3.2.3): Downloading (100%)
  - Installing phpstan/phpdoc-parser (0.3.5): Downloading (100%)
  - Installing nette/schema (v1.0.0): Downloading (100%)
  - Installing nette/robot-loader (v3.2.0): Downloading (100%)
  - Installing nette/neon (v3.0.0): Downloading (100%)
  - Installing nette/di (v3.0.1): Downloading (100%)
  - Installing nette/bootstrap (v3.0.1): Downloading (100%)
  - Installing jean85/pretty-package-versions (1.2): Downloading (100%)
  - Installing phpstan/phpstan (0.11.19): Downloading (100%)
  - Installing sebastian/recursion-context (3.0.0): Downloading (100%)
  - Installing sebastian/exporter (3.1.2): Downloading (100%)
  - Installing sebastian/diff (3.0.2): Downloading (100%)
  - Installing sebastian/comparator (3.0.2): Downloading (100%)
  - Installing mockery/mockery (1.3.0): Downloading (100%)
  - Installing nunomaduro/larastan (v0.4.3): Downloading (100%)
  - Installing phpunit/php-text-template (1.2.1): Downloading (100%)
  - Installing php-mock/php-mock (2.1.2): Downloading (100%)
  - Installing php-mock/php-mock-integration (2.0.0): Downloading (100%)
  - Installing php-mock/php-mock-mockery (1.3.0): Downloading (100%)
  - Installing webmozart/assert (1.5.0): Downloading (100%)
  - Installing phpdocumentor/reflection-common (2.0.0): Downloading (100%)
  - Installing phpdocumentor/type-resolver (1.0.1): Downloading (100%)
  - Installing phpdocumentor/reflection-docblock (4.3.2): Downloading (100%)
  - Installing phpunit/php-token-stream (3.1.1): Downloading (100%)
  - Installing sebastian/version (2.0.1): Downloading (100%)
  - Installing sebastian/resource-operations (2.0.1): Downloading (100%)
  - Installing sebastian/object-reflector (1.1.1): Downloading (100%)
  - Installing sebastian/object-enumerator (3.0.3): Downloading (100%)
  - Installing sebastian/global-state (2.0.0): Downloading (100%)
  - Installing sebastian/environment (4.2.2): Downloading (100%)
  - Installing phpunit/php-timer (2.1.2): Downloading (100%)
  - Installing phpunit/php-file-iterator (2.0.2): Downloading (100%)
  - Installing theseer/tokenizer (1.1.3): Downloading (100%)
  - Installing sebastian/code-unit-reverse-lookup (1.0.1): Downloading (100%)
  - Installing phpunit/php-code-coverage (6.1.4): Downloading (100%)
  - Installing doctrine/instantiator (1.2.0): Downloading (100%)
  - Installing phpspec/prophecy (1.9.0): Downloading (100%)
  - Installing phar-io/version (2.0.1): Downloading (100%)
  - Installing phar-io/manifest (1.0.3): Downloading (100%)
  - Installing myclabs/deep-copy (1.9.3): Downloading (100%)
  - Installing phpunit/phpunit (7.5.17): Downloading (100%)
symfony/var-dumper suggests installing ext-intl (To show region name in time zone dump)
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/expression-language (For using expression matching)
symfony/polyfill-intl-idn suggests installing ext-intl (For best performance)
symfony/event-dispatcher-contracts suggests installing psr/event-dispatcher
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
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/lock
egulias/email-validator suggests installing ext-intl (PHP Internationalization Libraries are required to use the SpoofChecking v                                                         alidation)
swiftmailer/swiftmailer suggests installing ext-intl (Needed to support internationalized email addresses)
swiftmailer/swiftmailer suggests installing true/punycode (Needed to support internationalized email addresses, if ext-intl is n                                                         ot installed)
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random byte                                                         s.)
ramsey/uuid suggests installing ext-libsodium (Provides the PECL libsodium extension for use with the SodiumRandomGenerator)
ramsey/uuid suggests installing ext-uuid (Provides the PECL UUID extension for use with the PeclUuidTimeGenerator and PeclUuidRa                                                         ndomGenerator)
ramsey/uuid suggests installing ircmaxell/random-lib (Provides RandomLib for use with the RandomLibAdapter)
ramsey/uuid suggests installing moontoast/math (Provides support for converting UUID to 128-bit integer (in string form).)
ramsey/uuid suggests installing ramsey/uuid-console (A console application for generating UUIDs with ramsey/uuid)
ramsey/uuid suggests installing ramsey/uuid-doctrine (Allows the use of Ramsey\Uuid\Uuid as Doctrine field type.)
symfony/translation suggests installing symfony/config
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-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
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 sentry/sentry (Allow sending log messages to a Sentry server)
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-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)
league/flysystem suggests installing spatie/flysystem-dropbox (Allows you to use Dropbox storage)
league/flysystem suggests installing srmklive/flysystem-dropbox-v2 (Allows you to use Dropbox storage for PHP 5 applications)
laravel/framework suggests installing ext-gd (Required to use Illuminate\Http\Testing\FileFactory::image().)
laravel/framework suggests installing ext-posix (Required to use all features of the queue worker.)
laravel/framework suggests installing league/flysystem-aws-s3-v3 (Required to use the Flysystem S3 driver (^1.0).)
laravel/framework suggests installing league/flysystem-cached-adapter (Required to use the Flysystem cache (^1.0).)
laravel/framework suggests installing league/flysystem-rackspace (Required to use the Flysystem Rackspace driver (^1.0).)
laravel/framework suggests installing league/flysystem-sftp (Required to use the Flysystem SFTP driver (^1.0).)
laravel/framework suggests installing moontoast/math (Required to use ordered UUIDs (^1.1).)
laravel/framework suggests installing nexmo/client (Required to use the Nexmo transport (^1.0).)
laravel/framework suggests installing pda/pheanstalk (Required to use the beanstalk queue driver (^4.0).)
laravel/framework suggests installing symfony/psr-http-message-bridge (Required to use PSR-7 bridging features (^1.1).)
laravel/framework suggests installing wildbit/swiftmailer-postmark (Required to use Postmark mail driver (^3.0).)
guzzlehttp/psr7 suggests installing zendframework/zend-httphandlerrunner (Emit PSR-7 responses)
aws/aws-sdk-php suggests installing aws/aws-php-sns-message-validator (To validate incoming SNS notifications)
aws/aws-sdk-php-laravel suggests installing laravel/lumen-framework (To test the Lumen bindings)
doctrine/cache suggests installing alcaeus/mongo-php-adapter (Required to use legacy MongoDB driver)
james-heinrich/getid3 suggests installing ext-SimpleXML (SimpleXML extension is required to analyze RIFF/WAV/BWF audio files (al                                                         so requires `ext-libxml`).)
james-heinrich/getid3 suggests installing ext-com_dotnet (COM extension is required when loading files larger than 2GB on Window                                                         s.)
james-heinrich/getid3 suggests installing ext-dba (DBA extension is required to use the DBA database as a cache storage.)
james-heinrich/getid3 suggests installing ext-mysql (MySQL extension is required to use the MySQL database as a cache storage (d                                                         eprecated in PHP 5.5, removed in PHP >= 7.0, use `ext-mysqli` instead).)
james-heinrich/getid3 suggests installing ext-rar (RAR extension is required for RAR archive module.)
predis/predis suggests installing ext-phpiredis (Allows faster serialization and deserialization of the Redis protocol)
paragonie/sodium_compat suggests installing ext-libsodium (PHP < 7.0: Better performance, password hashing (Argon2i), secure mem                                                         ory management (memzero), and better security.)
paragonie/sodium_compat suggests installing ext-sodium (PHP >= 7.0: Better performance, password hashing (Argon2i), secure memor                                                         y management (memzero), and better security.)
namshi/jose suggests installing phpseclib/phpseclib (Allows to use Phpseclib as crypto engine, use version ^2.0.)
barryvdh/reflection-docblock suggests installing dflydev/markdown (~1.0)
facebook/webdriver suggests installing ext-SimpleXML (For Firefox profile creation)
filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses)
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/psysh suggests installing ext-posix (If you have PCNTL, you'll want the POSIX extension as well.)
psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn't alre                                                         ady support readline or libedit.)
mpociot/reflection-docblock suggests installing dflydev/markdown (~1.0)
windwalker/structure suggests installing laktak/hjson (Install ~2.0 if you require HJSON support.)
windwalker/structure suggests installing yosymfony/toml (Install ~1.0 if you require TOML support.)
windwalker/renderer suggests installing league/plates (Install 3.* if you require Plates template engine.)
windwalker/renderer suggests installing mustache/mustache (Install 2.* if you require Mustache engine.)
windwalker/renderer suggests installing twig/twig (Install 1.* if you require Twig engine.)
mpociot/laravel-apidoc-generator suggests installing league/fractal (Required for transformers support)
mpociot/laravel-apidoc-generator suggests installing nunomaduro/collision (For better reporting of errors that are thrown when g                                                         enerating docs)
nette/utils suggests installing ext-gd (to use Image)
nette/utils suggests installing ext-intl (to use Strings::webalize(), toAscii(), normalize() and compare())
nette/bootstrap suggests installing tracy/tracy (to use Configurator::enableTracy())
nunomaduro/larastan suggests installing orchestra/testbench (^3.6)
php-mock/php-mock suggests installing php-mock/php-mock-phpunit (Allows integration into PHPUnit testcase with the trait PHPMock                                                         .)
sebastian/global-state suggests installing ext-uopz (*)
sebastian/environment suggests installing ext-posix (*)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.6.0)
phpunit/phpunit suggests installing ext-soap (*)
phpunit/phpunit suggests installing ext-xdebug (*)
phpunit/phpunit suggests installing phpunit/php-invoker (^2.0)
Generating optimized autoload files
Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
    You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on i                                                         t.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
Discovered Package: aws/aws-sdk-php-laravel
Discovered Package: barryvdh/laravel-ide-helper
Discovered Package: fideloper/proxy
Discovered Package: laravel/tinker
Discovered Package: mpociot/laravel-apidoc-generator
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/larastan
Package manifest generated successfully.
ocramius/package-versions:  Generating version class...
ocramius/package-versions: ...done generating version class
> @php artisan clear-compiled
Compiled services and packages files removed!
> @php artisan cache:clear
Failed to clear cache. Make sure you have the appropriate permissions.
> @php -r "if (!file_exists('.env')) copy('.env.example', '.env');"

Had to fix the issue with cache:clear by creating the /var/www/koel/storage/framework/cache/data directory and running the command again.

Output of sudo php artisan koel:init

Attempting to install or upgrade Koel.
Remember, you can always install/upgrade manually following the guide here:
πŸ“™  https://koel.phanan.net/docs
Generating app key
Generating JWT secret
SQLSTATE[HY000] [1045] Access denied for user 'koel'@'localhost' (using password: YES)

Koel cannot connect to the database. Let's set it up.

 Your DB driver of choice [MySQL/MariaDB]:
  [mysql     ] MySQL/MariaDB
  [pgsql     ] PostgreSQL
  [sqlsrv    ] SQL Server
  [sqlite-e2e] SQLite
 > mysql

 DB host:
 > localhost

 DB port (leave empty for default):
 >

 DB name:
 > koelmusic

 DB user:
 > koeluser

 DB password:
 > yourpassword

Migrating database
Oops! Koel installation or upgrade didn't finish successfully.
Please try again, or visit https://koel.phanan.net/docs for manual installation.
πŸ˜₯ Sorry for this. You deserve better.

It always stops at this point. Always need to run it again.

Attempting to install or upgrade Koel.
Remember, you can always install/upgrade manually following the guide here:
πŸ“™  https://koel.phanan.net/docs

Generating app key
Generating JWT secret
Migrating database
Let's create the admin account.

 Your name [Koel Admin]:
 > Navjot Singh

 Your email address [admin@koel.com]:
 > navjotjsingh@gmail.com

 Your desired password:
 >

 Again, just to be sure:
 >

Seeding initial data
The absolute path to your media directory. If this is skipped (left blank) now, you can set it later via the web interface.

 Media path []:
 > /home/navjot/music

Now to front-end stuff
β”œβ”€β”€ Installing Node modules in resources/assets directory
yarn install v1.19.2
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.1.3: The platform "linux" is incompatible with this module.
info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > eslint-config-vue@2.0.2" has incorrect peer dependency "eslint@^2.0.0 || ^3.0.0".
warning " > eslint-plugin-vue@2.1.0" has incorrect peer dependency "eslint@^2.0.0 || ^3.0.0 || ^4.0.0".
[4/4] Building fresh packages...
Done in 52.91s.
└── Compiling assets
yarn install v1.19.2
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.0.7: The platform "linux" is incompatible with this module.
info "fsevents@2.0.7" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 73.43s.
yarn run v1.19.2
$ cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/                                                         setup/webpack.config.js --colors
 95% emitting DONE  Compiled successfully in 55545ms6:03:05 PM
                                                                                                                                                                                                                                                           Asset       Size  Chunks                    Chunk Names
  fonts/vendor/font-awesome/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713     166 kB          [emitted]
fonts/vendor/font-awesome/fontawesome-webfont.woff2?af7ae505a9eed503f8b8e6982036873e    77.2 kB          [emitted]
 fonts/vendor/font-awesome/fontawesome-webfont.woff?fee66e712a8a08eef5805a46892932ad      98 kB          [emitted]
  fonts/vendor/font-awesome/fontawesome-webfont.ttf?b06871f281fee6b241d60582ae9369b9     166 kB          [emitted]
  fonts/vendor/font-awesome/fontawesome-webfont.svg?912ec66d7572ff821749319396470bde     444 kB          [emitted]  [big]
                                     fonts/logo.svg?8a2f5cec8d12d85f91ae82ef106ecb28    5.19 kB          [emitted]
                                    images/bars.gif?f045f39d3583754ada2cbe668ae29ff0    32.7 kB          [emitted]
                                                                             js/0.js     1.8 kB       0  [emitted]
                                                                             js/1.js  911 bytes       1  [emitted]
                                                                             js/2.js     2.5 kB       2  [emitted]
                                                                             js/3.js    2.29 kB       3  [emitted]
                                                                             js/4.js    2.52 kB       4  [emitted]
                                                                             js/5.js    4.81 kB       5  [emitted]
                                                                             js/6.js    6.41 kB       6  [emitted]
                                                                             js/7.js    5.67 kB       7  [emitted]
                                                                             js/8.js    5.45 kB       8  [emitted]
                                                                             js/9.js    4.96 kB       9  [emitted]
                                                                            js/10.js    2.21 kB      10  [emitted]
                                                                            js/11.js     2.5 kB      11  [emitted]
                                                                            js/12.js    3.48 kB      12  [emitted]
                                                                            js/13.js    3.89 kB      13  [emitted]
                                                                            js/14.js    3.52 kB      14  [emitted]
                                                                            js/15.js    4.25 kB      15  [emitted]
                                                                            js/16.js    4.35 kB      16  [emitted]
                                                                            js/17.js    2.27 kB      17  [emitted]
                                                                            js/18.js    1.48 kB      18  [emitted]
                                                                            js/19.js     4.5 kB      19  [emitted]
                                                                            js/20.js    4.58 kB      20  [emitted]
                                                                            js/21.js  766 bytes      21  [emitted]
                                                                            js/22.js    5.98 kB      22  [emitted]
                                                                            js/23.js    10.6 kB      23  [emitted]
                                                                            js/24.js    7.34 kB      24  [emitted]
                                                                            js/25.js    7.51 kB      25  [emitted]
                                                                            js/26.js      31 kB      26  [emitted]
                                                                            js/27.js    9.87 kB      27  [emitted]
                                                                            js/28.js    5.28 kB      28  [emitted]
                                                                            js/29.js    6.67 kB      29  [emitted]
                                                                            js/30.js    7.17 kB      30  [emitted]
                                                                            js/31.js    2.88 kB      31  [emitted]
                                                                            js/32.js    2.88 kB      32  [emitted]
                                                                            js/33.js    3.42 kB      33  [emitted]
                                                                            js/34.js    3.75 kB      34  [emitted]
                                                                            js/35.js    4.77 kB      35  [emitted]
                                                                            js/36.js    3.59 kB      36  [emitted]
                                                                            js/37.js       4 kB      37  [emitted]
                                                                            js/38.js     3.2 kB      38  [emitted]
                                                                            js/39.js    1.87 kB      39  [emitted]
                                                                            js/40.js       4 kB      40  [emitted]
                                                                            js/41.js    1.62 kB      41  [emitted]
                                                                            js/42.js    1.78 kB      42  [emitted]
                                                                            js/43.js    1.46 kB      43  [emitted]
                                                                            js/44.js    1.17 kB      44  [emitted]
                                                                            js/45.js    11.2 kB      45  [emitted]
                                                                            js/46.js    3.42 kB      46  [emitted]
                                                                            js/47.js    1.05 kB      47  [emitted]
                                                                            js/48.js    3.97 kB      48  [emitted]
                                                                            js/49.js    9.25 kB      49  [emitted]
                                                                            js/50.js    3.22 kB      50  [emitted]
                                                                            js/51.js     3.5 kB      51  [emitted]
                                                                            js/52.js    10.4 kB      52  [emitted]
                                                                            js/53.js    1.89 kB      53  [emitted]
                                                                            js/54.js    3.28 kB      54  [emitted]
                                                                            js/55.js    3.75 kB      55  [emitted]
                                                                            js/56.js    2.22 kB      56  [emitted]
                                                                            js/57.js    4.08 kB      57  [emitted]
                                                                            js/58.js    2.51 kB      58  [emitted]
                                                                            js/59.js    3.06 kB      59  [emitted]
                                                                            js/60.js     1.6 kB      60  [emitted]
                                                                            js/61.js    2.89 kB      61  [emitted]
                                                                            js/62.js    3.13 kB      62  [emitted]
                                                                            js/63.js    2.93 kB      63  [emitted]
                                                                            js/64.js    2.12 kB      64  [emitted]
                                                                            js/65.js    1.02 kB      65  [emitted]
                                                                            js/66.js  926 bytes      66  [emitted]
                                                                            js/67.js  685 bytes      67  [emitted]
                                                                          /js/app.js     599 kB      68  [emitted]  [big]  /js/a                                                         pp
                                                                   /js/remote/app.js     501 kB      69  [emitted]  [big]  /js/r                                                         emote/app
                                                                        /css/app.css    18.8 kB      68  [emitted]         /js/a                                                         pp
                                                                     /css/remote.css   40 bytes      68  [emitted]         /js/a                                                         pp
Done in 58.40s.

πŸŽ†  Success! Koel can now be run from localhost with `php artisan serve`.
You can also scan for media with `php artisan koel:sync`.
Again, visit πŸ“™ https://koel.phanan.net/docs for the official documentation.
Feeling generous and want to support Koel's development? Check out https://github.com/users/phanan/sponsorship πŸ€—
Thanks for using Koel. You rock! 🀘

Content of /etc/nginx/sites-available/koel.conf

server {
  server_name     <domain.com>;
  root            /var/www/koel;
  index           index.php;

  gzip            on;
  gzip_types      text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;
  gzip_comp_level  9;

  # Whitelist only index.php, robots.txt, and some special routes
  if ($request_uri !~ ^/$|index\.php|robots\.txt|(public|api)/|remote|api-docs|sw\.js) {
    return 404;
  }

  location home/user/music/ {
    internal;

    alias       $upstream_http_x_media_root;

    access_log /var/log/nginx/koel.access.log;
    error_log  /var/log/nginx/koel.error.log;
  }

  location / {
    try_files   $uri $uri/ /index.php?$args;
  }

  location ~ \.php$ {
    try_files $uri $uri/ /index.php?$args;
    fastcgi_param PATH_INFO $fastcgi_path_info;
    fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass  unix:/run/php-fpm/www.sock;
    fastcgi_index index.php;
    fastcgi_split_path_info   ^(.+\.php)(/.+)$;
    fastcgi_intercept_errors  on;
    include  fastcgi_params;
  }

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}

Expected behavior It should log in to the admin panel.

Environment

phanan commented 4 years ago

What's the (network) error in the console?

navjotjsingh commented 4 years ago
app.js:1 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
(anonymous) @ app.js:1
app.js:1 Service Worker Registered
/public/manifest.json:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
/public/manifest.json:1 Manifest: Line: 1, column: 1, Syntax error.
/api/me:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
app.js:1 POST https://linode.nspeaks.com/api/me 500 (Internal Server Error)
(anonymous) @ app.js:1
e.exports @ app.js:1
e.exports @ app.js:1
Promise.then (async)
s.request @ app.js:1
(anonymous) @ app.js:1
request @ app.js:1
post @ app.js:1
(anonymous) @ app.js:1
login @ app.js:1
(anonymous) @ app.js:1
w @ app.js:1
(anonymous) @ app.js:1
e.<computed> @ app.js:1
r @ app.js:1
(anonymous) @ app.js:1
t @ app.js:1
(anonymous) @ app.js:1
n @ app.js:1
submit @ app.js:1
t @ app.js:1
Mr.t._withTask.i._withTask @ app.js:1
phanan commented 4 years ago

If you set APP_DEBUG=true in .env and inspect the network error (one that comes with https://linode.nspeaks.com/api/me 500), what does it say?

navjotjsingh commented 4 years ago

It is already set. Rest you can check the error yourself on this page: https://linode.nspeaks.com/api/me ?

Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR) Call to undefined method Illuminate\Events\Dispatcher::fire()

Did manage to log in once but back to square one now.

Also:

GET https://linode.nspeaks.com/public/manifest.json 404 (Not Found)
manifest.json:1 Manifest: Line: 1, column: 1, Syntax error.

And

POST https://linode.nspeaks.com/api/me 401 (Unauthorized)
(anonymous) @ app.js:1
e.exports @ app.js:1
e.exports @ app.js:1
Promise.then (async)
s.request @ app.js:1
(anonymous) @ app.js:1
request @ app.js:1
post @ app.js:1
(anonymous) @ app.js:1
login @ app.js:1
(anonymous) @ app.js:1
w @ app.js:1
(anonymous) @ app.js:1
e.<computed> @ app.js:1
r @ app.js:1
(anonymous) @ app.js:1
t @ app.js:1
(anonymous) @ app.js:1
n @ app.js:1
submit @ app.js:1
t @ app.js:1
Mr.t._withTask.i._withTask @ app.js:1

Sorry if I sound like a noob. I am new to this stuff.

phanan commented 4 years ago

You can check an HTTP request and its response. If you’re not sure how, please google. The manifest is not the error.

Navjot Singh notifications@github.com schrieb am Do. 12. Dez. 2019 um 20:18:

It is already set. Rest you can check the error yourself on this page: https://linode.nspeaks.com/api/me ?

Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR) Call to undefined method Illuminate\Events\Dispatcher::fire()

Did manage to log in once but back to square one now.

Also:

GET https://linode.nspeaks.com/public/manifest.json 404 (Not Found) manifest.json:1 Manifest: Line: 1, column: 1, Syntax error.

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/phanan/koel/issues/1141?email_source=notifications&email_token=AB5O3UROJG5ZINWZKIPJIGDQYI2Y3A5CNFSM4JY6NE3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGWUGQY#issuecomment-565003075, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5O3UV6U4QSWMEA44W4O4DQYI2Y3ANCNFSM4JY6NE3A .