BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.2k stars 1.9k forks source link

Building manually on aarch64 fails when enerating optimized autoload files #1357

Closed flamechair closed 5 years ago

flamechair commented 5 years ago

Describe the bug When building bookstack manually, the process fails when doing a composer install:

Installing PHP dependencies with php-composer
> php -r "!file_exists('bootstrap/cache/services.php') || @unlink('bootstrap/cache/services.php');"
> php -r "!file_exists('bootstrap/cache/compiled.php') || @unlink('bootstrap/cache/compiled.php');"
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 112 installs, 0 updates, 0 removals
  - Installing vlucas/phpdotenv (v2.5.2): Downloading (connecting...)Downloading (0%)           Downloading (15%)Downloading (30%)Downloading (100%)
  - Installing symfony/css-selector (v3.1.10): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (90%)Downloading (100%)
  - Installing tijsverkoyen/css-to-inline-styles (2.2.1): Downloading (connecting...)Downloading (0%)           Downloading (40%)Downloading (80%)Downloading (90%)Downloading (100%)
  - Installing symfony/polyfill-mbstring (v1.10.0): Downloading (connecting...)Downloading (0%)           Downloading (30%)Downloading (55%)Downloading (100%)
  - Installing symfony/var-dumper (v3.3.6): Downloading (connecting...)Downloading (100%)         
  - Installing symfony/routing (v3.3.6): Downloading (connecting...)Downloading (100%)         
  - Installing symfony/process (v3.3.6): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (20%)Downloading (25%)Downloading (50%)Downloading (55%)Downloading (80%)Downloading (85%)Downloading (100%)
  - Installing symfony/http-foundation (v3.3.6): Downloading (connecting...)Downloading (100%)         
  - Installing symfony/event-dispatcher (v3.3.6): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (95%)Downloading (100%)
  - Installing psr/log (1.1.0): Downloading (connecting...)Downloading (0%)           Downloading (65%)Downloading (100%)
  - Installing symfony/debug (v3.3.6): Downloading (connecting...)Downloading (0%)           Downloading (10%)Downloading (20%)Downloading (25%)Downloading (35%)Downloading (45%)Downloading (55%)Downloading (65%)Downloading (80%)Downloading (90%)Downloading (100%)
  - Installing symfony/http-kernel (v3.3.6): Downloading (connecting...)Downloading (100%)         
  - Installing symfony/finder (v3.3.6): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing symfony/console (v3.3.6): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing doctrine/lexer (v1.0.1): Downloading (connecting...)Downloading (0%)           Downloading (100%)
  - Installing egulias/email-validator (2.1.7): Downloading (connecting...)Downloading (0%)           Downloading (45%)Downloading (55%)Downloading (65%)Downloading (75%)Downloading (100%)
  - Installing swiftmailer/swiftmailer (v6.1.3): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing symfony/polyfill-ctype (v1.10.0): Downloading (connecting...)Downloading (0%)           Downloading (100%)
  - Installing paragonie/random_compat (v9.99.99): Downloading (connecting...)Downloading (0%)           Downloading (45%)Downloading (90%)Downloading (100%)
  - Installing ramsey/uuid (3.8.0): Downloading (connecting...)Downloading (0%)           Downloading (10%)Downloading (20%)Downloading (35%)Downloading (50%)Downloading (60%)Downloading (70%)Downloading (80%)Downloading (90%)Downloading (100%)
  - Installing psr/simple-cache (1.0.1): Downloading (connecting...)Downloading (0%)           Downloading (30%)Downloading (60%)Downloading (90%)Downloading (100%)
  - Installing psr/container (1.0.0): Downloading (connecting...)Downloading (0%)           Downloading (75%)Downloading (100%)
  - Installing symfony/translation (v3.3.6): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing nesbot/carbon (1.36.2): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (40%)Downloading (45%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (100%)
  - Installing mtdowling/cron-expression (v1.2.1): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (100%)
  - Installing monolog/monolog (1.24.0): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing league/flysystem (1.0.49): Downloading (connecting...)Downloading (0%)           Downloading (25%)Downloading (40%)Downloading (50%)Downloading (65%)Downloading (75%)Downloading (90%)Downloading (100%)
  - Installing erusev/parsedown (1.7.1): Downloading (connecting...)Downloading (0%)           Downloading (25%)Downloading (100%)
  - Installing doctrine/inflector (v1.2.0): Downloading (connecting...)Downloading (0%)           Downloading (90%)Downloading (100%)
  - Installing laravel/framework (v5.5.44): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing sabberworm/php-css-parser (8.1.0): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (15%)Downloading (20%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (100%)
  - Installing phenx/php-svg-lib (v0.3.2): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (100%)
  - Installing phenx/php-font-lib (0.5.1): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing dompdf/dompdf (v0.8.3): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing barryvdh/laravel-dompdf (v0.8.3): Downloading (connecting...)Downloading (0%)           Downloading (100%)
  - Installing knplabs/knp-snappy (v1.0.4): Downloading (connecting...)Downloading (0%)           Downloading (35%)Downloading (50%)Downloading (85%)Downloading (95%)Downloading (100%)
  - Installing barryvdh/laravel-snappy (v0.4.3): Downloading (connecting...)Downloading (100%)         
  - Installing doctrine/annotations (v1.4.0): Downloading (connecting...)Downloading (0%)           Downloading (15%)Downloading (25%)Downloading (40%)Downloading (50%)Downloading (65%)Downloading (80%)Downloading (95%)Downloading (100%)
  - Installing doctrine/cache (v1.6.2): Downloading (connecting...)Downloading (0%)           Downloading (10%)Downloading (15%)Downloading (25%)Downloading (35%)Downloading (45%)Downloading (50%)Downloading (60%)Downloading (75%)Downloading (85%)Downloading (90%)Downloading (100%)
  - Installing doctrine/collections (v1.4.0): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (70%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing doctrine/common (v2.7.3): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing doctrine/dbal (v2.5.13): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (100%)
  - Installing fideloper/proxy (3.3.4): Downloading (connecting...)Downloading (0%)           Downloading (25%)Downloading (50%)Downloading (75%)Downloading (100%)
  - Installing cogpowered/finediff (0.3.1): Downloading (connecting...)Downloading (0%)           Downloading (25%)Downloading (35%)Downloading (45%)Downloading (55%)Downloading (85%)Downloading (95%)Downloading (100%)
  - Installing gathercontent/htmldiff (0.2.1): Downloading (connecting...)Downloading (100%)         
  - Installing guzzlehttp/promises (v1.3.1): Downloading (connecting...)Downloading (0%)           Downloading (30%)Downloading (60%)Downloading (95%)Downloading (100%)
  - Installing ralouphie/getallheaders (2.0.5): Downloading (connecting...)Downloading (0%)           Downloading (55%)Downloading (100%)
  - Installing psr/http-message (1.0.1): Downloading (connecting...)Downloading (0%)           Downloading (95%)Downloading (100%)
  - Installing guzzlehttp/psr7 (1.5.2): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (100%)
  - Installing intervention/image (2.4.2): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing guzzlehttp/guzzle (6.3.3): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (65%)Downloading (70%)Downloading (80%)Downloading (85%)Downloading (95%)Downloading (100%)
  - Installing league/oauth1-client (1.7.0): Downloading (connecting...)Downloading (0%)           Downloading (10%)Downloading (15%)Downloading (25%)Downloading (30%)Downloading (40%)Downloading (50%)Downloading (60%)Downloading (70%)Downloading (85%)Downloading (90%)Downloading (100%)
  - Installing laravel/socialite (3.0.x-dev 79316f3): Downloading (connecting...)Downloading (0%)           Downloading (20%)Downloading (55%)Downloading (75%)Downloading (100%)
  - Installing mtdowling/jmespath.php (2.4.0): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing aws/aws-sdk-php (3.86.2): Downloading (connecting...)Downloading (100%)         
  - Installing league/flysystem-aws-s3-v3 (1.0.21): Downloading (connecting...)Downloading (0%)           Downloading (100%)
  - Installing predis/predis (v1.1.1): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing socialiteproviders/manager (v3.3.4): Downloading (connecting...)Downloading (100%)         
  - Installing socialiteproviders/discord (v2.0.2): Downloading (connecting...)Downloading (100%)         
  - Installing socialiteproviders/gitlab (v3.1): Downloading (connecting...)Downloading (100%)         
  - Installing socialiteproviders/microsoft-azure (v3.0.0): Downloading (connecting...)Downloading (100%)         
  - Installing socialiteproviders/okta (v1.0.0): Downloading (connecting...)Downloading (100%)         
  - Installing socialiteproviders/slack (v3.0.3): Downloading (connecting...)Downloading (100%)         
  - Installing socialiteproviders/twitch (v3.0.0): Downloading (connecting...)Downloading (100%)         
  - Installing maximebf/debugbar (v1.15.0): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing barryvdh/laravel-debugbar (v3.2.1): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing symfony/filesystem (v3.3.6): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (55%)Downloading (60%)Downloading (100%)
  - Installing seld/phar-utils (1.0.1): Downloading (connecting...)Downloading (0%)           Downloading (30%)Downloading (60%)Downloading (90%)Downloading (100%)
  - Installing seld/jsonlint (1.7.1): Downloading (connecting...)Downloading (0%)           Downloading (15%)Downloading (75%)Downloading (90%)Downloading (100%)
  - Installing justinrainbow/json-schema (5.2.8): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (20%)Downloading (25%)Downloading (40%)Downloading (55%)Downloading (70%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing composer/xdebug-handler (1.3.1): Downloading (connecting...)Downloading (0%)           Downloading (25%)Downloading (50%)Downloading (100%)
  - Installing composer/spdx-licenses (1.5.0): Downloading (connecting...)Downloading (0%)           Downloading (10%)Downloading (100%)
  - Installing composer/semver (1.4.2): Downloading (connecting...)Downloading (0%)           Downloading (35%)Downloading (100%)
  - Installing composer/ca-bundle (1.1.3): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing composer/composer (1.8.0): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (95%)Downloading (100%)
  - Installing barryvdh/reflection-docblock (v2.0.6): Downloading (connecting...)Downloading (0%)           Downloading (20%)Downloading (25%)Downloading (35%)Downloading (50%)Downloading (55%)Downloading (70%)Downloading (75%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing barryvdh/laravel-ide-helper (v2.5.3): Downloading (connecting...)Downloading (0%)           Downloading (35%)Downloading (60%)Downloading (75%)Downloading (95%)Downloading (100%)
  - Installing filp/whoops (2.3.1): Downloading (connecting...)Downloading (0%)           Downloading (10%)Downloading (20%)Downloading (35%)Downloading (45%)Downloading (55%)Downloading (65%)Downloading (70%)Downloading (80%)Downloading (90%)Downloading (100%)
  - Installing fzaninotto/faker (v1.8.0): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing symfony/dom-crawler (v3.1.10): Downloading (connecting...)Downloading (0%)           Downloading (20%)Downloading (25%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (85%)Downloading (100%)
  - Installing sebastian/version (2.0.1): Downloading (connecting...)Downloading (0%)           Downloading (100%)
  - Installing sebastian/resource-operations (1.0.0): Downloading (connecting...)Downloading (0%)           Downloading (65%)Downloading (100%)
  - Installing sebastian/recursion-context (3.0.0): Downloading (connecting...)Downloading (0%)           Downloading (35%)Downloading (70%)Downloading (100%)
  - Installing sebastian/object-reflector (1.1.1): Downloading (connecting...)Downloading (0%)           Downloading (65%)Downloading (100%)
  - Installing sebastian/object-enumerator (3.0.3): Downloading (connecting...)Downloading (0%)           Downloading (95%)Downloading (100%)
  - Installing sebastian/global-state (2.0.0): Downloading (connecting...)Downloading (0%)           Downloading (20%)Downloading (45%)Downloading (100%)
  - Installing sebastian/exporter (3.1.0): Downloading (connecting...)Downloading (0%)           Downloading (75%)Downloading (100%)
  - Installing sebastian/environment (3.1.0): Downloading (connecting...)Downloading (0%)           Downloading (45%)Downloading (75%)Downloading (100%)
  - Installing sebastian/diff (2.0.1): Downloading (connecting...)Downloading (0%)           Downloading (25%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (100%)
  - Installing sebastian/comparator (2.1.3): Downloading (connecting...)Downloading (0%)           Downloading (10%)Downloading (20%)Downloading (30%)Downloading (40%)Downloading (50%)Downloading (100%)
  - Installing phpunit/php-text-template (1.2.1): Downloading (connecting...)Downloading (0%)           Downloading (35%)Downloading (100%)
  - Installing doctrine/instantiator (1.0.5): Downloading (connecting...)Downloading (0%)           Downloading (15%)Downloading (30%)Downloading (45%)Downloading (50%)Downloading (65%)Downloading (75%)Downloading (90%)Downloading (100%)
  - Installing phpunit/phpunit-mock-objects (5.0.10): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing phpunit/php-timer (1.0.9): Downloading (connecting...)Downloading (0%)           Downloading (45%)Downloading (90%)Downloading (100%)
  - Installing phpunit/php-file-iterator (1.4.5): Downloading (connecting...)Downloading (0%)           Downloading (100%)
  - Installing theseer/tokenizer (1.1.0): Downloading (connecting...)Downloading (0%)           Downloading (15%)Downloading (75%)Downloading (90%)Downloading (100%)
  - Installing sebastian/code-unit-reverse-lookup (1.0.1): Downloading (connecting...)Downloading (0%)           Downloading (55%)Downloading (100%)
  - Installing phpunit/php-token-stream (2.0.2): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (100%)
  - Installing phpunit/php-code-coverage (5.3.2): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing webmozart/assert (1.4.0): Downloading (connecting...)Downloading (0%)           Downloading (65%)Downloading (100%)
  - Installing phpdocumentor/reflection-common (1.0.1): Downloading (connecting...)Downloading (0%)           Downloading (100%)
  - Installing phpdocumentor/type-resolver (0.4.0): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (35%)Downloading (100%)
  - Installing phpdocumentor/reflection-docblock (4.3.0): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (100%)
  - Installing phpspec/prophecy (1.8.0): Downloading (connecting...)Downloading (0%)           Downloading (10%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (40%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing phar-io/version (1.0.1): Downloading (connecting...)Downloading (0%)           Downloading (50%)Downloading (55%)Downloading (100%)
  - Installing phar-io/manifest (1.0.1): Downloading (connecting...)Downloading (0%)           Downloading (10%)Downloading (20%)Downloading (30%)Downloading (40%)Downloading (50%)Downloading (60%)Downloading (65%)Downloading (75%)Downloading (85%)Downloading (95%)Downloading (100%)
  - Installing myclabs/deep-copy (1.7.0): Downloading (connecting...)Downloading (0%)           Downloading (15%)Downloading (20%)Downloading (35%)Downloading (40%)Downloading (55%)Downloading (60%)Downloading (75%)Downloading (80%)Downloading (95%)Downloading (100%)
  - Installing phpunit/phpunit (6.5.13): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing laravel/browser-kit-testing (v2.0.1): Downloading (connecting...)Downloading (100%)         
  - Installing hamcrest/hamcrest-php (v2.0.0): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing mockery/mockery (1.2.0): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing squizlabs/php_codesniffer (3.4.0): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
symfony/var-dumper suggests installing ext-symfony_debug
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/routing suggests installing symfony/yaml (For using the YAML loader)
symfony/event-dispatcher suggests installing symfony/dependency-injection
symfony/http-kernel suggests installing symfony/browser-kit
symfony/http-kernel suggests installing symfony/class-loader
symfony/http-kernel suggests installing symfony/config
symfony/http-kernel suggests installing symfony/dependency-injection
egulias/email-validator suggests installing ext-intl (PHP Internationalization Libraries are required to use the SpoofChecking validation)
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 not installed)
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
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 PeclUuidRandomGenerator)
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
symfony/translation suggests installing symfony/yaml
nesbot/carbon suggests installing friendsofphp/php-cs-fixer (Needed for the `composer phpcs` command. Allow to automatically fix code style.)
nesbot/carbon suggests installing phpstan/phpstan (Needed for the `composer phpstan` command. Allow to detect potential errors.)
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 ext-ftp (Allows you to use FTP server storage)
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-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-pcntl (Required to use all features of the queue worker.)
laravel/framework suggests installing ext-posix (Required to use all features of the queue worker.)
laravel/framework suggests installing laravel/tinker (Required to use the tinker console command (~1.0).)
laravel/framework suggests installing league/flysystem-cached-adapter (Required to use Flysystem caching (~1.0).)
laravel/framework suggests installing league/flysystem-rackspace (Required to use the Flysystem Rackspace driver (~1.0).)
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 (~3.0).)
laravel/framework suggests installing pusher/pusher-php-server (Required to use the Pusher broadcast driver (~3.0).)
laravel/framework suggests installing symfony/psr-http-message-bridge (Required to psr7 bridging features (~1.0).)
dompdf/dompdf suggests installing ext-gmagick (Improves image processing performance)
dompdf/dompdf suggests installing ext-imagick (Improves image processing performance)
knplabs/knp-snappy suggests installing h4cc/wkhtmltoimage-amd64 (Provides wkhtmltoimage-amd64 binary for Linux-compatible machines, use version `~0.12` as dependency)
knplabs/knp-snappy suggests installing h4cc/wkhtmltoimage-i386 (Provides wkhtmltoimage-i386 binary for Linux-compatible machines, use version `~0.12` as dependency)
knplabs/knp-snappy suggests installing h4cc/wkhtmltopdf-amd64 (Provides wkhtmltopdf-amd64 binary for Linux-compatible machines, use version `~0.12` as dependency)
knplabs/knp-snappy suggests installing h4cc/wkhtmltopdf-i386 (Provides wkhtmltopdf-i386 binary for Linux-compatible machines, use version `~0.12` as dependency)
knplabs/knp-snappy suggests installing wemersonjanuario/wkhtmltopdf-windows (Provides wkhtmltopdf executable for Windows, use version `~0.12` as dependency)
intervention/image suggests installing ext-imagick (to use Imagick based image processing.)
intervention/image suggests installing intervention/imagecache (Caching extension for the Intervention Image library)
aws/aws-sdk-php suggests installing aws/aws-php-sns-message-validator (To validate incoming SNS notifications)
aws/aws-sdk-php suggests installing ext-sockets (To use client-side monitoring)
predis/predis suggests installing ext-phpiredis (Allows faster serialization and deserialization of the Redis protocol)
maximebf/debugbar suggests installing kriswallsmith/assetic (The best way to manage assets)
composer/composer suggests installing ext-zip (Enabling the zip extension allows you to unzip archives)
barryvdh/reflection-docblock suggests installing dflydev/markdown (~1.0)
filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/phpunit-mock-objects suggests installing ext-soap (*)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.5.5)
phpunit/phpunit suggests installing ext-xdebug (*)
phpunit/phpunit suggests installing phpunit/php-invoker (^1.1)
Generating optimized autoload files
Warning: Ambiguous class resolution, "BookStack\Model" was found in both "$baseDir . '/app/Model.php" and "/var/www/html/database/seeds/DatabaseSeeder.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Http\Middleware\Localization" was found in both "$baseDir . '/app/Http/Middleware/Localization.php" and "/var/www/html/database/migrations/2015_07_27_172342_create_chapters_table.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Http\Middleware\RedirectIfAuthenticated" was found in both "$baseDir . '/app/Http/Middleware/RedirectIfAuthenticated.php" and "/var/www/html/database/migrations/2016_09_29_101449_remove_hidden_roles.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Http\Middleware\TrustProxies" was found in both "$baseDir . '/app/Http/Middleware/TrustProxies.php" and "/var/www/html/database/migrations/2016_05_06_185215_create_tags_table.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Http\Controllers\AttachmentController" was found in both "$baseDir . '/app/Http/Controllers/AttachmentController.php" and "/var/www/html/database/migrations/2016_07_07_181521_add_summary_to_page_revisions.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Http\Controllers\CommentController" was found in both "$baseDir . '/app/Http/Controllers/CommentController.php" and "/var/www/html/database/migrations/2016_02_25_184030_add_slug_to_revisions.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Http\Controllers\ChapterController" was found in both "$baseDir . '/app/Http/Controllers/ChapterController.php" and "/var/www/html/database/migrations/2015_08_08_200447_add_users_to_entities.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Http\Controllers\Controller" was found in both "$baseDir . '/app/Http/Controllers/Controller.php" and "/var/www/html/database/migrations/2015_12_07_195238_add_image_upload_types.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Http\Controllers\ImageController" was found in both "$baseDir . '/app/Http/Controllers/ImageController.php" and "/var/www/html/database/migrations/2017_07_02_152834_update_db_encoding_to_ut8mb4.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Http\Controllers\BookController" was found in both "$baseDir . '/app/Http/Controllers/BookController.php" and "/var/www/html/database/migrations/2018_08_04_115700_create_bookshelves_table.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Http\Controllers\PermissionController" was found in both "$baseDir . '/app/Http/Controllers/PermissionController.php" and "/var/www/html/database/migrations/2015_08_09_093534_create_page_revisions_table.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Http\Controllers\HomeController" was found in both "$baseDir . '/app/Http/Controllers/HomeController.php" and "/var/www/html/database/migrations/2015_09_04_165821_create_social_accounts_table.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Http\Controllers\PageController" was found in both "$baseDir . '/app/Http/Controllers/PageController.php" and "/var/www/html/database/migrations/2016_03_13_082138_add_page_drafts.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Http\Controllers\TagController" was found in both "$baseDir . '/app/Http/Controllers/TagController.php" and "/var/www/html/database/migrations/2015_11_26_221857_add_entity_indexes.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Http\Controllers\BookshelfController" was found in both "$baseDir . '/app/Http/Controllers/BookshelfController.php" and "/var/www/html/database/migrations/2017_08_01_130541_create_comments_table.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Http\Controllers\UserController" was found in both "$baseDir . '/app/Http/Controllers/UserController.php" and "/var/www/html/database/migrations/2016_04_20_192649_create_joint_permissions_table.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Http\Controllers\SettingController" was found in both "$baseDir . '/app/Http/Controllers/SettingController.php" and "/var/www/html/database/migrations/2017_01_21_163602_create_sessions_table.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Http\Controllers\SearchController" was found in both "$baseDir . '/app/Http/Controllers/SearchController.php" and "/var/www/html/database/migrations/2016_04_09_100730_add_view_permissions_to_roles.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Http\Controllers\Auth\RegisterController" was found in both "$baseDir . '/app/Http/Controllers/Auth/RegisterController.php" and "/var/www/html/database/migrations/2015_08_16_142133_create_activities_table.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Http\Controllers\Auth\ResetPasswordController" was found in both "$baseDir . '/app/Http/Controllers/Auth/ResetPasswordController.php" and "/var/www/html/database/migrations/2017_01_21_163556_create_cache_table.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Http\Controllers\Auth\ForgotPasswordController" was found in both "$baseDir . '/app/Http/Controllers/Auth/ForgotPasswordController.php" and "/var/www/html/database/migrations/2015_08_31_175240_add_search_indexes.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Http\Controllers\Auth\LoginController" was found in both "$baseDir . '/app/Http/Controllers/Auth/LoginController.php" and "/var/www/html/database/migrations/2015_11_21_145609_create_views_table.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Exceptions\PrettyException" was found in both "$baseDir . '/app/Exceptions/PrettyException.php" and "/var/www/html/database/migrations/2015_08_30_125859_create_settings_table.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Exceptions\NotFoundException" was found in both "$baseDir . '/app/Exceptions/NotFoundException.php" and "/var/www/html/database/migrations/2015_09_05_164707_add_email_confirmation_table.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Exceptions\NotifyException" was found in both "$baseDir . '/app/Exceptions/NotifyException.php" and "/var/www/html/database/migrations/2016_02_28_084200_add_entity_access_controls.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Exceptions\UserUpdateException" was found in both "$baseDir . '/app/Exceptions/UserUpdateException.php" and "/var/www/html/database/migrations/2017_03_19_091553_create_search_index_table.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Exceptions\SocialSignInAccountNotUsed" was found in both "$baseDir . '/app/Exceptions/SocialSignInAccountNotUsed.php" and "/var/www/html/database/migrations/2016_01_11_210908_add_external_auth_to_users.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Exceptions\Handler" was found in both "$baseDir . '/app/Exceptions/Handler.php" and "/var/www/html/database/migrations/2015_07_12_114933_create_books_table.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Exceptions\SocialSignInException" was found in both "$baseDir . '/app/Exceptions/SocialSignInException.php" and "/var/www/html/database/migrations/2016_10_09_142037_create_attachments_table.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Exceptions\HttpFetchException" was found in both "$baseDir . '/app/Exceptions/HttpFetchException.php" and "/var/www/html/database/migrations/2015_07_12_190027_create_pages_table.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Exceptions\ConfirmationEmailException" was found in both "$baseDir . '/app/Exceptions/ConfirmationEmailException.php" and "/var/www/html/database/migrations/2018_07_15_173514_add_role_external_auth_id.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Exceptions\SocialDriverNotConfigured" was found in both "$baseDir . '/app/Exceptions/SocialDriverNotConfigured.php" and "/var/www/html/database/migrations/2015_12_09_195748_add_user_avatars.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Exceptions\PermissionsException" was found in both "$baseDir . '/app/Exceptions/PermissionsException.php" and "/var/www/html/database/migrations/2016_03_25_123157_add_markdown_support.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Exceptions\AuthException" was found in both "$baseDir . '/app/Exceptions/AuthException.php" and "/var/www/html/database/migrations/2015_12_05_145049_fulltext_weighting.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Exceptions\LdapException" was found in both "$baseDir . '/app/Exceptions/LdapException.php" and "/var/www/html/database/migrations/2017_08_29_102650_add_cover_image_display.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Exceptions\UserRegistrationException" was found in both "$baseDir . '/app/Exceptions/UserRegistrationException.php" and "/var/www/html/database/migrations/2014_10_12_000000_create_users_table.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Exceptions\ImageUploadException" was found in both "$baseDir . '/app/Exceptions/ImageUploadException.php" and "/var/www/html/database/migrations/2016_02_27_120329_update_permissions_and_roles.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Exceptions\FileUploadException" was found in both "$baseDir . '/app/Exceptions/FileUploadException.php" and "/var/www/html/database/migrations/2016_03_09_203143_add_page_revision_types.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Translation\Translator" was found in both "$baseDir . '/app/Translation/Translator.php" and "/var/www/html/database/migrations/2017_04_20_185112_add_revision_counts.php", the first will be used.
Warning: Ambiguous class resolution, "BookStack\Providers\CustomFacadeProvider" was found in both "$baseDir . '/app/Providers/CustomFacadeProvider.php" and "/var/www/html/database/migrations/2015_07_13_172121_create_images_table.php", the first will be used.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
PHP Fatal error:  Class 'BookStack\Model' not found in /var/www/html/bootstrap/init.php on line 5
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255

Steps To Reproduce Steps to reproduce the behavior:

  1. Download latest release on aarch64 machine
  2. Setup according to directions listed on site
  3. Run composer install

Expected behavior No crash

Screenshots N/A

Your Configuration (please complete the following information):

Additional context Mirroring the same exact build process on arm32v7 and amd64 both work fine

ssddanbrown commented 5 years ago

Hi @iamtpage, Sorry to hear you're having trouble installing BookStack on aarch64. Unfortunately I don't think I have any aarch64 devices to test this on unless you know of a good, easy to set-up, emulator.

The warnings and errors are very odd. Most of the Warning: Ambiguous class resolution lines list two files that don't relate to eachother, It's almost like the contents of all the files has jumbled up in a consistent manner, Or the composer autoload index is off.

This error:

PHP Fatal error:  Class 'BookStack\Model' not found in /var/www/html/bootstrap/init.php on line 5

There's not even anything on line 5 of bootstrap/init.php. What does the contents of that file like look on the faulty install? Would be good just to confirm the contents don't look different.

flamechair commented 5 years ago
/var/www/html # ls -al
total 704
drwxr-xr-x   24 nginx    www-data      4096 Mar 29 22:21 .
drwxr-xr-x    5 root     root          4096 Mar 29 22:21 ..
-rw-r--r--    1 nginx    www-data      3039 Mar 29 22:21 .env
-rw-rw-rw-    1 nginx    www-data      1177 Mar 29 21:46 LICENSE
drwxrwxrwx   26 nginx    www-data      4096 Mar 29 22:21 app
-rwxrwxrwx    1 nginx    www-data      1528 Mar 29 21:46 artisan
drwxrwxrwx    4 nginx    www-data      4096 Mar 29 22:21 bootstrap
-rw-rw-rw-    1 nginx    www-data      3166 Mar 29 21:46 composer.json
-rw-rw-rw-    1 nginx    www-data    226368 Mar 29 21:46 composer.lock
drwxrwxrwx    2 nginx    www-data      4096 Mar 29 22:21 config
drwxrwxrwx    8 nginx    www-data      4096 Mar 29 22:21 database
-rw-rw-rw-    1 nginx    www-data    382124 Mar 29 21:46 package-lock.json
-rw-rw-rw-    1 nginx    www-data      1392 Mar 29 21:46 package.json
-rw-rw-rw-    1 nginx    www-data       251 Mar 29 21:46 phpcs.xml
-rw-rw-rw-    1 nginx    www-data      2018 Mar 29 21:46 phpunit.xml
drwxrwxrwx    8 nginx    www-data      4096 Mar 29 22:21 public
-rw-rw-rw-    1 nginx    www-data     10205 Mar 29 21:46 readme.md
drwxrwxrwx    8 nginx    www-data      4096 Mar 29 22:21 resources
drwxrwxrwx    2 nginx    www-data      4096 Mar 29 21:46 routes
-rw-rw-rw-    1 nginx    www-data       567 Mar 29 21:46 server.php
drwxrwxrwx   12 nginx    www-data      4096 Mar 29 22:21 storage
drwxrwxrwx   12 nginx    www-data      4096 Mar 29 22:21 tests
drwxrwxrwx    2 nginx    www-data      4096 Mar 29 21:46 themes
drwxr-xr-x   96 nginx    www-data      4096 Mar 29 22:21 vendor
-rw-rw-rw-    1 nginx    www-data         8 Mar 29 21:46 version
-rw-rw-rw-    1 nginx    www-data      2227 Mar 29 21:46 webpack.config.js
/var/www/html/bootstrap # cat init.php
<?php namespace BookStack;

use BookStack\Auth\User;

abstract class Ownable extends Model
{
    /**
     * Relation for the user that created this entity.
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function createdBy()
    {
        return $this->belongsTo(User::class, 'created_by');
    }

    /**
     * Relation for the user that updated this entity.
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function updatedBy()
    {
        return $this->belongsTo(User::class, 'updated_by');
    }

    /**
     * Gets the class name.
     * @return string
     */
    public static function getClassName()
    {
        return strtolower(array_slice(explode('\\', static::class), -1, 1)[0]);
    }
}

Hope this makes more sense to you, I'm not a huge web/php guy.

ssddanbrown commented 5 years ago

Thanks @iamtpage,

So yeah, That's the complete wrong contents for that file. That content should be stored in app/Ownable.php. From the composer logs I'd imagine many other files are the same and have wrong contents.

How did you download the application files? Through git or via other means?

flamechair commented 5 years ago

I have the repo as a git sub module on the release branch, I copy the files from the sub module repo to /var/www/html/:

git submodule add -b release https://github.com/BookstackApp/Bookstack.git /bookstack
mkdir -p /var/www/html
mv /bookstack/* /var/www/html/
ssddanbrown commented 5 years ago

@iamtpage It might be an idea to check the files at each stage of your process to see where they're changing. Here's what the bootstrap/init.php should look like for reference.

flamechair commented 5 years ago

My .env file was mangled, and for some reason it complained only on aarch64. Building the same process on amd64 and arm32v7 worked without issue. Copying the .env.example file into the directory before doing a composer install fixed this issue.