acquia / df

Demo Framework - mirrored at https://git.drupal.org/project/df.git
https://www.drupal.org/project/df
18 stars 19 forks source link

Error when installing site on df using SQLite #193

Open lauriii opened 4 years ago

lauriii commented 4 years ago

I tried to install df with SQLite but I got the following error:

# lauri.eskola @ Lauris-MBP in ~/Projects/acquia_demo_framework/docroot on git:8.x-4.x x [11:53:14]
$ drush site-install df --db-url=sqlite://sites/default/files/.ht.sqlite

 You are about to DROP all tables in your 'sites/default/files/.ht.sqlite' database. Do you want to continue? (yes/no) [yes]:
 >

 [notice] Starting Drupal installation. This takes a while.

In ConfigRewriter.php line 162:

  Tried to rewrite config workflows.workflow.editorial by df_tools_workflow module without initial config.

This error doesn't happen with the exact same setup when Mysql is being used.

saltednut commented 4 years ago

Could this possibly have something to do with core and how it writes to different databases? Might be good to follow up with some sqlite tests for config_rewrite?

lauriii commented 4 years ago

It could be a core bug that trickles down here. I didn't have time to debug this so I just thought I'd open a ticket here to make sure it has been written down somewhere.

rlnorthcutt commented 4 years ago

I ran into the same issue using SQLite in testing. I moved the workflows.workflow.editorial.yml from rewrite into optional, and it worked.

saltednut commented 4 years ago

I believe that'd be from an older version of DF, Ron. As of this commit and later this commit 22 days ago we stopped rewriting or installing the workflow.editorial and defer to Lightning's optional config to install it.

Are both of you using the latest release? These changes should be in rc2

lauriii commented 4 years ago

I created my project by using composer create-project acquia/df-project -s dev earlier today and it seems to have installed 4.0.0-beta4 version of df. I can try later if updating to rc2 helps.

saltednut commented 4 years ago

I wonder if composer/packagist sees the 4.0.0-rcX versions as lesser than 4.0.0-betaX? Very strange. We've had two releases since beta4. :( https://packagist.org/packages/acquia/df

saltednut commented 4 years ago

I went ahead and did some tighter version constraints in df-project and updated packagist. The SHA you should see when running is: f03f6a3ea7ca941913e8ac969cf0c4f70fa74ef3

composer create-project acquia/df-project -s dev Installing acquia/df-project (dev-8.x-4.x f03f6a3ea7ca941913e8ac969cf0c4f70fa74ef3)

This version downloaded 8.x-4.x-rc2 successfully but now I am seeing errors downloading cohesion/dx8

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - acquia/df 4.0.0-rc2 requires cohesion/dx8 5.7.1 -> no matching package found.
    - acquia/df 4.0.0-rc1 requires cohesion/dx8 5.7.1 -> no matching package found.
    - Installation request for acquia/df ^4.0.0-rc1 -> satisfiable by acquia/df[4.0.0-rc1, 4.0.0-rc2].

Gonna go ahead and close this one since its resolved and start up a new thread about that.

saltednut commented 4 years ago

Just realized it was the VCS definitions that needed to be added. Updated, so look for 563459f as the hash now when running composer create-project