How to fix login sessions error in mediawiki?


mediawiki-login-error

I have a mediawiki server running for few years. Suddenly for past 3 days, it gave the some error on logging in and prevented any users to login.

The error message is as below :

There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again.

To fix this, I tried the below things.

create a folder tmp in /var/www/html/wiki and gave 777 permission to tmp folder.

Added below items in LocalSettings.php

session_save_path(“tmp”);

$wgMainCacheType = CACHE_ANYTHING;
$wgSessionCacheType = CACHE_DB;

adding these entries does not fix the issue.

Wanted to check what is happening on mediawiki side and enabled debug log file.

created the file debug.log, changed ownership to www-data

touch /var/www/html/wiki/debug.log
chown www-data /var/www/html/wiki/debug.log

added the below entry in LocalSettings.php

$wgDebugLogFile = “/var/www/html/wiki/debug.log”;

This gave interesting error messages, in the debug.log file.

[SQLBagOStuff] DBError: A database query error has occurred. Did you forget to run your application’s database schema updater after upgrading?
Query: SELECT keyname,value,exptime FROM `objectcache` WHERE keyname = ‘wikidb:MWSession:o6322v94oim3dvp358ma09f7alat8a10’
Function: SqlBagOStuff::getMulti
Error: 145 Table ‘./wikidb/objectcache’ is marked as crashed and should be repaired (localhost)

It seems some issues with the objectcache table. We have to repair it.

Took a backup of all tables except objectcache table.

mysqldump -u root wikidb –ignore-table=wikidb.objectcache > database.sql

Repaired with the below commands.

mysql -u username -p password

mysql> use wikidb
Database changed

mysql> REPAIR TABLE objectcache;
+———————–+——–+———-+———————————————————————————+
| Table | Op | Msg_type | Msg_text |
+———————–+——–+———-+———————————————————————————+
| wikidb.objectcache | repair | info | Wrong bytesec: 194-187- 44 at 83552960; Skipped |
| wikidb.objectcache | repair | info | Found link that points at -2449303559651474622 (outside data file) at 138477780 |
| wikidb.objectcache | repair | warning | Number of rows changed from 123426 to 123422 |
| wikidb.objectcache | repair | status | OK |
+———————–+——–+———-+———————————————————————————+
4 rows in set (9.07 sec)

This command fixed the table and login issue was gone.

Thanks for the wonderful mediawiki community to provide awesome software and solutions on issues.

The below links help me to explore the problem.

https://stackoverflow.com/questions/38812604/cant-log-in-to-mediawiki-canceled-as-a-precaution-against-session-hijacking

https://www.mediawiki.org/wiki/Topic:Pjby0sdeg3e60rfy

https://www.mediawiki.org/wiki/Topic:T7irqyk4rhfy3ohk

https://www.mediawiki.org/wiki/Topic:Pjby0sdeg3e60rfy

https://www.mediawiki.org/wiki/Manual:How_to_debug#Logging

https://stackoverflow.com/questions/425158/skip-certain-tables-with-mysqldump

Gave a Talk on Tamil Computing


Last saturday, I gave a talk on “Recent efforts on Tamil Computing” at Gradient Optimisers Community Meetup.

Feburary 2020 Meetup – Tamil Computing & Pytorch Vs Tensorflow2.0

Saturday, Feb 1, 2020, 10:00 AM

Smartworks
A-1,2 Chennai, Ta

125 Members Went

Meetup would be live streamed in this zoom link https://saama.zoom.us/j/115995555 Hello! Gradient Optimizers. The celebration season is all gone. Now it’s time to get some learning in. Agenda 10:00 – 10:30 – Introductions, Welcome 10:30 – 11:30 – Tamil Computing 11:45 – 12:45 – Pytorch Vs Tensorflow2.0 12:45 – 1:00 – What’s next and See yous! 1. P…

Check out this Meetup →

Used the below slides

The crowd was mostly developers and they wondered on the needs, current development and possibilities of language computing.

I explored the open-tamil python library.

Here is the video on my talk.

Thanks for Saama Technologies Lab for their wonderful efforts on community building.

Met interesting people there and discussed great topics after the meet.

Thanks for all Open-Tamil Contributors and Tamil Computing Contributors.

 

 

 

 

Created my first snap package for Ubuntu – deskew


Creating a snap package for a command line binary seems so easy.

Today, I Built a snap for "deskew" package.

About deskew :
Deskew is a tool for deskewing scanned text documents. Deskewing is a
term used for fixing the scans to get the lines of text straight. That
means rotating the image of the scanned page a little to compensate
for the misalignment of the paper in the scanner.

Read more at
https://galfar.vevb.net/wp/projects/deskew/

followed this tutorial for snap.
https://snapcraft.io/docs/t/pre-built-apps/6739

created a snap for deskew command line tool.

it can be installed via
sudo snap install –channel=edge deskew –devmode

will add deskew gui soon.

here is the repo for the snapcraft.yaml
https://github.com/tshrinivasan/deskew_snap

Thanks Ubuntu for the nice SnapCraft system.

PyCon India 2019 – few notes


This is year PyCon India 2019 was hosted by ChennaiPy community in Chennai. This is my first Python conference.

As they have conducted “PySangamam” event last year, they got good expertise on running a conference.  It is not easy. It requires one year of planning and huge team of volunteers. Most of the time, all these great things are driven by very few volunteers.

Tons of thanks for all the ChennaiPy team for the great event.

It was a two-day event. But, I attended for the first day only. We had an ebook making event on the next day.

 

Fanboy moment 🙂

with Prabu Ramachandran, Founder of Indian Linux Users Group, Chennai  – ilugc.in

On the very first moment at the registration desk, I found Dr. Prabu Ramachandran, from IIT Bombay. He is the founder of my alma mater, Indian Linux Users Group, Chennai. He was so happy to hear that the group is still active and monthly meetings are going regularly. Tons of thanks for your great initiatives sir. With ILUGC only, we are reaching gaining more knowledge and getting more longtime friends.

Prabu, Gopi, Shrini, Mohan  – ilugc friends

As this is multi track conference, I choose the below talks and listened them.

1. Python Packaging – where we are and where we’re headed – Pradyun Gedam

2. Rest in peace REST. The rise of GraphQL – Abhishek Mishra

3. Ragabot – Music Encoded – Vikrant Patil

Conferences are like Indian Marriages. We get to see all the friends there, but very little time to spend with them.

I saw many friends from ilugc, chennaipy, VillupuramGlug, KDE, PyDelhi, DelhiLug, DGPLug etc. Met few old colleagues from CollabNet.

Poster Presentation

Our poster on Kaniyam Foundation – Shrini & Khaleel

Apart from the regular talks, there were many poster presentations. Registered teams can show a poster and explain their works, about their communities, their contributions etc. I and Khaleel had a poster on “Kaniyam Foundation” – Our one-year-old kid for Tamil Computing activities.

 

Poster on Kaniyam Foundation

We got much appreciation from the visitor and few shown interest to volunteer.

The other posters were impressive. It is a very good moment to see all the passionate free software contributors to see in a single place.

For the first time, I saw the “KDE India team“. There were 5 young kde contributors showing KDE, Krita, Plasma Mobile, Kde Connect and other KDE features. I am a KDE user for around 10 years, I felt like meeting family friends. I spent much time in the stall. Thanks KDE team. I am so happy to meet you all.

KDE Stall

 

Villupuram GLUG stall is the only stall from a rural place. Good to see their efforts on taking free software to the tier-3 towns and villages. We need more and more GNU/Linux users groups all over the country as they are the mother for all the free software communities and contributions,

Sathish on VillupuramGLUG stalls

There was a circuit python stall, which displayed many electronic toys made with python.

https://lh3.googleusercontent.com/9Fa4dodLJ3O77B-cGoLbkUQXHe-uQNBCvk0V5rR_iSIP71eVYIEv2UBRWkby9Ua1WJRP_NSgkUbuDFTM3qjCypc71NMkxP3Q7i2HLmaFIVssA6olm59IpcKhnG0jp9Lj8vmX1AeI-r0NftIuKR33xoX1_fTkfhqtHOPSusH8AVFrmjvZR6lfH-bdaqv6S5rSdiWZERLWd-G55ifpDVWQO7wfRf8i0FO8npVnOYtX0OPkHlq76dnUn8joXV5S94OikVYwQLKHsi4bIILY8Wr5KXdAO2w_3nqQx75JAIsgUGm4VCQIdICXgIx6Ne_dyFHjQTjhIaX9f4asfxg7FX1l4FmH0ug-B1DpNB0X23VF2wr8gP5CjjcMxP2gL_O3HN-YrKi7HhFScTeTwk1d2ZpAiBoS0Laq4DElbPkXuBspFN8Ak8D8KTtZPh4AIkDawWDgDEVUEoejNh_iBiE8wpfod0HlK4j_ZobO9RfzJDMWF0-kigtHoxKtJN4-sJq2ZwBrqb6zaD_bCcKAYTogAH5O5QqEXPNe1xQ35hQHXvNAXmAnl07_rrklC27bGQHArWh6jD53xOFbWjMnidZwK0GQGHMy-lQbGbmVS-GFw8yucmeKZq7EILEaKM23R7nWzu9w1eEqapA4KRbupwlzk2dUH33Tmt2HMJxmYOS8SLxT0uPjL-3IKpZDzGQv5cGenmB_pySWuKnIanxpwpagi21cmQocLAibtVY6L5jptRHAHziuu5l1=w1683-h947-no

Circuit Python

Wondered to see an electronic ID card called PyBadge. I may buy it soon. ( Can it show Tamil? )

Happy to see a college kid from SRM, Abhilash, showing his efforts on OCR for Bangla language.

OCR for Bangla language

 

There were two silent conference tracks. Yes. they are really silent. You can hear only through the headphones provided. This is an intelligent idea to share the same big hall to two conference tracks.

Silent Conference Talk – Pic by Shiny Parashar

From the day one of planning, the conference team were excellent at every actions. From updating the attendees over mail setting up a zulipchat for the participants, Setting up Play areas for Kids, silent rooms for mothers and more.

Thanks for all the volunteers behind this great event. I dont have words to thank Vijaykumar. With his tireless efforts and enthusiasm on Python and Free Software, we are witnessing great events in chennai.

Pycon Paarticipants

 

Thanks for all the Sponsors of the Pycon India 2019

Sponsors of the Pycon India 2019

 

Here are my few clicks on the event – https://photos.app.goo.gl/tTJNeGoFKtwTWUzA8

Here is a collectively shared album to see all the great moments captured all over the event. – https://photos.app.goo.gl/RbMp67jSLjr5SrzVA

 

1000-ebooks-released-in-creative-commons-license-by-thamizhmann-publishers


Thamizhmann Publishers

Thamizhmann Publishers, in Chennai are publishing rare, old, prolific Tamil writers books, for 30 years. Their books are study materials for Tamil Studies in many universities.

They have released complete works collections famous authors like Paavanar, Sami sithambaram, Na.Mu.Ve nadar, Mayilai Seeni Vengadasamy, Vellai Varanar, Ilangumaranar, thiru.vi.ka, Rajamanikanar, saminatha sarma, Ovai Duraisamy,Mudiyarasan, Na.Si. Kandaya, Maraimalai adigal, Va.Suba. Manikanar, Appadurai and more.

Along with these they have published many dictionaries, Tamil music related books, etc.

Books List

  • Barathidasan – 167
  • Ka. Appadurai – 98
  • Ilangumaranar – 80
  • Saminatha sarma – 76
  • Na.Si. Kandaiya – 65
  • Thiu.vi.ka – 54
  • Paavanar – 53
  • Maraimalai adigal – 52
  • Saami chidambaranar – 37
  • Rajamanikkanar – 39
  • Manikkam – 34
  • Na.Mu.Ve nadar – 32
  • Ovai Duraisamy – 32
  • Pulavar Kulandai – 28
  • Sangam literature – 22
  • Mudiyarasan – 22
  • Vellai Vaaranar – 21
  • Mayilai Seeni Vengadasamy – 20
  • Tholkappiyam – 19
  • Pathinen-kil-kanakku – 18
  • Tamil Grammar Dictionary (Gopal Iyer) – 18
  • Ragavan – 16
  • Sadasivam – 16
  • Tolkappiyam – 15
  • Literature -15
  • Paavanar – 13
  • Tamil Nadu History – 12
  • Soma sundara Barathiyar – 10
  • Tamil scholars – 10
  • Ramanathan – 10
  • Tamil Dictionary – 10
  • Karunamirtha Sagaram -7
  • Aim-perum-kapiyam – 5
  • Muthu-mozhi-kalanjiyam – 5
  • Subbu Reddy– 3
  • Silver Jublee Tamil Dictionary – 3
  • Ara neri vilakkam – 3
  • Yarl Dictionary – 2
  • N.C. Kandaiya Dictionary – 2
  • Moral Books – 2
  • Kurunthogai Vilakkam – 1

Total Pages – More than 2,00,000 (2 lakh)

Total Books – 1,165

Releasing Nationalized books as Ebooks

Tamil Virtual Academy has released around 2000 Nationalized Books as PDF files in Public Domain license. Tamil Wikisource volunteers have OCRed them and proofreading them to fix the spell errors. This task is seeking huge amount of manual effort and time. It may take few decades to proofread all these 2000 books.

As Thamizhmann Publications is publishing these public domain books as print books, we discussed with them, to ask if they have these books in unicode format. For our surprise, they have all these books in unicode format as MS Word Documents.

We explained our works at FreeTamilEbooks.com, Kaniyam.com and ta.wikisource.org proof read works. They wondered and wished for our contributions.

They agreed to give all these 1000s of books (more than 2 lakh pages) in unicode word format,for Kaniyam Foundation to release as Free Ebooks. Once they are released, we will get all the Tamil Scholars complete works for free.

We agreed compensate with some money for their great works for 30 years and giving all the 1000s of books as unicode word documents.

We said that we can give Rs 5 Lakh. 5,00,000 INR. If we calculate, it comes as 2.5 Rs/Page.

After we received the books, we will add cover images. Then, will publish in http://ta.wikisource.org and http://FreeTamilEbooks as epub, mobi, A4 PDF, 6 inch PDF formats so that anyone can read in any device.

A Happy News

University of Toronto Scarborough, Canada donated all the price for all the ebooks, including taxes. We have to make the ebooks as epub, mobi, PDF, HTML, txt, odt formats with cover images as soon as possible.
We are currently working on splitting the MS word documents, provided by Thamizhmann Publishers, as individual documents for ebook making.

Call for Donations

All the 1000 ebooks are great assets for Tamil Language. Releasing them as good quality ebooks is a high energy demanding work.

We are working on automating most of the works, recruiting team, training them, making training documents and videos for them, MoU between Kaniyam and UTSC, etc.

As there will be 3-4 full time employees for this project, there will be lot of expenses. Help us with your Donations.

Bank Details

Kaniyam Foundation
Account Number : 606 1010 100 502 79
Union Bank Of India
West Tambaram, Chennai
IFSC - UBIN0560618
  • Please send your donations to this account to support activities of Kaniyam Foundation
  • Send your name, donation details to kaniyamfoundation@gmail.com

 

Transparency Policy

All the works of kaniyam Foundation, Donations, Expenses are published as monthly reports at Kaniyam.com

New project ideas are discussed here github.com/KaniyamFoundation/ProjectIdeas/issues

In this spreadsheet, all the donations/expenses are shared https://docs.google.com/spreadsheets/d/1zBXZzjYP_WKfm4y3EpTYw5yOTOeA-sSp8mcNjjNAUe0/edit?usp=sharing

 

Announcement of Thamizhmann Publishers Books in Creative Commons License

Here is the announcement in English and Tamil along with their book list.

in Tamil – https://archive.org/download/thamizhmann-cc-declaration/Thamizhmann-cc-declaration-tamil.pdf

In English – https://archive.org/download/thamizhmann-cc-declaration/Thamizhmann-cc-declaration-english.pdf

Download PDF Books

Here you can download PDF version of these ebooks.

http://www.ulakaththamizh.in/uploads/book/pdf/

We will convert to epub, mobi, HTML, txt, wiki formats in 6 months and release in FreeTamilEbooks.com

 

 

 

Thanks

We thank Thamizhmann Publishers, University of Toronto Scarborough Canada, CIS-A2K Bengaluru, Donors, Kaniyam Volunteers, Tamil Wikipedia Community, Tamil Wikisource Community for their great support for this great project.

Received Tamil Internet Couple Award


சென்னையில் தமிழ் இணைய மாநாடு தொடங்கியது

Tamil Internet Conference 2019 happened at Anna University, Chennai during Sep 20-22, 2019

It was Inagurated by TamilNadu Ministers Mafoi. K. Pandiyarajan and KP Anbalagan.

Anto Peter, Thagadoor Gopi were awarded for their contributions to Tamil Computing. Though they both are not living, they live through their contributions.

Then, I and My Wife Nithya received an award “Tamil Internet Couple Award”   🙂

Thanks for the ministers and INFITT for the award.

We submit this award to all the Tamil Computing & Free Software contributors.

We thank Indian Linux Users Group, Chennai introduced GNU/Linux, who introduced GNU/Linux to us, Tamil Wikipedia Community, FSFTN, PuduvaiGLUG, VillupuramGLUG, KanchiLUG, Open-Tamil Project Contributors, Kaniyam Team, FreeTamilEbooks.com contributors, Writers and media friends.

Will give more contributions for Tamil and Free Software.

Thanks all.

Here is the Video.

ILUGC Monthly Meet – September 14, 2019 – 3-6 pm – IITM


Indian Linux Users Group, Chennai [ ILUGC ] is spreading awareness on Free/Open Source Software (F/OSS) in Chennai since January 1998.

We usually meet on the second Saturday of every month, and for the month of September we shall meet on Saturday, September 14, 2019 at 1500 IST.

Venue: Classroom No 1,
Aerospace Engineering,
Near Gajendra Circle,
IIT Madras.
Link for the Map: http://bit.ly/iitm-aero

Talk Details:

Talk 1:

Topic: How to archive books with ScanTailor and OCR with Tesseract ?

Description: We are building a custom scan box to scan old books. Will explain how to scan books, how to post process them using scantailor to get great looking PDF/ Images and get the text out of them using tesseract OCR.

See our progress here –
https://github.com/KaniyamFoundation/ProjectIdeas/issues/73

Duration: 30-45 min

Speaker: Shrinivasan T

About Speaker: Shrinivasan, Founder of Kaniyam.com and
FreeTamilEbooks.com

Talk 2:

Topic: Introduction to OpenCV

Description: OpenCV (Open Source Computer Vision) is a library of programming functions mainly aimed at real-time computer vision. In simple language it is library used for Image Processing. It is mainly used to do all the operation related to Images.

Duration: 30 minutes

Speaker: Barani Tharan (baranitharan2020@gmail.com)

About Speaker: An enthusiastic open source Contributor, working with OpenCV by past 1 year. Good experience while using OpenCV for Human Detection.

Talk 3:

Topic: Howto setup Wireguard as VPN

Description: Wireguard is a modern secure layer3 tunnel. One of its use case is to establish VPN network. In this talk we will be connecting three VMs (one linux, one BSD and one windows) and use one of the VM as gateway to establish a internet connectable subnet on top of a VPN created using wireguard.

Duration: 30 mins

Speaker: Mohan R

About Speaker: Just another FOSS Enthusiast.

After Talks:

QA & general discussions

Entry free. All are welcome.

Open Source Projects for Tamil – Hackathon – 2 – Saturday – August 24 – Chennai


Are you looking for an interesting project to do?
Can you share some time and your programming skills for Tamil Language?
Do you like to meet the fellow open source contributors in Chennai?

Here is a Hackathon for Open Source Projects for Tamil.

Date : August 24, 2019, Saturday
Time : 10.00 am – 5.00 pm

Venue :
Payilagam Software Training Institute
No: 7,
Vijaya Nagar 1st Main Road,
Velachery,
Opposite to Park,
Chennai-600042.
8344777333 | 8883775533
Email: info
Phone: 044 22592370
www.payilagam.com

Contact : T Shrinivasan 98417 95468

Send a mail to tshrinivasan
to confirm your participation.

Wondering what projects you can do?

Pick anything from here.

https://github.com/KaniyamFoundation/ProjectIdeas/labels/Programming

Or contribute to cover images or ebook making for the books here
https://github.com/KaniyamFoundation/Ebooks/issues

Or translate the places in chennai in Tamil
https://github.com/KaniyamFoundation/osm_tamil_translations/issues

or, you can come with your own ideas and implement there.

Come, let us contribute to Tamil with our programming skills.

Happy to see linux at courts


I came to Madurai district court.

Happy to see the judges and other officers are using computers loaded with GNU/Linux.

I see a Debian wallpaper on the screen. Hope they have Debian.

Reading that all indian courts use linux only.

Happy to see the changes.

Help to make Tamil videos, screencasts for free software


Videos become easy reachable for many nowadays.

It will be great if we have at least one video for each free software we use.

Simple screen recorder is best software for screen casting.

We need a team of volunteers for this project to create tamil screencasts.

We have to list out existing tamil videos available for free software first. Then we can work for the missing softwares.

Reply here if you are interested to contribute for this project.

Thanks.