Skip to content
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] 500 error on console installer page. #4262

Open
vivekpan27 opened this issue Aug 17, 2020 · 15 comments
Open

[console] 500 error on console installer page. #4262

vivekpan27 opened this issue Aug 17, 2020 · 15 comments

Comments

@vivekpan27
Copy link

vivekpan27 commented Aug 17, 2020

Problem/Motivation

TASK [geerlingguy.drupal-console : Install Drupal Console.] ********************
fatal: [abcd]: FAILED! => {"changed": false, "dest": "/usr/local/bin/drupal", "elapsed": 1, "msg": "Request failed", "response": "HTTP Error 500: Internal Server Error", "status_code": 500, "url": "https://drupalconsole.com/installer"}

Details to include:

How to reproduce

Visit https://drupalconsole.com/installer.
OR
try to provision for DrupalVM.

@jcaillot
Copy link

As a (very ugly) temporary workaround, I could obtain a copy of the "drupal" executable from a team mate that already had its VM provisionned and I changed this task in ansible :

- name: Install Drupal Console.
  get_url:
    url: https://drupalconsole.com/installer
    dest: "{{ drupal_console_path }}"

for:

- name: Copy Drupal Console (temporary workaround).
  copy:
    src: /path/to/local/copy/of/drupal
    # drupal_console_path in VM is /usr/local/bin/drupal
    dest: "{{ drupal_console_path }}"

I also disabled the "drupal console" self-update task a few lines below.
I was then able to run vagrant up --provision without issue.

@elizoller
Copy link

I am also receiving a 500 Internal Server Error from https://drupalconsole.com/installer

@vivekpan27
Copy link
Author

Yes, the drupal console team has to solve that issue.
Till then I guess we can use the method that @jcaillot has shown or we can remove drupalconsole from our ansible script(if we are using ansible) for the time if we do not explicitly require it. We can later add it back and re-provision the VM to get it into our system.

@justrussian
Copy link

justrussian commented Aug 20, 2020

Where can I find this executable file to be downloaded from the link https://drupalconsole.com/installer?

@vivekpan27
Copy link
Author

You can ask someone to provide you with the executable.
Or you can use composer:
composer require drupal/console
Then you can run drupalconsole using: vendor/bin/drupal

@dmouse
Copy link
Member

dmouse commented Aug 20, 2020

We are working to solve this but in future versions this installer will be removed.

Please use the composer require drupal/console to install DC

@bits-of-static
Copy link

For DrupalVM, see my workaround at #3233 (comment)

@unknownterritory
Copy link

Considering that the DC team is planning to remove this installer in future versions, creating a .bashrc alias or adding vendor/bin to path might be more future friendly workarounds.

@unknownterritory
Copy link

To fully install Drupal Console and add /vendor/bin to the $PATH, on Ubuntu, using Ansible:

  tasks:
    - name: Require Drupal Console.
      composer:
        command: require
        arguments: drupal/console:~1.0
        working_dir: "/var/www/{{ project }}"
        prefer_dist: yes
        optimize_autoloader: yes
      become: false
      environment:
        COMPOSER_PROCESS_TIMEOUT: 1200
        COMPOSER_MEMORY_LIMIT: '-1'
    - name: Add project's /vendor/bin to $PATH
      lineinfile:
        path: ~/.profile
        line: 'PATH="$PATH:/var/www/{{ project }}/vendor/bin"'
        state: present
      become: false

@star-szr
Copy link
Contributor

We are working to solve this but in future versions this installer will be removed.

Please use the composer require drupal/console to install DC

@dmouse 👋

So does this mean that the launcher itself is deprecated or soon to be deprecated?

@finex
Copy link

finex commented Sep 25, 2020

Hi, Drupal Console can't be installed on Drupal 8.8/8.9 using composer (look at #4251 and others), so at least the installer should be restored. Now there is no way to install it.

@codebymikey
Copy link

Hi @dmouse

Is there any particular reason the phar/launcher isn't attached to each Github release?

That'd certainly avoid issues like this while reducing the stress on your servers.

@omargits
Copy link

is any update about installer? i am still facing the same issue. any one can help me for installing drupal console on windows please

@yuseferi
Copy link

yuseferi commented Nov 29, 2020

Sounds like the problem is with the installer itself

php -r "readfile('https://drupalconsole.com/installer');" > drupal.phar
PHP Warning:  readfile(https://drupalconsole.com/installer): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error
 in Command line code on line 1

Error: Server Error
The server encountered an error and could not complete your request.
Please try again in 30 seconds.

on https://drupalconsole.com/installer

@xurizaemon
Copy link

duplicated by #4263

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests