New here, have some initial deployment questions

124 views
Skip to first unread message

Don Eisele

unread,
Nov 2, 2021, 4:43:36 PM11/2/21
to archipelago commons
New to Archipelago, so trying to figure some stuff out.

The non-live deployment pretty much worked as intended, but I wanted to swing something up I could use awhile.

When trying archipelago-deployment-live, I ran into some issues.

1) How is the web server in docker-compose-aws-s3.yml (or selfsigned) ever supposed to work?    It seems like the config gets put in /etc/nginx/user.conf.d, but user.conf.d is never sourced anywhere?   I was able to mount my default.conf over the /etc/nginx/conf.d/default.conf, but it seems like my understanding is missing a dimension that I would like to understand.

2) There are a couple of assumptions the deployment process is making.
   a)  local nginx is terminating SSL
   b)  It is using port 80/443 on the local box

Neither of these is a huge ordeal, but if you have newish people it might be confusing.   Helpful hints if apache is running on the host forwarding with ProxyPass:
   a) AllowEncodedSlashes On
   b) use "nocanon" on ProxyPass

3) Found one typo that I put in a PR request for on RC3

4) I can't seem to figure out how to make search look in metadata as well as description.  Just using Local Subjects for now.

  


dp...@metro.org

unread,
Nov 2, 2021, 5:38:39 PM11/2/21
to archipelago commons
Hi and welcome to the group!

I will try to answer your questions but also happy to jump (if you want to) into a short call to explain a few ones that require showing (UI/UX), just let me know if that works, next week is better for us.

To your questions:

1.-  The way /etc/nginx/user.conf.d works is by aliasing via a Docker mount the provided ngnix config into the internally mounted /etc/ngnix/user.conf.d of the esmero-web container (ngnix). 
This for the S3 version
volumes:
    - ${ARCHIPELAGO_ROOT}/config_storage/nginxconfig/conf.d:/etc/nginx/user.conf.d

which connects this folder https://github.com/esmero/archipelago-deployment-live/tree/1.0.0-RC3/config_storage/nginxconfig/conf.d (for S3 version of the docker-compose) or

or for self signed (notice the :ro which means read only since the self cert does not need to be replaced by the esmero-web container on startup but on a real cert version the container will actually check the file and may rewrite it)
- ${ARCHIPELAGO_ROOT}/config_storage/nginxconfig_selfcert/conf.d:/etc/nginx/user.conf.d:ro

2. Yes. 443 is the standard for SSL and we went for that. Port 80 is needed to allow Certbot (part of the ngnix container) to be able to access a .well-know folder when validating the SSL cert request. SSL certs are requested/renewed automatically every certain amount of time of on each restart of the docker ensemble too.

There is no Apache here. We do not use Apache but there is are non dockerized implementations/user contributed docs that do.

 Ngnix servers as a PHP-FPM proxy and does all the traffic work passing data through but the heavy lifting is on the esmero-php container. So proxy pass is replaced by an 'upstream' (only for /cantaloupe which connects internally with the esmero-cantaloupe por 8183 container), you can see the basic (repeating from 1. config at)

PS: we do not use the self cert too much, mostly for quick testing and headless things. To be honest, if you need to run this locally/no ssl, the simpler (20 minutes deployment max) version https://github.com/esmero/archipelago-deployment works better. Browser support for self cert certs is simply terrible and cookies may/not be handled Ok. I would totally encourage you to have that deployment (also docker and simpler) locally to give you a better dev/testing environment that you can then replicate on the archipelago-deployment-live

3. Thanks so much! Yep, will be merged and I added an ISSUE that goes well with it (also congrats on your first pull on the project)
4. Not sure what you mean so this may require a call, but I will try to explain the logic here. By default, anything that is indexed as "fulltext" is searchable. And Description as a single Solr field is not configured (but you can quite easily). 

So: Indexing may be per JSON key/value (using something we name JSON keyName providers which you will see in admin/structure, and really in other words means simply a "fetch data from complex json and expose flat to Solr / Drupal  using a property name you define. And this way you can have a totally dynamic indexing strategy, basically even before your data exists". 
The whole search (solr) is driven by a Drupal Views where you have more control on how search works/happens too. But, you can also index directly into Solr anything that is rendered. Which means, the way an Object is exposed to the world (Big title, human readable subtitles) goes also into the same Solr Document, which means discovery can happen on either RAW/pure Metadata, processed metadata (even any of the Schemas that we provide or you want to write using twig templates) or rendered HTML. I would suggest looking a bit at /admin/config/search/search-api/index/default_solr_index/fields to see what fields you have available (all metadata will come from a field named field_descriptive_metadata, that is the shipped default), you can also check the actual Views used to allow the search and go deeper there /admin/structure/views/view/solr_search_content

Sorry if I did not respond to all your questions, but again, happy to have a call/join a call and help shine some light into the many features of archipelago

Also please check the ongoing documentation efforts at https://docs.archipelago.nyc/1.0.0-RC3/

Big hugs and welcome

Diego Pino

William Conlin

unread,
Dec 3, 2021, 4:09:23 PM12/3/21
to archipelago commons
Diego,

I just spun up a  fresh docker build and I need some help at the end.

So far all the instructions and documentation are super clear, and helpful, and that's just awesome.

but, right now the esmero-web's nginx is showing "502  BAD Gateway" when I try and visit localhost:8001

I haven't made any changes to anything, I'm wondering if there's just a quick way to restart that container only (unless you can think of something else to try).

I am on ubuntu 20.04.3 LTS, but I didn't think that would make a big difference...

Thanks for your time,
Will

dp...@metro.org

unread,
Dec 3, 2021, 4:32:40 PM12/3/21
to archipelago commons

Hi Will,

If its localhost:8001 then you are deploying https://github.com/esmero/archipelago-deployment right?  (Not the live version) and you are on 1.0.0-RC3

Ubuntu 20.04.03 works Ok. At which step on the setup instructions did you get this?

If ngnix is giving you issues then possible reasons are:

1.- You have a port conflict? Any other services running maybe tapping into 8001? (this is the least possible explanation, if the port is an issue ngnix would not be responding so let's continue..)
2.- You skipped a permission setting or you did run some commands as root? can you run a 

docker logs -f esmero-web
and
docker logs -f esmero-php

Any errors that are popping immediately?

3.- You running on a arm64 machine or Intel?

you can always restart a container by doing
docker esmero-web restart or esmero-php (php one will permeate into NGNIX that is why I ask)

Let me know (please share some logs) and we go from there.

Hugs!

Diego

William Conlin

unread,
Dec 4, 2021, 3:06:28 AM12/4/21
to archipelago commons
Diego,

You are correct I am on archipelago-deployment, and using the branch  1.0.0-RC1
I think I am on the last step.

Maybe I have a collision, but I think everything else (my vagrant/other docker projects are all down or halted).

--update, I did have some hryax docker images runnig but no collisions, and they are down now.


Here's result of docker logs... I don't know much about it tho. sorry for the bulk.

```$ docker logs -f esmero-web
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: can not modify /etc/nginx/conf.d/default.conf (read-only file system?)
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2021/12/03 21:37:09 [notice] 1#1: using the "epoll" event method
2021/12/03 21:37:09 [notice] 1#1: nginx/1.21.4
2021/12/03 21:37:09 [notice] 1#1: built by gcc 10.2.1 20210110 (Debian 10.2.1-6)
2021/12/03 21:37:09 [notice] 1#1: OS: Linux 5.13.0-7620-generic
2021/12/03 21:37:09 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2021/12/03 21:37:09 [notice] 1#1: start worker processes
2021/12/03 21:37:09 [notice] 1#1: start worker process 22
2021/12/03 21:37:09 [notice] 1#1: start worker process 23
2021/12/03 21:37:09 [notice] 1#1: start worker process 24
2021/12/03 21:37:09 [notice] 1#1: start worker process 25
2021/12/03 21:37:09 [notice] 1#1: start worker process 26
2021/12/03 21:37:09 [notice] 1#1: start worker process 27
2021/12/03 21:37:09 [notice] 1#1: start worker process 28
2021/12/03 21:37:09 [notice] 1#1: start worker process 29
2021/12/03 21:37:11 [error] 22#22: *1 FastCGI sent in stderr: "PHP message: TypeError: Argument 2 passed to Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher::preDispatch() must be an instance of Symfony\Component\EventDispatcher\Event, instance of Solarium\Core\Event\PreCreateQuery given, called in /var/www/html/web/modules/contrib/devel/webprofiler/src/EventDispatcher/TraceableEventDispatcher.php on line 59 in /var/www/html/web/modules/contrib/devel/webprofiler/src/EventDispatcher/TraceableEventDispatcher.php on line 128 #0 /var/www/html/web/modules/contrib/devel/webprofiler/src/EventDispatcher/TraceableEventDispatcher.php(59): Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher->preDispatch(NULL, Object(Solarium\Core\Event\PreCreateQuery))
#1 /var/www/html/vendor/solarium/solarium/src/Core/Client/Client.php(1090): Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher->dispatch(Object(Solarium\Core\Event\PreCreateQuery))
#2 /var/www/html/vendor/solarium/solarium/src/Core/Client/Client.php(1121): Solarium\Core\Client\Client->createQuery('select', NULL)
#3 /var/www/html/web/modules/contrib/search_api_solr/src/SolrConnector/SolrConnectorPluginBase.php(780): Solarium\Core\Client\Client->createSelect()
#4 /var/www/html/web/modules/contrib/search_api_solr/src/Plugin/search_api/backend/SearchApiSolrBackend.php(1454): Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase->getSelectQuery()
#5 /var/www/html/web/modules/contrib/search_api/src/Entity/Server.php(473): Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend->search(Object(Drupal\search_api\Query\Query))
#6 /var/www/html/web/modules/contrib/search_api/src/Query/Query.php(539): Drupal\search_api\Entity\Server->search(Object(Drupal\search_api\Query\Query))
#7 /var/www/html/web/modules/contrib/search_api/src/Plugin/views/query/SearchApiQuery.php(581): Drupal\search_api\Query\Query->execute()
#8 /var/www/html/web/core/modules/views/src/ViewExecutable.php(1426): Drupal\search_api\Plugin\views\query\SearchApiQuery->exec
2021/12/03 21:37:11 [error] 22#22: *1 upstream prematurely closed FastCGI stdout while reading response header from upstream, client: 172.24.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://172.24.0.5:9000", host: "localhost:8001"
172.24.0.1 - - [03/Dec/2021:21:37:11 +0000] "GET / HTTP/1.1" 502 157 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0" "-"
2021/12/03 21:37:13 [error] 22#22: *1 FastCGI sent in stderr: "PHP message: TypeError: Argument 2 passed to Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher::preDispatch() must be an instance of Symfony\Component\EventDispatcher\Event, instance of Solarium\Core\Event\PreCreateQuery given, called in /var/www/html/web/modules/contrib/devel/webprofiler/src/EventDispatcher/TraceableEventDispatcher.php on line 59 in /var/www/html/web/modules/contrib/devel/webprofiler/src/EventDispatcher/TraceableEventDispatcher.php on line 128 #0 /var/www/html/web/modules/contrib/devel/webprofiler/src/EventDispatcher/TraceableEventDispatcher.php(59): Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher->preDispatch(NULL, Object(Solarium\Core\Event\PreCreateQuery))
#1 /var/www/html/vendor/solarium/solarium/src/Core/Client/Client.php(1090): Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher->dispatch(Object(Solarium\Core\Event\PreCreateQuery))
#2 /var/www/html/vendor/solarium/solarium/src/Core/Client/Client.php(1121): Solarium\Core\Client\Client->createQuery('select', NULL)
#3 /var/www/html/web/modules/contrib/search_api_solr/src/SolrConnector/SolrConnectorPluginBase.php(780): Solarium\Core\Client\Client->createSelect()
#4 /var/www/html/web/modules/contrib/search_api_solr/src/Plugin/search_api/backend/SearchApiSolrBackend.php(1454): Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase->getSelectQuery()
#5 /var/www/html/web/modules/contrib/search_api/src/Entity/Server.php(473): Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend->search(Object(Drupal\search_api\Query\Query))
#6 /var/www/html/web/modules/contrib/search_api/src/Query/Query.php(539): Drupal\search_api\Entity\Server->search(Object(Drupal\search_api\Query\Query))
#7 /var/www/html/web/modules/contrib/search_api/src/Plugin/views/query/SearchApiQuery.php(581): Drupal\search_api\Query\Query->execute()
#8 /var/www/html/web/core/modules/views/src/ViewExecutable.php(1426): Drupal\search_api\Plugin\views\query\SearchApiQuery->exec
2021/12/03 21:37:13 [error] 22#22: *1 upstream prematurely closed FastCGI stdout while reading response header from upstream, client: 172.24.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://172.24.0.5:9000", host: "localhost:8001"
172.24.0.1 - - [03/Dec/2021:21:37:13 +0000] "GET / HTTP/1.1" 502 157 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0" "-
```

```
$ docker logs -f esmero-php
[03-Dec-2021 21:37:08] NOTICE: fpm is running, pid 1
[03-Dec-2021 21:37:08] NOTICE: ready to handle connections
NOTICE: PHP message: TypeError: Argument 2 passed to Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher::preDispatch() must be an instance of Symfony\Component\EventDispatcher\Event, instance of Solarium\Core\Event\PreCreateQuery given, called in /var/www/html/web/modules/contrib/devel/webprofiler/src/EventDispatcher/TraceableEventDispatcher.php on line 59 in /var/www/html/web/modules/contrib/devel/webprofiler/src/EventDispatcher/TraceableEventDispatcher.php on line 128 #0 /var/www/html/web/modules/contrib/devel/webprofiler/src/EventDispatcher/TraceableEventDispatcher.php(59): Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher->preDispatch(NULL, Object(Solarium\Core\Event\PreCreateQuery))
#1 /var/www/html/vendor/solarium/solarium/src/Core/Client/Client.php(1090): Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher->dispatch(Object(Solarium\Core\Event\PreCreateQuery))
#2 /var/www/html/vendor/solarium/solarium/src/Core/Client/Client.php(1121): Solarium\Core\Client\Client->createQuery('select', NULL)
#3 /var/www/html/web/modules/contrib/search_api_solr/src/SolrConnector/SolrConnectorPluginBase.php(780): Solarium\Core\Client\Client->createSelect()
#4 /var/www/html/web/modules/contrib/search_api_solr/src/Plugin/search_api/backend/SearchApiSolrBackend.php(1454): Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase->getSelectQuery()
#5 /var/www/html/web/modules/contrib/search_api/src/Entity/Server.php(473): Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend->search(Object(Drupal\search_api\Query\Query))
#6 /var/www/html/web/modules/contrib/search_api/src/Query/Query.php(539): Drupal\search_api\Entity\Server->search(Object(Drupal\search_api\Query\Query))
#7 /var/www/html/web/modules/contrib/search_api/src/Plugin/views/query/SearchApiQuery.php(581): Drupal\search_api\Query\Query->execute()
#8 /var/www/html/web/core/modules/views/src/ViewExecutable.php(1426): Drupal\search_api\Plugin\views\query\SearchApiQuery->execute(Object(Drupal\webprofiler\Views\TraceableViewExecutable))
#9 /var/www/html/web/modules/contrib/devel/webprofiler/src/Views/TraceableViewExecutable.php(52): Drupal\views\ViewExecutable->execute(NULL)
#10 /var/www/html/web/core/modules/views/src/Plugin/views/display/Block.php(131): Drupal\webprofiler\Views\TraceableViewExecutable->render()
#11 /var/www/html/web/core/modules/views/src/ViewExecutable.php(1630): Drupal\views\Plugin\views\display\Block->execute()
#12 /var/www/html/web/core/modules/views/src/Element/View.php(81): Drupal\views\ViewExecutable->executeDisplay('block_1', Array)
#13 /var/www/html/web/core/modules/views/src/Plugin/Block/ViewsBlock.php(59): Drupal\views\Element\View::preRenderViewElement(Array)
#14 /var/www/html/web/core/modules/block/src/BlockViewBuilder.php(171): Drupal\views\Plugin\Block\ViewsBlock->build()
#15 [internal function]: Drupal\block\BlockViewBuilder::preRender(Array)
#16 /var/www/html/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(101): call_user_func_array(Array, Array)
#17 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(786): Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_ren...', 'exception', 'Drupal\\Core\\Ren...')
#18 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(377): Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array)
#19 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(449): Drupal\Core\Render\Renderer->doRender(Array)
#20 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(201): Drupal\Core\Render\Renderer->doRender(Array, false)
#21 /var/www/html/web/core/lib/Drupal/Core/Template/TwigExtension.php(450): Drupal\Core\Render\Renderer->render(Array)
#22 /var/www/html/web/sites/default/files/php/twig/61aa82470d47a_page--front.html.twig_FfnyPwvEidwSjJYfA02ZQ0tIz/c8lk742pbfivlXd6PLrRp-4bZleBHtgLAbgRho_HlCM.php(202): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#23 /var/www/html/vendor/twig/twig/src/Template.php(182): __TwigTemplate_a4b973c9aa92811ec05e3706cb1d1c2e5662fc356c2311151600232b0ae5c8db->block_content(Array, Array)
#24 /var/www/html/web/sites/default/files/php/twig/61aa82470d47a_page.html.twig_RbAq6wULoo3jn3MgFJaDypYlS/OzsLbDNzUXeqjVIsd0wtPxPL9GTgSmJOSyfp3JU8aq0.php(87): Twig\Template->displayBlock('content', Array, Array)
#25 /var/www/html/vendor/twig/twig/src/Template.php(405): __TwigTemplate_d2c7ad6abd1fbda7b8194f68661f10df26d47fd30a15357734d9329ecabe15d6->doDisplay(Array, Array)
#26 /var/www/html/vendor/twig/twig/src/Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array)
#27 /var/www/html/web/sites/default/files/php/twig/61aa82470d47a_page--front.html.twig_FfnyPwvEidwSjJYfA02ZQ0tIz/c8lk742pbfivlXd6PLrRp-4bZleBHtgLAbgRho_HlCM.php(50): Twig\Template->display(Array, Array)
#28 /var/www/html/vendor/twig/twig/src/Template.php(405): __TwigTemplate_a4b973c9aa92811ec05e3706cb1d1c2e5662fc356c2311151600232b0ae5c8db->doDisplay(Array, Array)
#29 /var/www/html/vendor/twig/twig/src/Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array)
#30 /var/www/html/vendor/twig/twig/src/Template.php(390): Twig\Template->display(Array)
#31 /var/www/html/web/core/themes/engines/twig/twig.engine(65): Twig\Template->render(Array)
#32 /var/www/html/web/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('themes/contrib/...', Array)
#33 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(436): Drupal\Core\Theme\ThemeManager->render('page', Array)
#34 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(201): Drupal\Core\Render\Renderer->doRender(Array, false)
#35 /var/www/html/web/core/lib/Drupal/Core/Template/TwigExtension.php(450): Drupal\Core\Render\Renderer->render(Array)
#36 /var/www/html/web/sites/default/files/php/twig/61aa82470d47a_html.html.twig_WEhxsY8UKbuKw20LEEVzueCJm/E0m0YFCJHvAZdi-8aR2LfQtMuGFFVTZd0C2_TXsMG1k.php(87): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#37 /var/www/html/vendor/twig/twig/src/Template.php(405): __TwigTemplate_fa1ee3b35c451b97edc532f44b3a750faf58de5d43e817d1254c4654ac720db3->doDisplay(Array, Array)
#38 /var/www/html/vendor/twig/twig/src/Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array)
#39 /var/www/html/vendor/twig/twig/src/Template.php(390): Twig\Template->display(Array)
#40 /var/www/html/web/core/themes/engines/twig/twig.engine(65): Twig\Template->render(Array)
#41 /var/www/html/web/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('themes/contrib/...', Array)
#42 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(436): Drupal\Core\Theme\ThemeManager->render('html', Array)
#43 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(201): Drupal\Core\Render\Renderer->doRender(Array, false)
#44 /var/www/html/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(162): Drupal\Core\Render\Renderer->render(Array)
#45 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(578): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#46 /var/www/html/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(163): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#47 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
#48 /var/www/html/web/modules/contrib/devel/webprofiler/src/EventDispatcher/TraceableEventDispatcher.php(79): Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher))
#49 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(163): Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view')
#50 /var/www/html/ven...
172.24.0.8 -  03/Dec/2021:21:37:10 +0000 "GET /index.php" 500
NOTICE: PHP message: TypeError: Argument 2 passed to Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher::preDispatch() must be an instance of Symfony\Component\EventDispatcher\Event, instance of Solarium\Core\Event\PreCreateQuery given, called in /var/www/html/web/modules/contrib/devel/webprofiler/src/EventDispatcher/TraceableEventDispatcher.php on line 59 in /var/www/html/web/modules/contrib/devel/webprofiler/src/EventDispatcher/TraceableEventDispatcher.php on line 128 #0 /var/www/html/web/modules/contrib/devel/webprofiler/src/EventDispatcher/TraceableEventDispatcher.php(59): Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher->preDispatch(NULL, Object(Solarium\Core\Event\PreCreateQuery))
#1 /var/www/html/vendor/solarium/solarium/src/Core/Client/Client.php(1090): Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher->dispatch(Object(Solarium\Core\Event\PreCreateQuery))
#2 /var/www/html/vendor/solarium/solarium/src/Core/Client/Client.php(1121): Solarium\Core\Client\Client->createQuery('select', NULL)
#3 /var/www/html/web/modules/contrib/search_api_solr/src/SolrConnector/SolrConnectorPluginBase.php(780): Solarium\Core\Client\Client->createSelect()
#4 /var/www/html/web/modules/contrib/search_api_solr/src/Plugin/search_api/backend/SearchApiSolrBackend.php(1454): Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase->getSelectQuery()
#5 /var/www/html/web/modules/contrib/search_api/src/Entity/Server.php(473): Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend->search(Object(Drupal\search_api\Query\Query))
#6 /var/www/html/web/modules/contrib/search_api/src/Query/Query.php(539): Drupal\search_api\Entity\Server->search(Object(Drupal\search_api\Query\Query))
#7 /var/www/html/web/modules/contrib/search_api/src/Plugin/views/query/SearchApiQuery.php(581): Drupal\search_api\Query\Query->execute()
#8 /var/www/html/web/core/modules/views/src/ViewExecutable.php(1426): Drupal\search_api\Plugin\views\query\SearchApiQuery->execute(Object(Drupal\webprofiler\Views\TraceableViewExecutable))
#9 /var/www/html/web/modules/contrib/devel/webprofiler/src/Views/TraceableViewExecutable.php(52): Drupal\views\ViewExecutable->execute(NULL)
#10 /var/www/html/web/core/modules/views/src/Plugin/views/display/Block.php(131): Drupal\webprofiler\Views\TraceableViewExecutable->render()
#11 /var/www/html/web/core/modules/views/src/ViewExecutable.php(1630): Drupal\views\Plugin\views\display\Block->execute()
#12 /var/www/html/web/core/modules/views/src/Element/View.php(81): Drupal\views\ViewExecutable->executeDisplay('block_1', Array)
#13 /var/www/html/web/core/modules/views/src/Plugin/Block/ViewsBlock.php(59): Drupal\views\Element\View::preRenderViewElement(Array)
#14 /var/www/html/web/core/modules/block/src/BlockViewBuilder.php(171): Drupal\views\Plugin\Block\ViewsBlock->build()
#15 [internal function]: Drupal\block\BlockViewBuilder::preRender(Array)
#16 /var/www/html/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(101): call_user_func_array(Array, Array)
#17 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(786): Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_ren...', 'exception', 'Drupal\\Core\\Ren...')
#18 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(377): Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array)
#19 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(449): Drupal\Core\Render\Renderer->doRender(Array)
#20 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(201): Drupal\Core\Render\Renderer->doRender(Array, false)
#21 /var/www/html/web/core/lib/Drupal/Core/Template/TwigExtension.php(450): Drupal\Core\Render\Renderer->render(Array)
#22 /var/www/html/web/sites/default/files/php/twig/61aa82470d47a_page--front.html.twig_FfnyPwvEidwSjJYfA02ZQ0tIz/c8lk742pbfivlXd6PLrRp-4bZleBHtgLAbgRho_HlCM.php(202): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#23 /var/www/html/vendor/twig/twig/src/Template.php(182): __TwigTemplate_a4b973c9aa92811ec05e3706cb1d1c2e5662fc356c2311151600232b0ae5c8db->block_content(Array, Array)
#24 /var/www/html/web/sites/default/files/php/twig/61aa82470d47a_page.html.twig_RbAq6wULoo3jn3MgFJaDypYlS/OzsLbDNzUXeqjVIsd0wtPxPL9GTgSmJOSyfp3JU8aq0.php(87): Twig\Template->displayBlock('content', Array, Array)
#25 /var/www/html/vendor/twig/twig/src/Template.php(405): __TwigTemplate_d2c7ad6abd1fbda7b8194f68661f10df26d47fd30a15357734d9329ecabe15d6->doDisplay(Array, Array)
#26 /var/www/html/vendor/twig/twig/src/Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array)
#27 /var/www/html/web/sites/default/files/php/twig/61aa82470d47a_page--front.html.twig_FfnyPwvEidwSjJYfA02ZQ0tIz/c8lk742pbfivlXd6PLrRp-4bZleBHtgLAbgRho_HlCM.php(50): Twig\Template->display(Array, Array)
#28 /var/www/html/vendor/twig/twig/src/Template.php(405): __TwigTemplate_a4b973c9aa92811ec05e3706cb1d1c2e5662fc356c2311151600232b0ae5c8db->doDisplay(Array, Array)
#29 /var/www/html/vendor/twig/twig/src/Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array)
#30 /var/www/html/vendor/twig/twig/src/Template.php(390): Twig\Template->display(Array)
#31 /var/www/html/web/core/themes/engines/twig/twig.engine(65): Twig\Template->render(Array)
#32 /var/www/html/web/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('themes/contrib/...', Array)
#33 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(436): Drupal\Core\Theme\ThemeManager->render('page', Array)
#34 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(201): Drupal\Core\Render\Renderer->doRender(Array, false)
#35 /var/www/html/web/core/lib/Drupal/Core/Template/TwigExtension.php(450): Drupal\Core\Render\Renderer->render(Array)
#36 /var/www/html/web/sites/default/files/php/twig/61aa82470d47a_html.html.twig_WEhxsY8UKbuKw20LEEVzueCJm/E0m0YFCJHvAZdi-8aR2LfQtMuGFFVTZd0C2_TXsMG1k.php(87): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#37 /var/www/html/vendor/twig/twig/src/Template.php(405): __TwigTemplate_fa1ee3b35c451b97edc532f44b3a750faf58de5d43e817d1254c4654ac720db3->doDisplay(Array, Array)
#38 /var/www/html/vendor/twig/twig/src/Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array)
#39 /var/www/html/vendor/twig/twig/src/Template.php(390): Twig\Template->display(Array)
#40 /var/www/html/web/core/themes/engines/twig/twig.engine(65): Twig\Template->render(Array)
#41 /var/www/html/web/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('themes/contrib/...', Array)
#42 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(436): Drupal\Core\Theme\ThemeManager->render('html', Array)
#43 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(201): Drupal\Core\Render\Renderer->doRender(Array, false)
#44 /var/www/html/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(162): Drupal\Core\Render\Renderer->render(Array)
#45 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(578): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#46 /var/www/html/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(163): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#47 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
#48 /var/www/html/web/modules/contrib/devel/webprofiler/src/EventDispatcher/TraceableEventDispatcher.php(79): Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher))
#49 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(163): Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view')
#50 /var/www/html/ven...
172.24.0.8 -  03/Dec/2021:21:37:13 +0000 "GET /index.php" 500
```

Thanks again,

William Conlin

unread,
Dec 4, 2021, 3:42:54 AM12/4/21
to archipelago commons
3. on an intel processor. fyi

Albert Min

unread,
Dec 6, 2021, 9:22:47 AM12/6/21
to William Conlin, archipelago commons
Hi Will,

Is there any particular reason you're on 1.0.0-RC1 instead of 1.0.0-RC3 (default/latest)?

Best,
Al

Albert Min
Digital Repository Infrastructure Specialist

--
You received this message because you are subscribed to the Google Groups "archipelago commons" group.
To unsubscribe from this group and stop receiving emails from it, send an email to archipelago-com...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/archipelago-commons/c1719765-cf8d-4b32-872c-5944f50f6753n%40googlegroups.com.

William Conlin

unread,
Dec 6, 2021, 12:20:19 PM12/6/21
to archipelago commons
No reason, just making mistakes.

I switched to RC3.
I also noticed I missed the step of creating a bucket on the minIO console. that's done.

Still seeing bad gateway from nginx

when I visit in browser "docker logs -f esmero-web" gives me this: along with same php error as before

//xxx.xx.x.x:9000", host: "localhost:8001"
xxx.xx.x.x - - [06/Dec/2021:17:15:29 +0000] "GET / HTTP/1.1" 502 157 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0" "-"

php error from before:

2021/12/03 21:37:11 [error] 22#22: *1 FastCGI sent in stderr: "PHP message: TypeError: Argument 2 passed to Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher::preDispatch() must be an instance of Symfony\Component\EventDispatcher\Event, instance of Solarium\Core\Event\PreCreateQuery given, called in /var/www/html/web/modules/contrib/devel/webprofiler/src/EventDispatcher/TraceableEventDispatcher.php on line 59 in /var/www/html/web/modules/contrib/devel/webprofiler/src/EventDispatcher/TraceableEventDispatcher.php on line 128 #0 /var/www/html/web/modules/contrib/devel/webprofiler/src/EventDispatcher/TraceableEventDispatcher.php(59): Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher->preDispatch(NULL, Object(Solarium\Core\Event\PreCreateQuery))
#1 /var/www/html/vendor/solarium/solarium/src/Core/Client/Client.php(1090): Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher->dispatch(Object(Solarium\Core\Event\PreCreateQuery))
#2 /var/www/html/vendor/solarium/solarium/src/Core/Client/Client.php(1121): Solarium\Core\Client\Client->createQuery('select', NULL)
#3 /var/www/html/web/modules/contrib/search_api_solr/src/SolrConnector/SolrConnectorPluginBase.php(780): Solarium\Core\Client\Client->createSelect()
#4 /var/www/html/web/modules/contrib/search_api_solr/src/Plugin/search_api/backend/SearchApiSolrBackend.php(1454): Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase->getSelectQuery()
#5 /var/www/html/web/modules/contrib/search_api/src/Entity/Server.php(473): Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend->search(Object(Drupal\search_api\Query\Query))
#6 /var/www/html/web/modules/contrib/search_api/src/Query/Query.php(539): Drupal\search_api\Entity\Server->search(Object(Drupal\search_api\Query\Query))
#7 /var/www/html/web/modules/contrib/search_api/src/Plugin/views/query/SearchApiQuery.php(581): Drupal\search_api\Query\Query->execute()
#8 /var/www/html/web/core/modules/views/src/ViewExecutable.php(1426): Drupal\search_api\Plugin\views\query\SearchApiQuery->exec
2021/12/03 21:37:11 [error] 22#22: *1 upstream prematurely closed FastCGI stdout while reading response header from upstream, client: 172.24.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://172.24.0.5:9000", host: "localhost:8001"


Albert Min

unread,
Dec 6, 2021, 1:15:38 PM12/6/21
to William Conlin, archipelago commons
Ok, did you do a clean deployment from scratch? Webprofiler shouldn't be in RC3 because the module was dropped from Drupal 9 so it may have come over from your initial attempt with RC1. A clean deployment would be easiest, but you can also try uninstalling the module with the following:

docker exec -ti esmero-php bash -c "drush pm-uninstall webprofiler"


Albert Min
Digital Repository Infrastructure Specialist

William Conlin

unread,
Dec 6, 2021, 1:41:20 PM12/6/21
to archipelago commons
Thanks Albert!

It is now working.

"GET /core/misc/favicon.ico HTTP/1.1" 200 5430 "http://localhost:8001/"  woot!

*cries tears of joy server 200*

Thanks to all for the help.

Albert Min

unread,
Dec 6, 2021, 2:23:57 PM12/6/21
to William Conlin, archipelago commons
Glad to hear! Please let us know if you run into any other issues or have any questions.


Albert Min
Digital Repository Infrastructure Specialist
Reply all
Reply to author
Forward
0 new messages