Page MenuHomePhabricator
Paste P8933

update_monuments_2019-08-18.log.clean
ActivePublic

Authored by Lokal_Profil on Aug 20 2019, 7:20 AM.
Tags
None
Referenced Files
F30049523: raw.txt
Aug 20 2019, 7:20 AM
Subscribers
None
2019-08-18_03:00:25 Starting full monument update.
2019-08-18_03:00:25 Load changes to monuments_config...
2019-08-18_03:00:53 Recreating the source tables...
2019-08-18_03:00:59 Full source database update...
WARNING: /data/project/heritage/heritage/erfgoedbot/update_database.py:449: Warning: Data truncated for column 'site' at row 1
(countryconfig.get('lang'), page.title(True), params[0]))
Sleeping for 5.0 seconds, 2019-08-18 04:17:49
Sleeping for 5.0 seconds, 2019-08-18 07:03:12
WARNING: API error badtoken: Invalid CSRF token.
WARNING: API error badtoken: Invalid CSRF token.
No job 'categorize_images' is currently queued or running
2019-08-18_13:16:41 Update monuments_all table...
2019-08-18_13:22:09 Make statistics...
WARNING: /data/project/heritage/heritage/erfgoedbot/database_statistics.py:28: Warning: Truncated incorrect DOUBLE value: ''
cursor.execute(query)
2019-08-18_13:22:56 Make more detailed statistics...
PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /mnt/nfs/labstore-secondary-tools-project/heritage/heritage/api/includes/Database.php:150
Stack trace:
#0 /mnt/nfs/labstore-secondary-tools-project/heritage/heritage/maintenance/_buildStats.php(25): Database::define('tools-db', 's51138__heritag...', 'XXXXXX', 'XXXXX')
#1 {main}
thrown in /mnt/nfs/labstore-secondary-tools-project/heritage/heritage/api/includes/Database.php on line 150
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /mnt/nfs/labstore-secondary-tools-project/heritage/heritage/api/includes/Database.php on line 150
Error: Call to undefined function mysql_connect() in /mnt/nfs/labstore-secondary-tools-project/heritage/heritage/api/includes/Database.php on line 150
Call Stack:
0.0073 393904 1. {main}() /mnt/nfs/labstore-secondary-tools-project/heritage/heritage/maintenance/_buildStats.php:0
0.0233 430128 2. Database::define() /mnt/nfs/labstore-secondary-tools-project/heritage/heritage/maintenance/_buildStats.php:25
2019-08-18_13:22:56 Update unused images list...
2019-08-18_13:55:03 Make a list of missing commonscat links...
2019-08-18_14:01:01 Make a list of images without id...
Traceback (most recent call last):
File "/data/project/heritage/heritage/erfgoedbot/images_of_monuments_without_id.py", line 419, in <module>
main()
File "/data/project/heritage/heritage/erfgoedbot/images_of_monuments_without_id.py", line 411, in main
countryconfig, add_template, conn, cursor, conn2, cursor2))
File "/data/project/heritage/heritage/erfgoedbot/images_of_monuments_without_id.py", line 62, in processCountry
countryconfig.get('country'), countryconfig.get('lang'), conn, cursor)
File "/data/project/heritage/heritage/erfgoedbot/images_of_monuments_without_id.py", line 193, in getMonumentsWithPhoto
cursor.execute(query, (countrycode, lang))
File "/data/project/heritage/.venv/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
self.errorhandler(self, exc, value)
File "/data/project/heritage/.venv/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (2006, 'MySQL server has gone away')
CRITICAL: Closing network session.
<class '_mysql_exceptions.OperationalError'>
2019-08-18_14:33:04 Dump database...
2019-08-18_14:38:21 Replace the sql file atomically...
2019-08-18_14:38:21 Refill prox_search table...
PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /mnt/nfs/labstore-secondary-tools-project/heritage/heritage/api/includes/Database.php:150
Stack trace:
#0 /mnt/nfs/labstore-secondary-tools-project/heritage/heritage/api/common.php(76): Database::define('tools-db', 's51138__heritag...', 'XXXXX', 'XXXXX')
#1 /mnt/nfs/labstore-secondary-tools-project/heritage/heritage/prox_search/fill_table_prox_search.php(7): require_once('/mnt/nfs/labsto...')
#2 {main}
thrown in /mnt/nfs/labstore-secondary-tools-project/heritage/heritage/api/includes/Database.php on line 150
<br />
<font size='1'><table class='xdebug-error xe-uncaught-exception' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /mnt/nfs/labstore-secondary-tools-project/heritage/heritage/api/includes/Database.php on line <i>150</i></th></tr>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Error: Call to undefined function mysql_connect() in /mnt/nfs/labstore-secondary-tools-project/heritage/heritage/api/includes/Database.php on line <i>150</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0018</td><td bgcolor='#eeeeec' align='right'>400312</td><td bgcolor='#eeeeec'>{main}( )</td><td title='/mnt/nfs/labstore-secondary-tools-project/heritage/heritage/prox_search/fill_table_prox_search.php' bgcolor='#eeeeec'>.../fill_table_prox_search.php<b>:</b>0</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.1182</td><td bgcolor='#eeeeec' align='right'>584728</td><td bgcolor='#eeeeec'>require_once( <font color='#00bb00'>'/mnt/nfs/labstore-secondary-tools-project/heritage/heritage/api/common.php'</font> )</td><td title='/mnt/nfs/labstore-secondary-tools-project/heritage/heritage/prox_search/fill_table_prox_search.php' bgcolor='#eeeeec'>.../fill_table_prox_search.php<b>:</b>7</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.4825</td><td bgcolor='#eeeeec' align='right'>1256280</td><td bgcolor='#eeeeec'>Database::define( )</td><td title='/mnt/nfs/labstore-secondary-tools-project/heritage/heritage/api/common.php' bgcolor='#eeeeec'>.../common.php<b>:</b>76</td></tr>
</table></font>
2019-08-18_14:38:22 Update admin structure tree...
Deleting previous data...
Rebuilding table...
Querying data...
Inserting data...
Inserted 142732 admin zones in 117.81044912338 seconds.
2019-08-18_14:40:20 Done with the update!