-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
rebuildData.php prematurely stops without error message #766
Comments
There is no real debug mode, the only debug that you can have is provided by MW's maintenance base class which makes use of the stack trace options (see smw.org@stack trace). |
How do you know that it stopped? As coincidence has it I also just upgrade several wikis to SMW 2.1 and for one wiki I thought there may be a problem too since nothing seemed to happen for quite a while. However after about 4 Minutes the script continued with the next ID. The second time it happened for this wiki I had a look a the process and it was really sucking power but was working. |
Do we know the cause (or for that matter the page that causes such behaviour)? |
Unfortunately not since it is a private wiki and I just was happy that things still continued to roll. I expect this to be a very complex template with transclusions, queries and properties. I already told that person to rethink the data model in the past because of similar observations. |
Just to clarify, |
I am indeed not blaming SMW in general or rebuildData in special. I am talking about a familypedia style wiki. There is nothing one can do about this kind of "misuse". |
Can you not isolate the ID in order to run |
Apologies, I was originally on SWM 2.1 and had this issue, so I reverted to 2.0 and tried it again and still had the issue. It was present on both 2.0 and 2.1. @kghbln RE: how did I know that it stopped? I had barely hit "enter" to start the process and it ended. We have way more than pages with semantic properties on them than the ~50 IDs processed, so I knew something was wrong. @mwjames RE: Do we know the page that caused it? At this point I do not, but I will try to get more information later using the stack trace recommendation you made. Are you saying that if I turn on debug info as stated in [1] that rebuildData.php may provide me with more information? [1] http://semantic-mediawiki.org/wiki/Help:Identifying_bugs |
If you add all those options then yes but you should be careful with |
I ran the following:
Which resulted in the following:
Evidently I was on an old version of ExternalData (1.3.4), since upgrading to the latest (1.8.1) removed the issue. Apologies for wasting peoples' time with a non-SMW issue. Thanks for teaching me how to debug a maintenance script. |
Oh, also, when I reverted from SMW 2.1 to 2.0 to see if that caused the issue, I initially got the following error:
To fix this I had to run:
Perhaps that should be documented somewhere. |
You found a solution to a problem (and I hope the documentation provided on smw.org was helpful) that's all that matters.
Feel free to amend the smw.org@Installation documentation. |
Added |
Is there a way to determine how many IDs there are to process before processing? Perhaps the script should print something like "Beginning processing of 13035 IDs" so you know if it ends at 3000 that something went wrong. Even better would be if it could catch that something caused it to end prematurely and it said "Aborting script at ID 3000 for unknown reason. Run with --debug for more info and file a bug at https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues if required" |
Moving discussion to #778 |
I just upgraded to SMW 2.1. After update I ran rebuildData.php, but the script stopped without giving any error after printing the line "(49) Processing ID 59 ...". I have more than 10000 pages in the wiki, so this is very prematurely ending.
Next I ran "php rebuildData.php -v -s 51" since I wasn't sure if the -s option meant the number in the parenthetical (e.g. 49) or the ID (e.g. 59). Again it stopped prematurely and without error after printing the line "(9) Processing ID 59 ...".
So next I ran "php rebuildData.php -v -s 60" and it appears to be running well. When it ends I'm not sure how I'll know if it is really done or if it simply failed silently again, though. Is there a way to turn on a debug mode to give me more insight into whatever error occurred?
Environtment details:
The text was updated successfully, but these errors were encountered: