Skip to content

Installation aborted - Token missing #302

@rafa-acioly

Description

@rafa-acioly

I've tried to reproduce this error to get more details, but I couldn't, sometimes when I try to build my Laravel app with docker I got the following error:

64.85 🥧 PHP Installer for Extensions (PIE) 1.0.0, from The PHP Foundation
64.96 You are running PHP 8.2.28
64.98 Target PHP installation: 8.2.28 nts, on Linux/OSX/etc x86_64 (from /usr/bin/php8.2)
65.30 Found package: mongodb/mongodb-extension:1.21.0 which provides ext-mongodb
66.09 Token (hidden):
66.09
66.09   Aborted.
66.09
66.09
66.09 install [-j|--make-parallel-jobs MAKE-PARALLEL-JOBS] [--skip-enable-extension] [--force] [-d|--working-dir WORKING-DIR] [--with-php-config WITH-PHP-CONFIG] [--with-php-path WITH-PHP-PATH] [--with-phpize-path WITH-PHPIZE-PATH] [--enable-mongodb-coverage ENABLE-MONGODB-COVERAGE] [--enable-mongodb-crypto-system-profile ENABLE-MONGODB-CRYPTO-SYSTEM-PROFILE] [--enable-mongodb-developer-flags ENABLE-MONGODB-DEVELOPER-FLAGS] [--with-mongodb-client-side-encryption WITH-MONGODB-CLIENT-SIDE-ENCRYPTION] [--with-mongodb-sasl WITH-MONGODB-SASL] [--with-mongodb-snappy WITH-MONGODB-SNAPPY] [--with-mongodb-ssl WITH-MONGODB-SSL] [--with-mongodb-system-libs WITH-MONGODB-SYSTEM-LIBS] [--with-mongodb-zlib WITH-MONGODB-ZLIB] [--with-mongodb-zstd WITH-MONGODB-ZSTD] [--] [<requested-package-and-version>]
66.09

This error does not occur frequently, I've just tried again, and it worked without changing anything on my Dockerfile.

I'm running docker on a MacOS M1 using the fly.io docker template; https://github.com/fly-apps/laravel-docker/blob/main/src/Dockerfile
To start using pie I've added the following lines:

# ...

COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
COPY --from=ghcr.io/php/pie:bin /pie /usr/bin/pie

# ...
RUN apt-get update \
    # ...
    && pie install mongodb/mongodb-extension:1.21.0 \
    && pie install phpredis/phpredis \
    # ...

Metadata

Metadata

Assignees

Labels

needs reporter feedbackNeeds details or feedback to be added by reporter

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions