-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InternetArchiveBot setup and requirements #61
Comments
The bot turns out to have multiple little bugs that makes setup difficult. A new docker compose file will be made available soon to allow for quick spin up and installation of the bot. |
Thank you. A Docker compose file would be interesting. Is it better to continue discussion in this GitHub thread instead of the wiki talk page, where the discussion gets burried in the archives? I can help with the setup documentation if necessary once I have it running. I was planning to have a guide for private wiki use because there are US departments that are interested in setting up the bot for their wikis. |
Probably best. I’m honored that there are US departments interested in the bot. |
Thank you! I would love for DOE to be able to use such an incredibly useful Bot and other agencies have also expressed a lot of interest in adding it to their wikis. |
Just out of curiosity, are we talk Department of Education or Energy? I'm genuinely interested and would like to know more about this. |
Hi @cyberpower678! I work for the Department of Energy and oversee our internal wiki that just celebrated it's 10th birthday (https://www.youtube.com/watch?v=BcjOSp3XR6A). @daw5423 is one of our interns who has been investigating adding various bots, including the InternetArchiveBot, to our private wiki. Other in the Federal Wiki Community of Practice in which I help run are also interested in your bot. Many of us were part of the recent EMWCon (https://www.mediawiki.org/wiki/EMWCon_Spring_2020) that was organized by Cindy Cicalese, the Product Manager for the MediaWiki Platform team. Mark and Jefferson from the Internet Archive have also tried to connect us. Does that help? |
I was looking at the recent commit c631068 "Add docker file". Is there supposed to be a Docker compose file? I thought the compose file is in YAML format. |
Sorry for the long wait. IABot no longer lives here now. |
You can now clone https://github.com/internetarchive/internetarchivebot.git which is where IABot will live going forward. Once cloned run a composer install, and then rename the deadlink.config.docker.inc.php file to deadlink.config.local.inc.php and change all of the values you need, not touching any of the preconfigured values in the file. You will know it when you read the comments. :-) Finally spin up the docker image and give mariadb a few minutes to do it's first time setup, and it should just show up under http://localhost:8080/ |
Thank you!!!! |
Does it work? Do you need help? |
I have the server running in Docker. For the second page of the setup, what do I put for:
After setup and login, it wants to define the archive templates. I imported the webarchive template from Wikipedia. How do I define it?
|
For the i18n source URL, it would be whatever is the meta of your wiki farm. If you don't have a wiki farm, then it would be the same URL as the wiki itself. For the name, just give it a one word name. |
For the web archive template, the syntax you want to use to define it is:
|
I am on the define user groups page. I created a group by specifying only the group name and group class of default, but it says this: "Success: Successfully saved group settings, but one or more defined groups is dependent on a non-existent group. You will not be able to leave this page until the groups are correctly defined." How do I define the group? |
If you defined a group to inherit another group’s permissions, and it doesn’t exist, the interface can not function correctly until the inherited group actually exists. |
I left the other fields blank. At first, I checked the checkboxes and submitted. That's when the dependent message showed up. I edited the group and deselected the checkboxes, but it still shows the message. There's no way to delete a group and start over in the interface? EDIT: I deleted the rows "interface-usergroups" from the database and created 1 group with only group name specified. All other fields blank. It still shows the dependent message. |
Did it work? |
Yes, the group explanation and screenshots were helpful. I have completed the setup, and I am now testing a couple pages. One problem I would like to address is that the web server in Docker was taking up to 1 minute to load one PHP page. After some testing, I found out that the xdebug was causing it. It was trying to connect to a non-existent client on each PHP request. I wasn't using xdebug, so after I disabled remote autostart, pages load normally now.
enabling xdebug remote debug makes apache server very slow: If not using xdebug, this might be something important to address in the README. When I tried analyzing one page, there was a bug (fatal error) causing it to generate a blank page after analyzing for 30 seconds. I opened the page source and found:
The comment is hiding the HTML. That is why there is a blank page. |
Try adding |
I take it that fixed your problem and you are up and running? |
Yes, that Since then, I have written a guide. There might be things that could be added or changed. You can see here: I have also written a Bash script to automate the install using the Docker method: |
I am trying to test InternetArchiveBot for use in a private wiki. Is the bot hardcoded for Wikipedia only? How do I specify the wiki address, setup the bot account on the wiki, etc.?
I have read the documentation page at https://meta.wikimedia.org/wiki/InternetArchiveBot. Is this the only documentation page? It would be great to write a requirements section. Like does it require a MySQL database, Apache web server, and what else?
The text was updated successfully, but these errors were encountered: