{"action":"closed","issue":{"url":"https://api.github.com/repos/enterprisemediawiki/Meza1/issues/146","labels_url":"https://api.github.com/repos/enterprisemediawiki/Meza1/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/enterprisemediawiki/Meza1/issues/146/comments","events_url":"https://api.github.com/repos/enterprisemediawiki/Meza1/issues/146/events","html_url":"https://github.com/enterprisemediawiki/Meza1/issues/146","id":100385568,"number":146,"title":"import-wiki.sh failed","user":{"login":"darenwelsh","id":6728676,"avatar_url":"https://avatars.githubusercontent.com/u/6728676?v=3","gravatar_id":"","url":"https://api.github.com/users/darenwelsh","html_url":"https://github.com/darenwelsh","followers_url":"https://api.github.com/users/darenwelsh/followers","following_url":"https://api.github.com/users/darenwelsh/following{/other_user}","gists_url":"https://api.github.com/users/darenwelsh/gists{/gist_id}","starred_url":"https://api.github.com/users/darenwelsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darenwelsh/subscriptions","organizations_url":"https://api.github.com/users/darenwelsh/orgs","repos_url":"https://api.github.com/users/darenwelsh/repos","events_url":"https://api.github.com/users/darenwelsh/events{/privacy}","received_events_url":"https://api.github.com/users/darenwelsh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/enterprisemediawiki/Meza1/milestones/2","html_url":"https://github.com/enterprisemediawiki/Meza1/milestones/Meza1%20v0.3","labels_url":"https://api.github.com/repos/enterprisemediawiki/Meza1/milestones/2/labels","id":1221462,"number":2,"title":"Meza1 v0.3","description":"Primary: Incorporate auto-auth on Meza1-the-server. Additional goals:\r\n\r\n* more robust apache install\r\n* wiki-import built into install\r\n* merge setup.sh and install.sh (script should figure out what's needed rather than having two confusingly similar scripts)","creator":{"login":"jamesmontalvo3","id":716482,"avatar_url":"https://avatars.githubusercontent.com/u/716482?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesmontalvo3","html_url":"https://github.com/jamesmontalvo3","followers_url":"https://api.github.com/users/jamesmontalvo3/followers","following_url":"https://api.github.com/users/jamesmontalvo3/following{/other_user}","gists_url":"https://api.github.com/users/jamesmontalvo3/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesmontalvo3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesmontalvo3/subscriptions","organizations_url":"https://api.github.com/users/jamesmontalvo3/orgs","repos_url":"https://api.github.com/users/jamesmontalvo3/repos","events_url":"https://api.github.com/users/jamesmontalvo3/events{/privacy}","received_events_url":"https://api.github.com/users/jamesmontalvo3/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":14,"state":"open","created_at":"2015-07-23T04:10:50Z","updated_at":"2015-08-13T20:47:09Z","due_on":"2015-08-12T05:00:00Z","closed_at":null},"comments":12,"created_at":"2015-08-11T19:11:42Z","updated_at":"2015-08-13T20:47:09Z","closed_at":"2015-08-13T20:47:09Z","body":"After successfully setting up a new VM with CentOS 6.6, running setup.sh and adding a non-root user, I tested #142. This test ended successfully. I had a functioning wiki.\r\n\r\nAt this point, I used scp to copy a dump from the EVA Wiki to the VM (db and images). Then I ran import-wiki.sh ([5297dc8](https://github.com/enterprisemediawiki/Meza1/blob/5297dc81a1588c94b3a29a0c30402e3951bf5f81/client_files/import-wiki.sh)). This had multiple issues. See the end of the output pasted below. Note that every image file seemed to have the same issues as \"1B_ECU_APFR_setting.jpg\" including the three tar messages.\r\n\r\nI was connected to the server via SSH as a non-root user, but I executed `sudo su` before running import-wiki.sh.\r\n\r\nI'm going to go back a snapshot and look around the config to make sure I used the right wiki db name and try again.\r\n\r\n```\r\ntar: Ignoring unknown extended header keyword `SCHILY.dev'\r\ntar: Ignoring unknown extended header keyword `SCHILY.ino'\r\ntar: Ignoring unknown extended header keyword `SCHILY.nlink'\r\n./images/thumb/0/00/1B_ECU_APFR_setting.jpg/994px-1B_ECU_APFR_setting.jpg\r\ntar: ./images/thumb/0/00/1B_ECU_APFR_setting.jpg/994px-1B_ECU_APFR_setting.jpg: Cannot open: No such file or directory\r\ntar: Exiting with failure status due to previous errors\r\nrm: cannot remove `./images/README.md': No such file or directory\r\nmv: target `/var/www/meza1/htdocs/wiki/images/*' is not a directory\r\nFor wiki: \r\n * dropping if exists\r\n * (re)creating\r\n * importing file at /var/www/meza1/wiki.sql\r\nWarning: Using a password on the command line interface can be insecure.\r\nERROR 1006 (HY000) at line 1: Can't create database 'wiki' (errno: 28)\r\nRunning MediaWiki maintenance script \"update.php\"\r\nMediaWiki 1.25.1 Updater\r\n\r\nYour composer.lock file is up to date with current dependencies!\r\nDB connection error: Unknown database 'wiki' ()\r\nRunning Semantic MediaWiki maintenance script \"rebuildData.php\"\r\n\r\nRunning for storage: SMWSQLStore3\r\n\r\nRebuilding property pages first.\r\nDB connection error: Unknown database 'wiki' ()\r\nRunning MediaWiki maintenance script \"runJobs.php\"\r\nSet $wgShowExceptionDetails = true; in LocalSettings.php to show detailed debugging information.\r\nBuilding Elastic Search index\r\nbash: printTitle.sh: No such file or directory\r\n******* Generating elasticsearch index *******\r\ncontent index...\r\n\tFetching Elasticsearch version...1.6.2...ok\r\n\tScanning available plugins...none\r\n\tInfering index identifier...wiki_content_first\r\n\tPicking analyzer...english\r\n\tIndex exists so validating...\r\n\t\tValidating number of shards...ok\r\n\t\tValidating replica range...ok\r\n\t\tValidating shard allocation settings...done\r\n\t\tValidating max shards per node...ok\r\n\tValidating analyzers...ok\r\n\tValidating mappings...\r\n\t\tValidating mapping...ok\r\nDB connection error: Unknown database 'wiki' ()\r\nDB connection error: Unknown database 'wiki' ()\r\nDB connection error: Unknown database 'wiki' ()\r\n******* Elastic Search build index complete! *******\r\n\r\nYour wiki has been imported!\r\n```"}}