I'm using

Windows 8.1 (64-bit)
Acquia Dev Desktop 2
PHP 5.6.14

During the installation I get the following error.

http://mystuff.dd:8082/core/install.php?rewrite=ok&langcode=en&profile=m...

Fatal error: Uncaught exception 'Symfony\Component\DependencyInjection\Exception\InvalidArgumentException' with message 'The service definition "renderer" does not exist.' in C:\...\vendor\symfony\dependency-injection\ContainerBuilder.php:796 Stack trace: #0 C:\...\vendor\symfony\dependency-injection\ContainerBuilder.php(440): Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition('renderer') #1 C:\...\core\lib\Drupal.php(158): Symfony\Component\DependencyInjection\ContainerBuilder->get('renderer') #2 C:\...\core\includes\install.core.inc(1151): Drupal::service('renderer') #3 C:\...\core\includes\install.core.inc(1089): install_database_errors(Array, './sites/mystuff...') #4 C:\...\core\includes\install.core.inc(366): install_verify_database_settings('sites/mystuff.d...') #5 C:\...\core\includes\install.core.inc(113): ins in C:\...\vendor\symfony\dependency-injection\ContainerBuilder.php on line 796

Apache

CommentFileSizeAuthor
#24 drupal-8-install-fix.png709.59 KBdrupalsMyFriend
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

anthonyroundtree created an issue. See original summary.

catch’s picture

Status: Active » Postponed (maintainer needs more info)

Can you install 8.0.0?

Also it looks like the error you're getting is from install_database_errors() Can you confirm this error message is from a clean install from scratch?

webchick’s picture

I can't reproduce this FWIW on OSX + Acquia DevDesktop 2 + PHP 5.6.14

webchick’s picture

Category: Bug report » Support request
Priority: Critical » Normal
cilefen’s picture

What database name did you type?

anthonyroundtree’s picture

This is a clean install and no I cannot install 8.0.0 either. It's the same message. I've tried going through Dev Desktop's install new site as well as importing the site. Doing it that way ended with Apache failing.

cilefen’s picture

It is the same error as #2443839: Drupal does not install when auto-creating the MySQL database with special characters if special characters were typed for the database name.

anthonyroundtree’s picture

@cilefen
the database name is mystuff (yeah, I'm imaginative)

cilefen’s picture

Was that database name written to settings.php?

The reason I referenced that other issue is because in that situation, the wrong database name becomes written to settings.php which messes up the install steps, which results in that unhelpful error.

anthonyroundtree’s picture

@cilefen

settings.php has the database name set correctly

// </DDSETTINGS>
$databases['default']['default'] = array (
  'database' => 'mystuff',
  ...
);
$settings['install_profile'] = 'minimal';
mrmac2008’s picture

No need to key-in database password. Leave it blank.

drakythe’s picture

Status: Postponed (maintainer needs more info) » Needs work

I believe this is a documentation issue. I was receiving the same issue this morning when setting up a locally installed D8 site via Dev Desktop. Leaving the password blank on the credentials screen resolved the issue. Apparently Dev Desktop writes the settings.php file correctly but can't skip that page of the install so still presents it to the user, and if the user inputs a new username/password the system can't read the database and fails with this error.

To replicate this issue, install a new D8 site using Acquia Dev Desktop, when you reach the database credentials screen input a password and press continue, you should get this error.

To Resolve, on install, do not enter a username or password other than what is already there.

cilefen’s picture

Status: Needs work » Postponed (maintainer needs more info)

I believe this is a documentation issue.

It may be, but if the issue is ADD usage, then this is not a Drupal documentation issue. Let us see what the original reporter says.

jeff@jzamrzla.net’s picture

I have the same issue! But only on one site. I have 3 installs working and one still behaving badly. Each is a stand-alone site on various hosts, using Drupal 8.0.1, running on Debian or Redhat, Apache 2.0 or later, php 5.6 or later, and using Db instances of MySql 5.6 or later.

I think may be caused by site mirroring of the site in question. It's hosted on Dreamhost and may just need time for the code base to propagate across the servers. Strangely, Drupal 7 still runs, installs and has no issues. There have been so many changes in D8, it is going to take me some time to understand and troubleshoot this one.

The site in question is www.scdpks.org. I have about 9 domain names pointing to it, and I peeled one off, www.shawneecountydems.net, did an fresh install of D8 and didn't have any issues at all. That's what makes me think it isn't a coding or db issue, rather a hosting issue and I can't think of any reason other than site propagation. To investigate that further, last night I deleted the latter site and I am installing it now with the December release of 8.0.1. I will keep you informed of my progress.

cilefen’s picture

@jzamrzla There have been some cases of incompleted zip file downloads. Perhaps if you re-download that would help.

jeff@jzamrzla.net’s picture

@cilefen
I thought the same thing, so I did a checksum comparison and they have the same checksum. I have used the same code base on all 1st attempts, worked on 3 out of 4! hair pulling time!

jeff@jzamrzla.net’s picture

Site creation using a separate domain name, www.shawneecountydemocrats.org was completed over the weekend. Same machine, same user folder on a shared webserver, but different root folder for the site. I'm thinking it's an error on the host side, not Drupal! I'm pointing the db to the same instance, and all php/Apache parameters are identical. All things being equal, it must be the hosting system, not the software.

steffmomo’s picture

@mrmac2008, I went into settings.php and deleted my database password, and it worked perfectly.

credenceweb’s picture

I had the exact same problem.

drakythe's response #12 above solved it for me. "To Resolve, on install, do not enter a database username or password other than what is already there."

Once I left the database password field blank, it installed correctly.

anthonyroundtree’s picture

I was able to install Drupal 8.0.3 with no issues.

cilefen’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
geerlingguy’s picture

Another possibility (just FYI, in case someone else hits this in a Google search): Your MySQL server might not be reachable. I was wondering why I kept hitting this error after trying a hundred different gyrations, and in the end, I realized my MySQL server was binding to the wrong IP address (on a separate server), so my database connection was incorrect, and drush si was showing this misleading error.

Using the web UI showed the correct error message:

Failed to connect to your database server. The server reports the following message: SQLSTATE[HY000] [2003] Can't connect to MySQL server on '[ip-here]' (111).
wanflap’s picture

drakythe's response #12 above solved it for me too. I suggest delete your current installation (Dev Desktop use the "-") then re-install. leave the db password BLANK during setup.

drupalsMyFriend’s picture

FileSize
709.59 KB

Hi everyone,
I have been having the same issue. I am using:
Win10 (64-bit)
Acquia Dev Desktop 2
PHP (5.6.14)
openchurch-8.x-2.0-rc4 (A Drupal 8 Church Website)

I have confirmed drakythe's (comment #12).

I left the default username: drupaluser & password: (blank) (ref: uploaded drupal-8-install-fix.png above) and the site loaded correctly.

If I added a new username and password or just changed the username (and left the password blank) I would trigger the error on install.

Thanks for everyone's advice and help :D.

drupalsMyFriend’s picture

Hello, :D
I'm using
Windows 10 (64-bit)
Acquia Dev Desktop 2
PHP (5.6.14)
openchurch-8.x-2.0-rc4 (A Drupal 8 Church Website)

I have managed to confirm drakythe's comments: (ref to attached drupal-8-install-fix.png image).
When I leave the default username: drupaluser & password: (blank) - textbox empty the site continues to setup.
If I change the username: & add a password or change the username: and leave the password: blank I get the abover error.

Thank you to everyone for their suggestions and ideas. I have had an issue installing any version of Drupal 8 on Windows via Acquia Dev Desktop 2 (over the last 6 months) and now it has been solved.

Thank you for your time and consideration.

Brian-C’s picture

Just wanted to chime in and say that I'm experiencing this on Acquia DevDesktop 2 (Build Mar 18 2016) attempting a new install of Drupal 8.1.7.

drakythe’s picture

#26: Were you able to resolve by leaving the password field in the database screen blank? See https://www.drupal.org/files/issues/drupal-8-install-fix.png