-
-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[console] Something goes wrong with your package. #2590
Comments
Try using beta-5 and not master |
Shouldn't master still always strive to be working? For instance for anyone building on head just for testing new features. I myself test all branches of drupalconsole so am getting a failure when testing master @ https://github.com/sylus/docker-drupalconsole |
@sylus Yes totally agree with you, master should always work, but had to break the rules this time from now until RC-1 by the end of the month. |
Ah no problem, completely understood! :) Thanks for the clarification about until RC-1 that solves my concerns :) |
Now that rc1 is out I attempted to build off of master and I still get an issue. I was hoping that this would be resolved now? I know I haven't connected to a drupal site yet but Docker is creating the service first and it will be volume mounted to a drupal f.s. when the container is launched. Shouldn't RC1 be building correctly now? Dockerfile# Drupal Console Docker Container
FROM drupalconsole/console:base-alpine
MAINTAINER William Hearn <[email protected]>
# Install Drupal Console using Composer.
RUN composer global config minimum-stability dev && \
composer global require drupal/console:~1.0 --prefer-dist
# Display which version of Drupal Console was installed.
RUN drupal --check Output...
- Installing drupal/console-core (1.0.0-rc1)
Downloading: 100%
...
Something goes wrong with your package.
Try downloading again.
Executing:
composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
The command '/bin/sh -c drupal check' returned a non-zero code: 1 |
Looking at this @sylus |
Thanks for taking a look at this, I think it is the same as other people having this problem. At the time we are checking that drupal console got installed and runs correctly we have not yet linked it up to be mounted in a drupal file system so no autoload.php file is present. I think we should be able to check the simple status of drupal console without it having to be linked to a drupal site when doing such a simple init check. Then on docker run we will be mounted in a drupal file system. |
My terminal output on composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader |
@Thomasvc1 you will find an answer to this issue at this comment I did on a similar reported issue: |
Here is my output: Step 4 : RUN composer global config minimum-stability dev && composer global require drupal/console:~1.0 --prefer-dist --optimize-autoloader --sort-packages
---> Running in 8bddf88e6575
Changed current directory to /composer
Changed current directory to /composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing composer/installers (v1.2.0)
Downloading: 100%
- Installing symfony/polyfill-mbstring (dev-master 53ad9fa)
Downloading: 100%
- Installing ircmaxell/password-compat (1.0.x-dev 9b99377)
Downloading: 100%
- Installing symfony/polyfill-php55 (dev-master bf2ff9a)
Downloading: 100%
- Installing symfony/polyfill-php54 (dev-master 34d7619)
Downloading: 100%
- Installing symfony/http-foundation (2.8.x-dev 91f87d2)
Downloading: 100%
- Installing symfony/expression-language (2.8.x-dev 50c990e)
Downloading: 100%
- Installing symfony/dom-crawler (2.8.x-dev aac03b7)
Downloading: 100%
- Installing psr/log (dev-master 607ce1d)
Downloading: 100%
- Installing symfony/debug (2.8.x-dev 8c29235)
Downloading: 100%
- Installing symfony/css-selector (2.8.x-dev 71c8c3a)
Downloading: 100%
- Installing symfony/console (2.8.x-dev d7a5a88)
Downloading: 100%
- Installing stecman/symfony-console-completion (0.5.1)
Downloading: 100%
- Installing phpseclib/phpseclib (2.0.x-dev ab8028c)
Downloading: 100%
- Installing padraic/humbug_get_contents (dev-master 1bfe28c)
Downloading: 100%
- Installing padraic/phar-updater (dev-master c17eeb3)
Downloading: 100%
- Installing symfony/finder (2.8.x-dev bc24c8f)
Downloading: 100%
- Installing guzzlehttp/promises (1.2.0)
Downloading: 100%
- Installing psr/http-message (dev-master f6561bf)
Downloading: 100%
- Installing guzzlehttp/psr7 (dev-master 64862e8)
Downloading: 100%
- Installing guzzlehttp/guzzle (dev-master a0d7517)
Downloading: 100%
- Installing gabordemooij/redbean (v4.3.2)
Downloading: 100%
- Installing twig/twig (1.x-dev f00e7b8)
Downloading: 100%
- Installing symfony/event-dispatcher (2.8.x-dev 889983a)
Downloading: 100%
- Installing symfony/yaml (2.8.x-dev e754073)
Downloading: 100%
- Installing symfony/translation (2.8.x-dev bf0ff95)
Downloading: 100%
- Installing symfony/process (2.8.x-dev 024de37)
Downloading: 100%
- Installing symfony/filesystem (2.8.x-dev 44b4995)
Downloading: 100%
- Installing symfony/config (2.8.x-dev f8b1922)
Downloading: 100%
- Installing symfony/dependency-injection (2.8.x-dev ee9ec9a)
Downloading: 100%
- Installing drupal/console-en (1.0.0-rc1)
Downloading: 100%
- Installing dflydev/placeholder-resolver (dev-master c498d0c)
Downloading: 100%
- Installing dflydev/dot-access-data (dev-master 9c253bb)
Downloading: 100%
- Installing dflydev/dot-access-configuration (dev-master 9b65c83)
Downloading: 100%
- Installing drupal/console-core (1.0.0-rc4)
Downloading: 100%
- Installing doctrine/lexer (dev-master 83893c5)
Downloading: 100%
- Installing doctrine/annotations (v1.2.7)
Downloading: 100%
- Installing doctrine/collections (dev-master 2dfc898)
Downloading: 100%
- Installing alchemy/zippy (0.3.5)
Downloading: 100%
- Installing drupal/console (1.0.0-rc4)
Downloading: 100%
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-libsodium (SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.)
symfony/event-dispatcher suggests installing symfony/http-kernel ()
symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
alchemy/zippy suggests installing guzzle/guzzle (To use the GuzzleTeleporter)
Writing lock file
Generating optimized autoload files
---> f27ad5041a2c
Removing intermediate container 8bddf88e6575
Step 5 : RUN drupal --list
---> Running in bdc54ccc37e8
Something goes wrong with your package.
Try downloading again.
Executing:
composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
The command '/bin/sh -c drupal --list' returned a non-zero code: 1 |
@jmolivas again clarifying I just need a simple access check to verify drupal console. But I always hit up against: Commands like |
Can this also be labelled as a bug this was said to be fixed in 1.0-rc1 and am now at 1.0-rc4 and the issue still persists. |
Do you actually run this tool before a release? :( |
I just installed DrupalConsole by using
|
@jmolivas Composer should also work. This is confirmed by the |
I am having this issue as well, although in a different environment. Run stand alone (not on a drupal root) doesn't work, but running on one does. This is happening to me on a http://platform.sh project, which doesn't give much me the option of much tweaks after it is installed. On the other hand, the deployment always installs everything fresh, so it shouldn't be an issue. No self-update going on. Also running the latest drupal-composer. beta5 worked fine. Not root
ON a drupal root:
Any ideas? |
@jmolivas my issue is with the composer install not the phar itself which doesn't have the issue. |
I have the same issue. When I execute Drupal Console outside of the webroot:
When I execute it inside the webroot, it works:
It looks like Drupal console recently stopped using the --uri and --root params. I'm also having issues generating proper url's, even with passing the --uri option, this worked before. |
@jmolivas The reason the phar file works is because |
Just tried this again on 1.0-rc5 and same issue see docker build out below: docker build -t drupalconsole/console:master-alpine master/alpine
Sending build context to Docker daemon 2.048 kB
Step 1 : FROM drupalconsole/console:base-alpine
---> 3e99a9f89648
Step 2 : MAINTAINER William Hearn <[email protected]>
---> Using cache
---> cb393dafb198
Step 3 : ENV DRUPAL_CONSOLE_VERSION "dev-master"
---> Running in c16ed8458b84
---> 2391e452db15
Removing intermediate container c16ed8458b84
Step 4 : RUN composer global config minimum-stability dev && composer global require drupal/console:~1.0@RC --prefer-dist --optimize-autoloader --sort-packages
---> Running in 8e495e456b2f
Changed current directory to /composer
Changed current directory to /composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing composer/installers (v1.2.0)
Downloading: 100%
- Installing symfony/polyfill-mbstring (dev-master 53ad9fa)
Downloading: 100%
- Installing ircmaxell/password-compat (1.0.x-dev 9b99377)
Downloading: 100%
- Installing symfony/polyfill-php55 (dev-master bf2ff9a)
Downloading: 100%
- Installing symfony/polyfill-php54 (dev-master 34d7619)
Downloading: 100%
- Installing symfony/http-foundation (2.8.x-dev 83262dd)
Downloading: 100%
- Installing symfony/expression-language (2.8.x-dev 50c990e)
Downloading: 100%
- Installing symfony/dom-crawler (2.8.x-dev aac03b7)
Downloading: 100%
- Installing psr/log (dev-master 607ce1d)
Downloading: 100%
- Installing symfony/debug (2.8.x-dev 8c29235)
Downloading: 100%
- Installing symfony/css-selector (2.8.x-dev 71c8c3a)
Downloading: 100%
- Installing symfony/console (2.8.x-dev 7350016)
Downloading: 100%
- Installing stecman/symfony-console-completion (0.5.1)
Downloading: 100%
- Installing phpseclib/phpseclib (2.0.x-dev 7bc7c8c)
Downloading: 100%
- Installing guzzlehttp/promises (1.2.0)
Downloading: 100%
- Installing psr/http-message (dev-master f6561bf)
Downloading: 100%
- Installing guzzlehttp/psr7 (dev-master 64862e8)
Downloading: 100%
- Installing guzzlehttp/guzzle (dev-master a0d7517)
Downloading: 100%
- Installing gabordemooij/redbean (v4.3.2)
Downloading: 100%
- Installing twig/twig (1.x-dev 33dfadb)
Downloading: 100%
- Installing symfony/yaml (2.8.x-dev e754073)
Downloading: 100%
- Installing symfony/translation (2.8.x-dev bf0ff95)
Downloading: 100%
- Installing symfony/process (2.8.x-dev 024de37)
Downloading: 100%
- Installing symfony/finder (2.8.x-dev bc24c8f)
Downloading: 100%
- Installing symfony/filesystem (2.8.x-dev 44b4995)
Downloading: 100%
- Installing symfony/event-dispatcher (2.8.x-dev 889983a)
Downloading: 100%
- Installing symfony/dependency-injection (2.8.x-dev 7bc01cf)
Downloading: 100%
- Installing symfony/config (2.8.x-dev f8b1922)
Downloading: 100%
- Installing drupal/console-en (1.0.0-rc1)
Downloading: 100%
- Installing dflydev/placeholder-resolver (dev-master c498d0c)
Downloading: 100%
- Installing dflydev/dot-access-data (dev-master 9c253bb)
Downloading: 100%
- Installing dflydev/dot-access-configuration (dev-master 9b65c83)
Downloading: 100%
- Installing drupal/console-core (1.0.0-rc5)
Downloading: 100%
- Installing doctrine/lexer (dev-master 83893c5)
Downloading: 100%
- Installing doctrine/annotations (v1.2.7)
Downloading: 100%
- Installing doctrine/collections (dev-master 2dfc898)
Downloading: 100%
- Installing alchemy/zippy (0.3.5)
Downloading: 100%
- Installing drupal/console (1.0.0-rc5)
Downloading: 100%
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-libsodium (SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.)
symfony/event-dispatcher suggests installing symfony/http-kernel ()
symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
alchemy/zippy suggests installing guzzle/guzzle (To use the GuzzleTeleporter)
Writing lock file
Generating optimized autoload files
---> a141770524c6
Removing intermediate container 8e495e456b2f
Step 5 : RUN drupal --list
---> Running in 54531d82c992
DrupalConsole must be executed within a Drupal Site.
Try changing to a Drupal site directory and download it by executing: |
@sylus Starting on RC releases we decouple DrupalConsole into separated projects. This is the new repo containing the box configuration and the one we use as the global executable And the one you install per site is this one => https://github.com/hechoendrupal/DrupalConsole |
@jmolivas I tried the new console-launcher one and same issue. Sorry rendering in markdown docker build -t drupalconsole/console:master-alpine master/alpine 1 ↵
Sending build context to Docker daemon 2.048 kB
Step 1 : FROM drupalconsole/console:base-alpine
---> 3e99a9f89648
Step 2 : MAINTAINER William Hearn <[email protected]>
---> Using cache
---> cb393dafb198
Step 3 : ENV DRUPAL_CONSOLE_VERSION "dev-master"
---> Using cache
---> 2391e452db15
Step 4 : RUN composer global config minimum-stability dev && composer global require drupal/console-launcher:~1.0@RC --prefer-dist --optimize-autoloader --sort-packages
---> Running in 74b403fc6c23
Changed current directory to /composer
Changed current directory to /composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
...
- Installing drupal/console-en (1.0.0-rc1)
Downloading: 100%
- Installing dflydev/placeholder-resolver (dev-master c498d0c)
Downloading: 100%
- Installing dflydev/dot-access-data (dev-master 9c253bb)
Downloading: 100%
- Installing dflydev/dot-access-configuration (dev-master 9b65c83)
Downloading: 100%
- Installing drupal/console-core (1.0.0-rc5)
Downloading: 100%
- Installing drupal/console-launcher (1.0.0-rc5)
Downloading: 100%
symfony/event-dispatcher suggests installing symfony/http-kernel ()
symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
symfony/dependency-injection suggests installing symfony/expression-language (For using expressions in service container configuration)
Writing lock file
Generating optimized autoload files
---> 2ba3f25a90da
Removing intermediate container 74b403fc6c23
Step 5 : RUN drupal --list
---> Running in c0eeb515c2fb
Something goes wrong with your drupal.phar archive.
Try downloading again by executing from your terminal:
curl https://drupalconsole.com/installer -L -o drupal.phar
The command '/bin/sh -c drupal --list' returned a non-zero code: 1 |
@sylus any reason to load the global executable using
|
@jmolivas I will be including the phar form of this in the docker repo as well as a different variant, but I also wanted the composer build process too as we are extending from the composer base image @ https://github.com/RobLoach/docker-composer. |
@sylus ok, I found some issues with the paths on the repo, I will be fixing those and ping back. |
Ah awesome thank you so much @jmolivas I really appreciate you taking a look at this. You are doing amazing work, can't say enough how great this tool is. I did just give a try on the lastest master as saw the following commit: I am now getting this but I assume it is because I need to use the console launcher instead? Sending build context to Docker daemon 2.048 kB
Step 1 : FROM drupalconsole/console:base-alpine
---> 3e99a9f89648
Step 2 : MAINTAINER William Hearn <[email protected]>
---> Using cache
---> cb393dafb198
Step 3 : ENV DRUPAL_CONSOLE_VERSION "dev-master"
---> Using cache
---> 6641010b49c5
Step 4 : RUN composer global config minimum-stability dev && composer global require drupal/console:$DRUPAL_CONSOLE_VERSION --prefer-dist --optimize-autoloader --sort-packages
---> Using cache
---> 103cb98c3a07
Step 5 : RUN drupal --list
---> Running in f5f1488d0d37
DrupalConsole must be executed within a Drupal Site.
Try changing to a Drupal site directory and download it by executing:
composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
composer update drupal/console --with-dependencies At the end of the day just hoping to be able to run a simple console command without being attached to a Drupal instance to just check status of console. ^_^ |
Ah so cool, I will try out the P.R. and report back. Thank you so much! If ever your in ottawa doing a Drupal session, drinks are on me! |
I just gave this a go but still seem to have this issue, should I instead be using console-launcher? Here is my full output. Sending build context to Docker daemon 2.048 kB
Step 1 : FROM drupalconsole/console:base-alpine
---> 3e99a9f89648
Step 2 : MAINTAINER William Hearn <[email protected]>
---> Using cache
---> cb393dafb198
Step 3 : ENV DRUPAL_CONSOLE_VERSION "1.0-rc6"
---> Using cache
---> 4cc5ea6a4fc4
Step 4 : RUN composer global config minimum-stability dev && composer global require drupal/console:~1.0 --prefer-dist --optimize-autoloader && composer global update drupal/console --with-dependencies
---> Running in b5749d2b3d74
Changed current directory to /composer
Changed current directory to /composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing composer/installers (v1.2.0)
Downloading: 100%
- Installing symfony/polyfill-mbstring (dev-master 53ad9fa)
Downloading: 100%
- Installing ircmaxell/password-compat (1.0.x-dev 9b99377)
Downloading: 100%
- Installing symfony/polyfill-php55 (dev-master bf2ff9a)
Downloading: 100%
- Installing symfony/polyfill-php54 (dev-master 34d7619)
Downloading: 100%
- Installing symfony/http-foundation (2.8.x-dev 84c539f)
Downloading: 100%
- Installing symfony/expression-language (2.8.x-dev 50c990e)
Downloading: 100%
- Installing symfony/dom-crawler (2.8.x-dev a94f3fe)
Downloading: 100%
- Installing psr/log (dev-master 4ebe3a8)
Downloading: 100%
- Installing symfony/debug (2.8.x-dev 8c29235)
Downloading: 100%
- Installing symfony/css-selector (2.8.x-dev 71c8c3a)
Downloading: 100%
- Installing symfony/console (2.8.x-dev 7350016)
Downloading: 100%
- Installing stecman/symfony-console-completion (0.5.1)
Downloading: 100%
- Installing phpseclib/phpseclib (2.0.x-dev 9e15d0c)
Downloading: 100%
- Installing guzzlehttp/promises (1.2.0)
Downloading: 100%
- Installing psr/http-message (dev-master f6561bf)
Downloading: 100%
- Installing guzzlehttp/psr7 (dev-master 64862e8)
Downloading: 100%
- Installing guzzlehttp/guzzle (dev-master 56ed0ef)
Downloading: 100%
- Installing gabordemooij/redbean (v4.3.2)
Downloading: 100%
- Installing twig/twig (1.x-dev 09bf2ba)
Downloading: 100%
- Installing symfony/yaml (2.8.x-dev 396784c)
Downloading: 100%
- Installing symfony/translation (2.8.x-dev cca6ff8)
Downloading: 100%
- Installing symfony/process (2.8.x-dev 024de37)
Downloading: 100%
- Installing symfony/finder (2.8.x-dev bc24c8f)
Downloading: 100%
- Installing symfony/filesystem (2.8.x-dev a378411)
Downloading: 100%
- Installing symfony/event-dispatcher (2.8.x-dev 25c576a)
Downloading: 100%
- Installing symfony/dependency-injection (2.8.x-dev 4adae54)
Downloading: 100%
- Installing symfony/config (2.8.x-dev f8b1922)
Downloading: 100%
- Installing drupal/console-en (1.0.0-rc2)
Downloading: 100%
- Installing dflydev/placeholder-resolver (dev-master c498d0c)
Downloading: 100%
- Installing dflydev/dot-access-data (dev-master 9c253bb)
Downloading: 100%
- Installing dflydev/dot-access-configuration (dev-master 9b65c83)
Downloading: 100%
- Installing drupal/console-core (1.0.0-rc6)
Downloading: 100%
- Installing doctrine/lexer (dev-master 83893c5)
Downloading: 100%
- Installing doctrine/annotations (v1.2.7)
Downloading: 100%
- Installing doctrine/collections (dev-master 2dfc898)
Downloading: 100%
- Installing alchemy/zippy (0.3.5)
Downloading: 100%
- Installing drupal/console (1.0.0-rc6)
Downloading: 100%
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-libsodium (SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.)
symfony/event-dispatcher suggests installing symfony/http-kernel ()
symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
alchemy/zippy suggests installing guzzle/guzzle (To use the GuzzleTeleporter)
Writing lock file
Generating optimized autoload files
Changed current directory to /composer
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
---> 3f0c8710dd6a
Removing intermediate container b5749d2b3d74
Step 5 : RUN drupal list
---> Running in 9e246b376602
DrupalConsole must be executed within a Drupal Site.
Try changing to a Drupal site directory and download it by executing:
composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
composer update drupal/console --with-dependencies
The command '/bin/sh -c drupal list' returned a non-zero code: 1 |
Just pinging @jmolivas for above. I wonder if we should temporarily add to the readme that drupal console doesn't work with I can then point my docs to that and switch over to phar files only. ^_^ |
Is it not possible to install drupal-console launcer via composer? https://hechoendrupal.gitbooks.io/drupal-console/content/en/getting/launcher.html Followed the above instructions and i got the same error, download method worked fine. |
There is a PR for that hechoendrupal/drupal-console-launcher#127 still not working. If anyone interested feel free to contribute. |
Hello @jmolivas , I found that the commit 8cdf2ef related to the PR #2499 caused an error.
When I work with the latest master branch (d6a5499), after run
composer install
, typedrupal
So I try to find which commit caused that, then found 8cdf2ef.
The text was updated successfully, but these errors were encountered: