More actions
→Batch-exporting pages: new section |
|||
Line 79: | Line 79: | ||
Do you know about [[Special:Export]] and [[Special:Import]], which allow you to bunch-copy pages (templates in this case) to another wiki? --[[User:Catrope|Catrope]]<sup>([[User talk:Catrope|Talk to me]] or [[Special:Emailuser/Catrope|e-mail me]])</sup> 20:46, 15 May 2008 (UTC) | Do you know about [[Special:Export]] and [[Special:Import]], which allow you to bunch-copy pages (templates in this case) to another wiki? --[[User:Catrope|Catrope]]<sup>([[User talk:Catrope|Talk to me]] or [[Special:Emailuser/Catrope|e-mail me]])</sup> 20:46, 15 May 2008 (UTC) | ||
:Ha. Yeah. :) I learned about it recently. We might want to consider upgrading to 1.13 alpha here. [[User:Shane|Shane]] ([[User_Talk:Shane|talk]]) 20:48, 15 May 2008 (UTC) |
Revision as of 20:48, 15 May 2008
Vote bot
Are you actively developing the vote bot? If not, I'd like to write it ;) --Catrope(Talk to me or e-mail me) 14:08, 9 May 2008 (UTC)
- neg. Go for it. I have wikipedia version, but havn't really looked at it in a while. Shane (talk) 20:52, 9 May 2008 (UTC)
- OK, I've finished it and it's running fine on my wiki. It does require MW 1.13, though. --Catrope(Talk to me or e-mail me) 12:12, 13 May 2008 (UTC)
- That could be a problem. :D Gotta link? Shane (talk) 12:42, 13 May 2008 (UTC)
- To what, the bot or 1.13? Currently, 1.13 hasn't been released yet, there's only 1.13alpha that you can download from SVN. I'll upload the bot code later, after I've documented it. --Catrope(Talk to me or e-mail me) 13:32, 13 May 2008 (UTC)
- No no. :p To your wiki to where you tested it. :D Shane (talk) 14:25, 13 May 2008 (UTC)
- I have it running on localhost, so I can't really show you. Maybe you could set up the Hangar Bay again (it's still out) and have it run 1.13alpha? I'll be happy to do the SVN checkout if you feel awkward about that. --Catrope(Talk to me or e-mail me) 15:37, 13 May 2008 (UTC)
- domain back up an working. You should be able to access the hb folder with your access. I think the LocalSettings.php file that is on there now has the current username/password you will need for updating to 1.13. Shane (talk) 15:40, 13 May 2008 (UTC)
- Thanks. However, I don't have write access to /home/bsgwiki/bots/ either, so I can't add VoteBot there. --Catrope(Talk to me or e-mail me) 18:33, 14 May 2008 (UTC)
- Do'h! :P Will add. Shane (talk) 20:11, 14 May 2008 (UTC)
- Thanks. However, I don't have write access to /home/bsgwiki/bots/ either, so I can't add VoteBot there. --Catrope(Talk to me or e-mail me) 18:33, 14 May 2008 (UTC)
- domain back up an working. You should be able to access the hb folder with your access. I think the LocalSettings.php file that is on there now has the current username/password you will need for updating to 1.13. Shane (talk) 15:40, 13 May 2008 (UTC)
- I have it running on localhost, so I can't really show you. Maybe you could set up the Hangar Bay again (it's still out) and have it run 1.13alpha? I'll be happy to do the SVN checkout if you feel awkward about that. --Catrope(Talk to me or e-mail me) 15:37, 13 May 2008 (UTC)
OK, more trouble. The bot is up there and I can run it from my machine, but since I guess we'll wanna run it on apollo as a cron job, I'll need you to work around some stupid PHP bug and add the following lines to /etc/hosts:
74.53.78.34 hb.battlestarwiki.org 74.53.78.34 en.battlestarwiki.org
etc. for every subdomain we want VoteBot to run on. --Catrope(Talk to me or e-mail me) 20:57, 14 May 2008 (UTC)
- Werid. Let me check it out before I do anything with the hosts files. Shane (talk) 21:11, 14 May 2008 (UTC)
- Gota ya. Adding to our hosts file. HB and EN for now. Shane (talk) 21:16, 14 May 2008 (UTC)
- Double werid. I added to our hosts file those lines, and still no go on the command execution. Try to remove the port. Shane (talk) 21:22, 14 May 2008 (UTC)
- I added the 775 flags to the file so we cna work on it. Not the /etc/hosts file. Gtalk ? Shane (talk) 21:32, 14 May 2008 (UTC)
- Got it working. :) Shane (talk) 21:48, 14 May 2008 (UTC)
[root@apollo VoteBot]# php VoteBot.php --run --config VoteBot.config.hb.php VoteBot 0.1 Logging in as VoteBot... http://hb.battlestarwiki.org/w/api.php Error: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /w/api.php was not found on this server.</p> <hr> <address>Apache/2.2.4 (Unix) Server at hb.battlestarwiki.org Port 80</address> </body></html> [root@apollo VoteBot]#
Shane (talk) 21:59, 14 May 2008 (UTC)
- Sorry, a typo must've happened somewhere. The last octet should be 35, not 34. --Catrope(Talk to me or e-mail me) 12:31, 15 May 2008 (UTC)
- ?? What? Shane (talk) 13:08, 15 May 2008 (UTC)
- I mean the IP address in the /etc/hosts file for hb.battlestarwiki.org (and en for that matter) should end in .35, not .34. No idea why, but try to run
ping en.battlestarwiki.org
from your machine at home and see what IP it gives you. --Catrope(Talk to me or e-mail me) 13:34, 15 May 2008 (UTC)- Doh! That's right. I gave the wiki URL it's own IP. :) Changed... Why task bot didn't run last night too. Shane (talk) 14:18, 15 May 2008 (UTC)
- I mean the IP address in the /etc/hosts file for hb.battlestarwiki.org (and en for that matter) should end in .35, not .34. No idea why, but try to run
- ?? What? Shane (talk) 13:08, 15 May 2008 (UTC)
- Sorry, a typo must've happened somewhere. The last octet should be 35, not 34. --Catrope(Talk to me or e-mail me) 12:31, 15 May 2008 (UTC)
[bsgwiki@apollo VoteBot]$ php VoteBot.php --run --config VoteBot.config.hb.php VoteBot 0.1 Logging in as VoteBot... Error: internal_api_error_DBConnectionError: Exception Caught: DB connection error: Access denied for user 'bsgwiki_admin'@'apollo.frakmedia.net' to database 'wikidb' (athena.frakmedia.net)
This is because we are using one LocalSettings.php file for all the hosts. :( Shane (talk) 14:21, 15 May 2008 (UTC)
- No, that wasn't it, it was a small modification I made to Snoopy once. I then redownloaded Snoopy and forgot about it. It works now. --Catrope(Talk to me or e-mail me) 18:44, 15 May 2008 (UTC)
- It's really working now, see this. --Catrope(Talk to me or e-mail me) 19:11, 15 May 2008 (UTC)
Reminder for Shane...
http://en.wikipedia.org/wiki/Wikipedia:Upload Shane (talk) 14:46, 13 May 2008 (UTC)
Batch-exporting pages
Do you know about Special:Export and Special:Import, which allow you to bunch-copy pages (templates in this case) to another wiki? --Catrope(Talk to me or e-mail me) 20:46, 15 May 2008 (UTC)
- Ha. Yeah. :) I learned about it recently. We might want to consider upgrading to 1.13 alpha here. Shane (talk) 20:48, 15 May 2008 (UTC)