Reviewed & tested by the community
Project:
simplytest.me
Version:
8.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Reporter:
Created:
12 Feb 2018 at 20:14 UTC
Updated:
27 Jan 2019 at 08:13 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
nerdsteinThis suggests the automatic installer failed. Greg is working on scouring the logs to see why.
Comment #3
greg boggsI believe this is an issue with Lightning. Here is the error message I got during install. The new system should allow the end user to access the PHP error logs for their instance so that issues on install are transparent.
The website encountered an unexpected error. Please try again later.
Drupal\Core\Entity\EntityStorageException: The "oauth2_token" entity type does not exist. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 805 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object) (Line: 377)
Drupal\Core\Entity\Entity->save() (Line: 293)
Drupal\Core\Installer\Form\SiteConfigureForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 111)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 51)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 585)
Drupal\Core\Form\FormBuilder->processForm('install_configure_form', Array, Object) (Line: 314)
Drupal\Core\Form\FormBuilder->buildForm('install_configure_form', Object) (Line: 905)
install_get_form('Drupal\Core\Installer\Form\SiteConfigureForm', Array) (Line: 599)
install_run_task(Array, Array) (Line: 555)
install_run_tasks(Array) (Line: 117)
install_drupal(Object) (Line: 44)
Comment #4
volkswagenchickI did receive the same errors while trying to spawn the Multilingual demo as well....
Comment #5
greg boggsUnfortunately, any time the install fails, you get the same behavior. We'll sort this one out!
Comment #6
danielvezaJust to further confirm - This is also happening with the Sector distribution.
Comment #7
joseph.olstadalso affects the media_dev distribution and others I tested.
Comment #8
madjr commentedDrupal 7 distros also have problem. No DB info. They even lose their CSS formating
Comment #9
joseph.olstadYes D7 distros affected as well and I confirm css lost as well
Comment #10
joseph.olstadMust be a file permissions issue with the files folder and maybe tmp as well
Comment #11
nerdsteinComment #12
nerdsteinOne of the main challenges I see here is that projects are being cloned and rsynced into the appropriate directory. This is no longer needed with Composer (at least for Drupal 8).
I'm working on a patch that should address this.
Comment #14
nerdsteinGetting there...
In a simple test to spawn password policy for D8 the following is received.
Composer only wants the "3.0-alpha4" and the major version needs stripped.
New patch
Comment #16
nerdsteinSimplyTest has build in recursive logic to look for dependencies. This is causing some issues. The following patch needs to be executed to as a test to get some details on the build.
Comment #18
nerdsteinS_CORE variable is not set so lets make one.
Comment #20
nerdsteinOK, this is getting closer.
Message:
This usually means that it's not running in core's directory.
I am out of time for tonight, so here is a patch that restores this back to the way it was for the evening. I expect to get this working tomorrow.
Comment #22
joseph.olstadJust FYI, we're still actively developing the media_dev distribution 7.x branches
I don't think composer is going to help with our development.
Nothing wrong with using rsync
rsync will still be used long after I retire and my grandchildren will probably use it to combat against the robots and free themselves from the matrix.
Comment #23
joseph.olstadthe wetkit distribution has the same issue, no css, and no database configuration, everything is empty in the database configuration page.
Comment #24
nerdstein@joseph.olstad - thanks for the information.
I'm not against Rsync, we just need to be using Composer for loading projects with Drupal 8 as it's better supported.
Once I get this in place, I will definitely be moving onto Drupal 7. Hang tight as we're working through this.
Comment #26
nerdsteinI misunderstood the order of operations. Projects were being added *before* core. Hence the message.
The following attempts to fix that.
Comment #48
nerdsteinThe following patch has a much cleaner composer integration.
I have attempted to get Lightning working without any luck yet (but the patch shows some of the progress). I also fixed the non-interactive install issue.
Comment #49
nerdsteinI still need to test out additional projects and patches for 8 and then I will jump back to Drupal 7.
Comment #50
joseph.olstadnow distro profiles aren't loaded at all for 7.x, looks like the standard profile getting started by default instead of the distro profile , no way to log in either. Installation steps appear to have been skipped, goes directly to the blue login page.
Comment #52
joseph.olstadTried again after commit:
#2944232-51: Distributions not spawning properly
no change.
Comment #53
joseph.olstad[D7] This worked right when Patrickd handed the keys over to nerdstein. What happened ? What changes caused the regressions? Can they be rolled back ?
Comment #54
joseph.olstadSynopsis of the current issue: simplytest.me will spin up the distribution however
it will not provide a login password***EDIT*** lucky guess, admin/admin user/pass combo works ***EDIT***so unable to log into the system once it's set up. Also, all the install forms seem to be skipped altogether, this might be intentional but just making a note of this change as it seems related.Also, for the wetkit distribution it can be installed in either English or French, this step is skipped.
same for the media_dev distribution, the installation language option is skipped and the default is chosen.
Also, for the wetkit distro, during installation there are steps to create default content (uses the migrate module), this is skipped, no demo content is created. I imagine that the media_dev distro demo content will not be available either.
Comment #55
greg boggsAs the installation of Drupal is now automated, there's no option yet to make installation choices.
There's a feature request to add that feature back here: https://www.drupal.org/project/simplytest/issues/2948370. Contributions are, of course, encouraged!
The bug with the admin password not getting prefilled is in a couple issues, but it seems we don't yet have a dedicated issue for it.
Comment #56
joseph.olstadre: #55 automated yet incorrectly automated, it skips default installation steps, things like demo content are not created that should be created when installing the wetkit distribution. This is a default option in the installation profile but is now skipped.
Comment #57
greg boggsAre there any special arguments that need to be passed to Drush to trigger the choices?
Comment #58
joseph.olstadmost definately there are special arguments for drush. These drush instructions were removed long ago as the intended method of installation is with the web GUI.
drush si wetkit wetkit_theme_selection_form.theme=wetkit_bootstrap install_configure_form.demo_content=TRUE --sites-subdir=default --db-url=mysql://root:@127.0.0.1:3306/wetkit_db --account-name=admin --account-pass=WetKit@2018 --site-mail=admin@example.com --site-name='Web Experience Toolkit' --yeswould be much more convenient for testing to use the GUI don't you think? The GUI allows choosing options, and these options need to work and be tested right?
Maybe rename simplytest.me to simplyunusable.me?
Comment #59
greg boggsMakes sense. Thanks. As I just said, we're adding the ability to do both automatic and manual installs. Feel free to contribute to the manual install issue.
The todos on that one are something like:
1. Add a checkbox to allow for manual installation.
2. Read the checkbox during build.sh.
3. Skip Drush si when the checkbox is set.
4. Prefill the credentials in the installer.
While I understand that it's frustrating that the distro is broken, we're working on it as we can.
~G
Comment #60
joseph.olstadThanks for confirming the todo list, sounds like a good plan, I approve.
Comment #61
greg boggsThanks Joseph,
I'll be working on this in the evenings over the course of the weekend, and it will be my first push to the website side of the project. So, I'll be sure to update this thread when it's ready for testing!
~G
Comment #62
volkswagenchickThought I'd make a comment since this issue seems idle.
I did attempt to spawn the multilingual_demo and it did spawn. The functionality was there, images were broken.
Screenshot attached.
Comment #63
joseph.olstadHi @Greg Boggs , how would I contribute to the manual install issue?
couldn't you just roll back to when it was working? patrickd's last commit.
https://cgit.drupalcode.org/simplytest/commit/?id=d51b15bb824b9d86019f0d...
If I was contributing to this, I'd rollback to PatrickD when everything was still working.
Comment #64
joseph.olstadThe University of Norway in Oslo is working on media 4.x , a lot of new code, it'd sure be nice to be able to spin up our media_dev v4.x-dev distribution on simplytest.me to test out various changes , would be so nice.
Comment #65
joseph.olstadI should have done this months ago, but I've just removed all references and links from media_dev to simplytest.me , as these are just confusing people getting them into a broken environment.
Until this is fixed, Simplytest.me is limited to testing core and a few modules at a time, requiring a lot of manual setup. Or partially configured distributions.
Comment #66
joseph.olstadShould someone start a 'Go fund me' campaign to get this fixed?
Comment #67
nerdsteinJoseph, sorry for the delays with all of this. Greg has been blocked and my priorities were getting out the latest release I just completed. The concept of a manual install feature is my next highest priority and I expect to work on it this week.
I just want to note that there is a substantial amount of variation that exists across distributions and between major versions. If this is a blocker for the media work, I'm happy to collaborate with you to share provisioning logs and accept patches to the d.o code base. The same offer has been extended for the OOTB initiative.
Please hang tight a bit longer while I get this moving in the coming days.
Comment #68
joseph.olstadOk, so if you can PM me with info about the provisioning logs , that might be helpful.
Reason why I followed up, two people raised issues in the media_dev queue since yesterday mentioning issues with media_dev not working in simplytest.me
how can the community help?
Comment #69
gmclelland commented@nerdstein - Thank you for your work on this. I'm looking forward to getting back to testing the https://www.drupal.org/project/media_dev distro with simplytest.me. It's a good way to keep updated on all the changes happening with the D7 media module ecosystem.
Comment #70
nerdsteinThe media_dev distribution is loading with a bypass install. I'm still sorting out how to get over the usability issue of populating database credentials in the installer.
Comment #71
joseph.olstadThe community and drupal association needs to step up here. simplytest.me is the face of Drupal , whether it is 7 or 8, we used to look awesome because of simplytest.me.
I think these changes were made for the sake of speedy installation, however now it's not installing correctly. I'd choose slow and working over fast and broken 10 times out of 10.
Comment #72
nerdsteinHi Joseph, thanks for letting us know you're experiencing issues. The server seems to be hit with some significant load right now. We're investigating it as I'm typing this and, overall, we haven't been seeing as many issues as we had. But, things do come up with these systems.
We also just finished a development server so we could solicit more contributions and leave production for stable releases only. We also know how to set up additional servers and can look into that to boost the resourcing capabilities for the production system.
Comment #73
joseph.olstadNerdstein, do you have any documentation of the technical details of transfer of this project from PatrickD over to you?
I'd like to fork simplytest.me and get distributions working again, I've got my own servers and I own the w3bfactory.com domain so I'd just make something like simplytest.w3bfactory.com
I was thinking if I forked this project to the working state that PatrickD had it as then it'd just work. I'm not sure what happened during the takeover other than bypassing the installation profile and probably version changes of drush.
It'd be really nice to have something up and running quick.
It's been 7 months or so now and I'm starting to get impatient.
Comment #74
nerdsteinHi Joseph, are you experiencing new issues?
The performance issues in my last comment have been addressed. There are obviously ongoing improvements we need to fix and I'm hoping to prioritize that in Q4 of this year.
If you wish to fork the project, the code is on the 7.x-1.x branch. When the project was turned over to me, there was not a clear way to provision fresh infrastructure. The cleanest way would be for me to copy several system images, but there is a lot of sensitive data that I would not be comfortable doing so.
In my previous comment, I mentioned the simplytest development server. Please let me know if you want to use this. I welcome the help and any effort you'd provide. I can refresh these systems today if you are anxious to get started -- please send me an email from the contact form so I can get the information I need to get you access.
All I ask is for you to be clear on what issues you are encountering and/or tackling and give me a clear hand-off of steps to make the production changes. I feel like this would be substantially less work for you than making a fork.
Let me know and thanks again for your interest.
Comment #75
joseph.olstadI'm reviewing simplytest.me, could be that it's working better now than a while back. I was able to spin up an environment it looked like it had installed ok, I will do some more reviews, I am currently cutting some new releases , testing them.
Comment #76
joseph.olstadI'm evaluating simplytest.me
I think I may have found out what is going on, the php memory limit is pretty low, 128 MB
not sure if this is explains what I am observing. Running more tests.Ran more tests.My setup works fine with 512 MB memory limit, I tested both PHP 5.6.x and PHP 7.0.31-1
I could drop the memory limit to 128 MB , this would probably reveal the problem.
Can you please increase the php memory limit and maybe the post max and timeout limits
maybe try 192 MB as a memory limit for php
thread limit should be boosted as well.
Comment #77
joseph.olstadPHP memory limit of 128 MB is too low for a distribution, maybe not for core by it'self , but a distro with a lot of modules needs more than 128MB , certainly when running i18n and other modules like entity_translation and file_entity.
Also, check your timeout limits as well, might want to increase those slightly. but I think the memory limit is the first thinig to try increasing.
Comment #78
joseph.olstadbasically, without more memory added, the ckeditor wyswiyg won't work properly, maybe due to the plugins being used. Works flawlessly on my server with more memory. Might be also exacerbatedby default timeout limits in php.ini
Simplytest.me status report findings on simplytest.me with media_dev-7.x-4.0-beta8
I'd suggest two things, upgrade from Ubuntu 14.04.2 to Ubuntu 18.04.1
My server is running Ubuntu 18.04.1 , the upgrade from 16.04.5 LTS went amazingly well, although I had a warm spare available with a copy of the old version just incase the upgrade failed, there were a few minor snags during the upgrade for me, but nothing major, I chose to keep most of my original conf files , the upgrade process prompts you for options.
The PHP version you're using is different from the one I am using, I am using 7.0.31, yours is older.
My memory limit is well above 128 M, yours is at 128
could be some other web server config affecting this but ya, the same distribution works flawlessly as expected on my server with more memory, but on simplytest.me, wysiwyg is not working correctly possibly due to an installation issue caused by memory constraints or a runtime issue caused by memory constraints.
RAM is cheap these days, I've got 16 GB on my servers, thinking of upgrading to 32 GB, or more, soon.
192 MB outta do it for php thread limit, change all the definitions of 128 M in your default php.ini files to 192 M.
upgrading to Ubuntu 18.04 LTS server should help you as well.
Comment #79
nerdsteinCool thanks for the sleuthing. I'll try bumping it up and seeing if it helps and will do so this weekend. Thanks again
Comment #80
joseph.olstadthe wetkit distro recomments 192 M as a minimum
media_dev would be similar.
probably a pretty safe number for most distros
Comment #81
joseph.olstad@nerdstein, please let me know when you increase the memory limit so that I can run a few quick tests myself.
Comment #82
nerdsteinMemory limit has been bumped. Please let me know if this helps.
Comment #83
joseph.olstadok now I'm confused, the memory change didn't seem to make a difference.
However I did find a clue.
This file moono/skin.js is not accessible
https://dmcn1.ply.st/profiles/media_dev/libraries/ckeditor/skins/moono/s...
yet the the ckeditor one is available.
https://dmcn1.ply.st/profiles/media_dev/libraries/ckeditor/ckeditor.js
However I looked at an extracted copy of the media_dev distribution version 4.0-beta8 and the skin.js IS in the filesystem
I am perplexed why it's not showing up on simplytest.me
can't explain it because I can open other js files that I expect to be there
and when I install media_dev locally, that file IS there.
temporary example:
https://media.olstad.biz/profiles/media_dev/libraries/ckeditor/skins/moo...
see, the above file is there.
Can you @nerdstein install media_dev 7.x-4.0-beta8 on simplytest.me and then go into the filesystem and check for that file?
I am guessing the file is there, but there could be some network filtering going on that is removing it
I cannot explain this.
However if I switch to the cdn can avoid this issue but that's not the point.
I also noticed that this file doesn't come through either
https://dmcn1.ply.st/profiles/media_dev/libraries/ckeditor/skins/moono/e...
In both cases the error is a 404 error
The same file exists on my installation
https://media.olstad.biz/profiles/media_dev/libraries/ckeditor/skins/moo...
but not on https://dmcn1.ply.st/profiles/media_dev/libraries/ckeditor/skins/moono/e...
Is there a site directory size limit on simplytest.me ?
maybe these files are being truncated by an artificial limit on the virtual filesystem. The media_dev distribution extracted is 111 Megabytes
there is an example mp3 file in it, some small example images, lots of modules, some of the projects are git clones so that probably takes up extra space, I might look into shrinking that by taking dev builds instead of git clones of some modules.
However, maybe just increasing the site folder limit on simplytest.me sites will help?
I am guessing this might explain things, missing / truncated files.
Comment #84
joseph.olstadsee my above comment, I think there's a simplytest.me site folder size limit causing the site installation to be truncated.
Comment #85
nerdsteinI will check the directory size limits.
Is this JS library in the downloaded code base or pulled from an external library? If pulled, can you point out how it's specified in your code base so I can check to see if SimplyTest is pulling it properly?
Comment #86
nerdsteinI didn't see any traces of file system limitations in an initial pass through the configs.
I've debugged this a bit further on the `dmcn1` instance. The `/home/dmcn1/www/profiles/media_dev/libraries/ckeditor/skins/moono` exists but is empty. For whatever reason, the `/home/dmcn1/www/profiles/media_dev/libraries/ckeditor/skins/moono-lisa` is not empty and seems to be loading the library and it's files properly.
Are you fully confident there is not a bug in how this library is loaded specific to the distribution? If so, please show me how this gets pulled into the distribution so I can see how it is loading this during spawning.
Comment #87
joseph.olstadthat library gets pulled in during build, it's included in the .tar.gz and .zip for the distribution.
It's just a file, it exists in the archive , and it exists in my copy of my installation of media_dev.
see here:
https://media.olstad.biz/profiles/media_dev/libraries/ckeditor/skins/moo...
AND
https://media.olstad.biz/profiles/media_dev/libraries/ckeditor/skins/moo...
these two files are missing on the simplytest.me instance as linked above.
this is a copy of the tar.gz from the media_dev release, there's nothing magic going on, it's just a file and doesn't move around during installation.
see the original archive here:
https://ftp.drupal.org/files/projects/media_dev-7.x-4.0-beta8-core.tar.gz
are you using the .tar.gz ? or the .zip?
I haven't tested the .zip, I use the .tar.gz
Comment #88
nerdsteinSimplyTest is leveraging Drush (D7) and Composer (D8). I do not believe either of those tools leverage tar or zip files from releases - it's my understanding they pull directly from branches/tags from the corresponding Git repo based on what the user selects.
You mentioned a "build" step. SimplyTest already performs build steps for other distributions, e.g. processing make files. Can you elaborate on this? It would be helpful to know how it is compiling these libraries into the zip/tar files.
Or, we can look to outright pull these zip/tar files if that is a better artifact to pull.
Comment #89
joseph.olstadMaybe your /tmp folder doesn't have enough space
as for doing a build and a make, that is already done for you in the tar.gz , not sure why you'd want to waste all that bandwidth and cpu power to do a build, maybe that is the composer way in D8 but for D7.x you should just download the archive and use it, everything is there and cooked up correctly.
Comment #90
joseph.olstadto build the media_dev distribution , clone the media_dev repo
then with Drush version 8.x you will run this command:
drush make --prepare-install build-media_dev.make SOME_OUTPUT_FOLDER_NAMEHowever I think it would be quicker, easier and more reliable to use the actual release build.
is it not?
Comment #91
joseph.olstadDrupal.org does the make when publishing a release, so it's all packaged up for us by Drupal.org , all Drupal.org wants is the make files correctly configured and if there is a problem, Drupal.org will not publish a release of a broken make file.
If there's any errors during the build, Drupal.org aborts the release and you have to fix the issue before it will publish a release.
Comment #92
joseph.olstadso if I push a change to the media_dev distribution dev branch, drupal.org does a make, but it won't upload a broken .zip or .tar.gz
if there's errors it aborts the archive and does not publish.
Comment #93
nerdsteinI think I found the issue. All CKEditor libraries seem to be failing to download.
See the following from the log, which runs the `drush make` command on the build-media_dev.make file:
I debugged Drush's 8.x download functionality, found that it is using wget, ran the command on the simplytest server and I can see that the ckeditor cert authority is not working:
I updated `/etc/wgetrc` to turn off certificate checks, I was able to download the library without getting an error.
Can you please retest?
Comment #94
joseph.olstadYa wget
--no-check-certificateComment #95
daggerhart commentedInstalled media_dev 7.x-4.something on simplytest and it successfully downloaded the ckeditor libraries and whatnot.
--> https://dmcs7.ply.st/profiles/media_dev/libraries/ckeditor/skins/moono/e...
Comment #96
joseph.olstadhi @daggerhart, I tested that machine you just created, it works great.
to make a new one:
https://simplytest.me media_dev 4.0beta8
Thanks @nerdstein, I think we finally nailed it, everything is working as expected!
Comment #97
joseph.olstadComment #98
joseph.olstad@nerdstein, I think you can probably remove that message warning about an issue with certain distributions.
now that --no-check-certificate is used, should be in good shape.
Also, @Nerdstein, thanks for your work on this, great to see this issue fixed!
Comment #99
joseph.olstad@nerdstein, all was working fine last time I checked about a week or two ago , now I published another release and get this:
see:
"An error occurred while downloading dependencies."
Comment #100
joseph.olstad@nerdstein, can you have a look please?
even the older releases that worked last week are now failing.
https://simplytest.me/project/media_dev/7.x-4.0-beta8
or
https://simplytest.me/project/media_dev/7.x-4.0-beta9
Comment #101
nerdsteinI'll take a look, thanks for letting me know
Comment #102
joseph.olstadHi Nerdstein, it seems to be working now, I think you must have fixed it.
I just installed media_dev 7.x-2.x dev release and it worked.
Thanks!
Comment #103
it-cru@nerdstein: Tested Thunder 8.2.31 some minutes ago and it doesn't work yet. Do you already fixed D8 distributions?
Comment #104
truls1502I had same problem with D8 distributions such as Varbase, Thunder and Open Social. None of them worked :(