Page MenuHomePhabricator
Paste P9066

pod.md
ActivePublic

Authored by brennen on Sep 9 2019, 6:54 PM.
First, the error I see from inside the container:
```
12:52:26 brennen@inertia:~/code/wmf/releng/local-charts (master m3/u1) kubectl exec -it mediawiki-default-566b7b59b8-9qxxn /bin/bash
somebody@mediawiki-default-566b7b59b8-9qxxn:/var/www/html$ php
<?php
print file_get_contents('http://localhost:8080/');
<br />
<b>Fatal error</b>: Uncaught InvalidArgumentException: Database must be null or a non-empty string. in /var/www/html/includes/libs/rdbms/database/domain/DatabaseDomain.php:46
Stack trace:
#0 /var/www/html/includes/WikiMap.php(296): Wikimedia\Rdbms\DatabaseDomain-&gt;__construct(false, NULL, '')
#1 /var/www/html/includes/objectcache/ObjectCache.php(157): WikiMap::getCurrentWikiDbDomain()
#2 /var/www/html/includes/objectcache/ObjectCache.php(174): ObjectCache::getDefaultKeyspace()
#3 /var/www/html/includes/objectcache/ObjectCache.php(137): ObjectCache::newFromParams(Array)
#4 /var/www/html/includes/ServiceWiring.php(272): ObjectCache::newFromId('apcu')
#5 /var/www/html/includes/libs/services/ServiceContainer.php(442): Wikimedia\Services\ServiceContainer-&gt;{closure}(Object(MediaWiki\MediaWikiServices))
#6 /var/www/html/includes/libs/services/ServiceContainer.php(421): Wikimedia\Services\ServiceContainer-&gt;createService('LocalServerObje...')
#7 /var/www/html/includes/MediaWikiServices.php(646): Wikimedia\Services\ServiceContainer-&gt;getSer in <b>/var/www/html/includes/libs/rdbms/database/domain/DatabaseDomain.php</b> on line <b>46</b><br />
```
Second, logs for the pod:
```
PHP 7.2.22-1+0~20190902.26+debian9~1.gbpd64eb7+wmf1 is installed.
Found GD graphics library built-in. Image thumbnailing will be enabled if you enable uploads.
Found the Git version control software: /usr/bin/git.
Warning: No --scriptpath specified, using default: /wiki.
Using server URL "/wiki".
Warning: Your default directory for uploads (/var/www/html/images/) is not checked for vulnerability to arbitrary script execution during the CLI install.
Using the PHP intl extension for Unicode normalization.
The environment has been checked. You can install MediaWiki.
Setting up database
done
Creating tables
Warning: MediaWiki tables seem to already exist. Skipping creation.
done
Creating database user
done
Populating default interwiki table
Warning: The interwiki table seems to already have entries. Skipping default list.
done
Initializing statistics
done
Generating secret keys
done
Prevent running unneeded updates
done
Creating administrator user account
done
Creating main page with default content
Main page already exists, skipping
done
Database was successfully set up
MediaWiki has been successfully installed. You can now visit </wiki> to view your wiki. If you have questions, check out our frequently asked questions list: <https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ> or use one of the support forums linked on that page.
[info] [warning] $wgServerName should be derived from $wgCanonicalServer, not customized. Overwriting $wgServerName. [Called from require_once in /var/www/html/includes/Setup.php at line 682]
[debug] IP: 127.0.0.1
[debug] Start command line script /var/www/html/maintenance/update.php
[info] [caches] cluster: EmptyBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: SqlBagOStuff, session: SqlBagOStuff
[debug] [localisation] LocalisationCache: using store LCStoreNull
MediaWiki 1.34.0-alpha Updater
[debug] [DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: request info {
"IPAddress": "127.0.0.1",
"UserAgent": false,
"ChronologyProtection": false,
"ChronologyPositionIndex": 0,
"ChronologyClientId": false
}
[debug] [DBConnection] Wikimedia\Rdbms\LoadBalancer::lazyLoadReplicationPositions: executed chronology callback.
[debug] [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: connected to database 0 at 'default-mariadb'.
[info] [gitinfo] Candidate cacheFile=/var/www/html/gitinfo.json for /var/www/html
[info] [gitinfo] Cache incomplete for /var/www/html
[debug] [exec] MediaWiki\Shell\Command::execute: /bin/bash '/var/www/html/includes/shell/limit.sh' 'GIT_DIR='\''/var/www/html/.git'\'' '\''/usr/bin/git'\'' '\''show'\'' '\''-s'\'' '\''--format=format:%ct'\'' '\''HEAD'\''' 'MW_INCLUDE_STDERR=;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes'
[debug] [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: connected to database 0 at 'default-mariadb'.
[debug] [SQLBagOStuff] Connection mysql object #149 (handle id #151) will be used for SqlBagOStuff
[debug] [session] SessionBackend "ev1pmbb4os2m8s673phcvbkb8ffn38k8" is unsaved, marking dirty in constructor
[debug] [session] SessionBackend "ev1pmbb4os2m8s673phcvbkb8ffn38k8" save: dataDirty=1 metaDirty=1 forcePersist=0
[debug] [localisation] LocalisationCache::isExpired(en): cache missing, need to make one
[debug] [localisation] LocalisationCache::recache: got localisation for en from source
[debug] [SQLBagOStuff] Connection mysql object #149 (handle id #151) will be used for SqlBagOStuff
[debug] [SQLBagOStuff] Connection mysql object #149 (handle id #151) will be used for SqlBagOStuff
[debug] [SQLBagOStuff] Connection mysql object #149 (handle id #151) will be used for SqlBagOStuff
[warning] [SQLBagOStuff] SqlBagOStuff::lock failed due to timeout for my_wiki:messages:en.
[debug] [SQLBagOStuff] Connection mysql object #149 (handle id #151) will be used for SqlBagOStuff
[debug] [SQLBagOStuff] Connection mysql object #149 (handle id #151) will be used for SqlBagOStuff
[info] [MessageCache] MessageCache::load: Loading en... local cache is empty, global cache is empty, loading from database
[https://www.mediawiki.org/ MediaWiki]: [https://www.mediawiki.org/wiki/MediaWiki_1.34 1.34.0-alpha] [https://gerrit.wikimedia.org/g/mediawiki/core.git/+/1141f0f21a7778041d189127bbf133b8033225ea (1141f0f)]<br/>19:39, 6 September 2019
[https://php.net/ PHP]: 7.2.22-1+0~20190902.26+debian9~1.gbpd64eb7+wmf1 (cli)
[{{int:version-db-mariadb-url}} MariaDB]: 10.1.40-MariaDB
[http://site.icu-project.org/ ICU]: 57.1
Your composer.lock file is up to date with current dependencies!
Going to run database updates for my_wiki
Depending on the size of your database this may take a while!
Turning off Content Handler DB fields for this part of upgrade.
...have ipb_id field in ipblocks table.
...have ipb_expiry field in ipblocks table.
...already have interwiki table
...indexes seem up to 20031107 standards.
...have rc_type field in recentchanges table.
...index new_name_timestamp already set on recentchanges table.
...have user_real_name field in user table.
...querycache table already exists.
...objectcache table already exists.
...categorylinks table already exists.
...have pagelinks; skipping old links table updates
...il_from OK
...have rc_ip field in recentchanges table.
...index PRIMARY already set on image table.
...have rc_id field in recentchanges table.
...have rc_patrolled field in recentchanges table.
...logging table already exists.
...have user_token field in user table.
...have wl_notificationtimestamp field in watchlist table.
...watchlist talk page rows already present.
...user table does not contain user_emailauthenticationtimestamp field.
...page table already exists.
...have log_params field in logging table.
...logging table has correct log_title encoding.
...have ar_rev_id field in archive table.
...have page_len field in page table.
...revision table does not contain inverse_timestamp field.
...have rev_text_id field in revision table.
...have rev_deleted field in revision table.
...have img_width field in image table.
...have img_metadata field in image table.
...have user_email_token field in user table.
...have ar_text_id field in archive table.
...page_namespace is already a full int (int(11)).
...ar_namespace is already a full int (int(11)).
...rc_namespace is already a full int (int(11)).
...wl_namespace is already a full int (int(11)).
...qc_namespace is already a full int (int(11)).
...log_namespace is already a full int (int(11)).
...have img_media_type field in image table.
...already have pagelinks table.
...image table does not contain img_type field.
...already have unique user_name index.
...user_groups table exists and is in current format.
...have ss_total_pages field in site_stats table.
...user_newtalk table already exists.
...have iw_trans field in interwiki table.
...wl_notificationtimestamp is already nullable.
...index times already set on logging table.
...have ipb_range_start field in ipblocks table.
...no page_random rows needed to be set
...have user_registration field in user table.
...templatelinks table already exists
...externallinks table already exists.
...job table already exists.
...have ss_images field in site_stats table.
...langlinks table already exists.
...querycache_info table already exists.
...filearchive table already exists.
...have ipb_anon_only field in ipblocks table.
...index rc_ns_usertext already set on recentchanges table.
...index rc_user_text already set on recentchanges table.
...have user_newpass_time field in user table.
...redirect table already exists.
...querycachetwo table already exists.
...have ipb_enable_autoblock field in ipblocks table.
...index pl_namespace on table pagelinks includes field pl_from.
...index tl_namespace on table templatelinks includes field tl_from.
...index il_to on table imagelinks includes field il_from.
...have rc_old_len field in recentchanges table.
...have user_editcount field in user table.
...page_restrictions table already exists.
...have log_id field in logging table.
...have rev_parent_id field in revision table.
...have pr_id field in page_restrictions table.
...have rev_len field in revision table.
...have rc_deleted field in recentchanges table.
...have log_deleted field in logging table.
...have ar_deleted field in archive table.
...have ipb_deleted field in ipblocks table.
...have fa_deleted field in filearchive table.
...have ar_len field in archive table.
...have ipb_block_email field in ipblocks table.
...index cl_sortkey on table categorylinks includes field cl_from.
...have oi_metadata field in oldimage table.
...index usertext_timestamp already set on archive table.
...index img_usertext_timestamp already set on image table.
...index oi_usertext_timestamp already set on oldimage table.
...have ar_page_id field in archive table.
...have img_sha1 field in image table.
...protected_titles table already exists.
...have ipb_by_text field in ipblocks table.
...page_props table already exists.
...updatelog table already exists.
...category table already exists.
...category table already populated.
...have ar_parent_id field in archive table.
...have user_last_timestamp field in user_newtalk table.
...protected_titles table has correct pt_title encoding.
...have ss_active_users field in site_stats table.
...ss_active_users user count set...
...have ipb_allow_usertalk field in ipblocks table.
...change_tag table already exists.
...user_properties table already exists.
...log_search table already exists.
...have log_user_text field in logging table.
...l10n_cache table already exists.
...ct_rc_id key doesn't exist.
...have rd_interwiki field in redirect table.
...*_mime_minor fields are already long enough.
...iwlinks table already exists.
...index iwl_prefix_title_from already set on iwlinks table.
...have ul_value field in updatelog table.
...have iw_api field in interwiki table.
...iwl_prefix key doesn't exist.
...have cl_collation field in categorylinks table.
...categorylinks up-to-date.
...module_deps table already exists.
...ar_page_revid key doesn't exist.
...skipping index ar_revid because index ar_revid_uniq already set on archive table.
...ll_lang is up-to-date.
...user_last_timestamp is already nullable.
...index user_email already set on user table.
...up_property in table user_properties already modified by patch patch-up_property.sql.
...uploadstash table already exists.
...user_former_groups table already exists.
...have rev_sha1 field in revision table.
...batch conversion of user_options: nothing to migrate. done.
...user table does not contain user_options field.
...have ar_sha1 field in archive table.
...index page_redirect_namespace_len already set on page table.
...have us_chunk_inx field in uploadstash table.
...have job_timestamp field in job table.
...index page_user_timestamp already set on revision table.
...have ipb_parent_block_id field in ipblocks table.
...index ipb_parent_block_id already set on ipblocks table.
...category table does not contain cat_hidden field.
...have rev_content_format field in revision table.
...have rev_content_model field in revision table.
...have ar_content_format field in archive table.
...have ar_content_model field in archive table.
...have page_content_model field in page table.
Content Handler DB fields should be usable now.
...site_stats table does not contain ss_admins field.
...recentchanges table does not contain rc_moved_to_title field.
...sites table already exists.
...have fa_sha1 field in filearchive table.
...have job_token field in job table.
...have job_attempts field in job table.
...have us_props field in uploadstash table.
...ug_group in table user_groups already modified by patch patch-ug_group-length-increase-255.sql.
...ufg_group in table user_former_groups already modified by patch patch-ufg_group-length-increase-255.sql.
...index pp_propname_page already set on page_props table.
...index img_media_mime already set on image table.
...iwl_prefix_title_from index is already non-UNIQUE.
...index iwl_prefix_from_title already set on iwlinks table.
...have ar_id field in archive table.
...have el_id field in externallinks table.
...have rc_source field in recentchanges table.
...index log_user_text_type_time already set on logging table.
...index log_user_text_time already set on logging table.
...have page_links_updated field in page table.
...have user_password_expires field in user table.
...have pp_sortkey field in page_props table.
...recentchanges table does not contain rc_cur_time field.
...index wl_user_notificationtimestamp already set on watchlist table.
...have page_lang field in page table.
...have pl_from_namespace field in pagelinks table.
...have tl_from_namespace field in templatelinks table.
...have il_from_namespace field in imagelinks table.
...img_major_mime in table image already modified by patch patch-img_major_mime-chemical.sql.
...oi_major_mime in table oldimage already modified by patch patch-oi_major_mime-chemical.sql.
...fa_major_mime in table filearchive already modified by patch patch-fa_major_mime-chemical.sql.
...comment fields are up to date.
...hitcounter doesn't exist.
...site_stats table does not contain ss_total_views field.
...page table does not contain page_counter field.
...msg_resource_links doesn't exist.
...msg_resource doesn't exist.
...bot_passwords table already exists.
...have wl_id field in watchlist table.
...cl_collation key doesn't exist.
...index cl_collation_ext already set on categorylinks table.
...collations up-to-date.
...index rc_name_type_patrolled_timestamp already set on recentchanges table.
...rev_page_id index already non-unique.
...pl_namespace, tl_namespace, il_to indices are already non-UNIQUE.
...have ct_id field in change_tag table.
...rc_ip in table recentchanges already modified by patch patch-rc_ip_modify.sql.
...index usertext_timestamp already set on archive table.
...have el_index_60 field in externallinks table.
...ug_user_group key doesn't exist.
...have ug_expiry field in user_groups table.
...index img_user_timestamp already set on image table.
...img_media_type in table image already modified by patch patch-add-3d.sql.
...ip_changes table already exists.
...index PRIMARY already set on categorylinks table.
...index PRIMARY already set on templatelinks table.
...index PRIMARY already set on pagelinks table.
...index PRIMARY already set on text table.
...index PRIMARY already set on imagelinks table.
...index PRIMARY already set on iwlinks table.
...index PRIMARY already set on langlinks table.
...index PRIMARY already set on log_search table.
...index PRIMARY already set on module_deps table.
...index PRIMARY already set on objectcache table.
...index PRIMARY already set on querycache_info table.
...index PRIMARY already set on site_stats table.
...index PRIMARY already set on user_former_groups table.
...index PRIMARY already set on user_properties table.
...comment table already exists.
...have img_description_id field in image table.
...index PRIMARY already set on l10n_cache table.
...bot_passwords.bp_user is already unsigned int.
...change_tag.ct_log_id is already unsigned int.
...change_tag.ct_rev_id is already unsigned int.
...page_restrictions.pr_user is already unsigned int.
...user_newtalk.user_id is already unsigned int.
...user_properties.up_user is already unsigned int.
...slots table already exists.
...have slot_origin field in slots table.
...content table already exists.
...slot_roles table already exists.
...content_models table already exists.
...actor table already exists.
...rev_text_id in table revision already modified by patch patch-rev_text_id-default.sql.
...table site_stats already modified by patch patch-site_stats-modify.sql.
...index rc_namespace_title_timestamp already set on recentchanges table.
...change_tag_def table already exists.
...el_index_60 in table externallinks already modified by patch patch-externallinks-el_index_60-drop-default.sql.
Running maintenance/deduplicateArchiveRevId.php...
...Update 'DeduplicateArchiveRevId' already logged as completed. Use --force to run it again.
done.
...have ct_tag_id field in change_tag table.
...index ar_revid_uniq already set on archive table.
...index log_type_action already set on logging table.
...type_action key doesn't exist.
...index PRIMARY already set on interwiki table.
...index PRIMARY already set on page_props table.
...index PRIMARY already set on protected_titles table.
...index PRIMARY already set on site_identifiers table.
...index rc_this_oldid already set on recentchanges table.
...transcache doesn't exist.
Running maintenance/populateChangeTagDef.php...
...Update 'PopulateChangeTagDef' already logged as completed. Use --force to run it again.
done.
...index change_tag_rc_tag_id already set on change_tag table.
...have ipb_sitewide field in ipblocks table.
...ipblocks_restrictions table already exists.
...change_tag table does not contain ct_tag field.
...valid_tag doesn't exist.
...tag_summary doesn't exist.
...protected_titles table does not contain pt_reason field.
...table job already modified by patch patch-job-params-mediumblob.sql.
...site_stats is populated...done.
...Update 'populate rev_len and ar_len' already logged as completed. Use --force to run it again.
...Update 'populate rev_sha1' already logged as completed. Use --force to run it again.
...img_sha1 column of image table already populated.
...protocol-relative URLs in externallinks table already fixed.
...fa_sha1 column of filearchive table already populated.
...*_from_namespace column of backlink tables already populated.
...Update 'FixDefaultJsonContentPages' already logged as completed. Use --force to run it again.
...Update 'cleanup empty categories' already logged as completed. Use --force to run it again.
...RFC and PMID already added to interwiki database table.
...Update 'populate pp_sortkey' already logged as completed. Use --force to run it again.
...Update 'populate ip_changes' already logged as completed. Use --force to run it again.
...externallinks table indexes up to date
Purging caches...done.
Done in 0.2 s.
[debug] [DBConnection] Wikimedia\Rdbms\LoadBalancer::closeAll: closing connection to database 'default-mariadb'.
[debug] [DBConnection] Wikimedia\Rdbms\LoadBalancer::closeAll: closing connection to database 'default-mariadb'.
[09-Sep-2019 18:13:55] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
[09-Sep-2019 18:13:55] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.6. Set the 'ServerName' directive globally to suppress this message
```

Event Timeline

brennen created this paste.Sep 9 2019, 6:54 PM