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

all feeds lost #140

Closed
nlegaillart opened this Issue Mar 29, 2013 · 18 comments

Comments

Projects
None yet
4 participants
@nlegaillart

nlegaillart commented Mar 29, 2013

Hi,

for a few days now (since KF6 release), all my feeds disappear, and I get a lot of this in the logs:

[29-Mar-2013 20:14:22 Europe/Paris] PHP Notice: unserialize() [function.unserialize]: Error at offset 198552 of 505122 bytes in /home/www/kf/index.php on line 4700

deleting the cache directory, nor recovering files from a backup actually works. I have to re-import all the feeds from an .opml file every time.

any idea ?

I'm currently using an unknown revision of KF6 that I got directly from the master branch (to get the nice "per-post favicon" feature), but I'll rollback to version 6 "stable", and keep you informed.

@tontof

This comment has been minimized.

Show comment
Hide comment
@tontof

tontof Mar 30, 2013

Owner

Very strange, it seems that your data.php file was corrupted and that php was not able to reload it :-(
This is the first time I read this. I have no idea what happened.
Did you keep the data.php ?
If it occurs again, keep your data.php file to see if we can find why the file is corrupted.

Owner

tontof commented Mar 30, 2013

Very strange, it seems that your data.php file was corrupted and that php was not able to reload it :-(
This is the first time I read this. I have no idea what happened.
Did you keep the data.php ?
If it occurs again, keep your data.php file to see if we can find why the file is corrupted.

@nlegaillart

This comment has been minimized.

Show comment
Hide comment
@nlegaillart

nlegaillart Apr 1, 2013

I didn't encountered this issue for 3 days now. maybe it was related to my setup after all...I think we can close this one, I'll open another (with included data.php this time) if the problem occurs again.

NB: and thanks a lot for the good work :)

nlegaillart commented Apr 1, 2013

I didn't encountered this issue for 3 days now. maybe it was related to my setup after all...I think we can close this one, I'll open another (with included data.php this time) if the problem occurs again.

NB: and thanks a lot for the good work :)

@nlegaillart nlegaillart closed this Apr 1, 2013

@tontof

This comment has been minimized.

Show comment
Hide comment
@tontof

tontof Apr 1, 2013

Owner

Hope it will not happen again :-)

Owner

tontof commented Apr 1, 2013

Hope it will not happen again :-)

@nlegaillart

This comment has been minimized.

Show comment
Hide comment
@nlegaillart

nlegaillart Apr 3, 2013

hi Tontof,

unfortunatly it happened again this morning. this time the repeted error message is:

[03-Apr-2013 07:31:48 Europe/Paris] PHP Notice: unserialize() [function.unserialize]: Error at offset 58210 of 567667 bytes in /home/www/kf/index.php on line 6846

here is the bzip2'ed data.php:

http://dl.free.fr/kyl9SMH1f

regards,

nlegaillart commented Apr 3, 2013

hi Tontof,

unfortunatly it happened again this morning. this time the repeted error message is:

[03-Apr-2013 07:31:48 Europe/Paris] PHP Notice: unserialize() [function.unserialize]: Error at offset 58210 of 567667 bytes in /home/www/kf/index.php on line 6846

here is the bzip2'ed data.php:

http://dl.free.fr/kyl9SMH1f

regards,

@nlegaillart nlegaillart reopened this Apr 3, 2013

@tontof

This comment has been minimized.

Show comment
Hide comment
@tontof

tontof Apr 3, 2013

Owner

Your problem is not link with data corruption on writing. I can gzinflate your data. I will try to search why it can not be unserialized. How much feed do you have ? It seems that your data has 249 xml url but I find a lot of duplicate. For example, there is "la Tourmentine" which appears a lot of time in your data.

I really don't know what happens as it seems related to php data conversion problem.

Are you a shaarli user ? If so, did you have that problem ?
What update option are you using ? (javascript, manual update, cron)
Did you notice when this problem happens exactly ? (I mean when you were reading your feeds, when you were updating, when you were signing in ?)

Owner

tontof commented Apr 3, 2013

Your problem is not link with data corruption on writing. I can gzinflate your data. I will try to search why it can not be unserialized. How much feed do you have ? It seems that your data has 249 xml url but I find a lot of duplicate. For example, there is "la Tourmentine" which appears a lot of time in your data.

I really don't know what happens as it seems related to php data conversion problem.

Are you a shaarli user ? If so, did you have that problem ?
What update option are you using ? (javascript, manual update, cron)
Did you notice when this problem happens exactly ? (I mean when you were reading your feeds, when you were updating, when you were signing in ?)

@tontof

This comment has been minimized.

Show comment
Hide comment
@tontof

tontof Apr 3, 2013

Owner

One idea is an encoding/representation problem with php.
At the end of your data.php, you have
:2�aFy8gDA0k7DF:{ia:2s:10at10:"64879083:101t10atee";
which is indeed not unserializable
while I have into my data :
s:12:"1pXdLQZlExjw";a:2:{i:0;i:1364966392;i:1;i:1;}
which is unserialized as :
[1pXdLQZlExjw] => Array
(
[0] => 1364966392
[1] => 1
)

What is your server configuration ? windows ? linux ?

Owner

tontof commented Apr 3, 2013

One idea is an encoding/representation problem with php.
At the end of your data.php, you have
:2�aFy8gDA0k7DF:{ia:2s:10at10:"64879083:101t10atee";
which is indeed not unserializable
while I have into my data :
s:12:"1pXdLQZlExjw";a:2:{i:0;i:1364966392;i:1;i:1;}
which is unserialized as :
[1pXdLQZlExjw] => Array
(
[0] => 1364966392
[1] => 1
)

What is your server configuration ? windows ? linux ?

@nlegaillart

This comment has been minimized.

Show comment
Hide comment
@nlegaillart

nlegaillart Apr 3, 2013

This is strange. each time I import my OPML file, it say about 300 feeds where imported. maybe I didn't delete the data.php file before last import.

for "la Tourmentine", it's my personal website, but it should not appear more than twice, one for en and one for fr language.

I don't use shaarli, I'm using javascript update, using "public" mode but with "htpasswd" protection. the server is a FreeBSD one, with lighttpd, php-fpm and varnish. maybe the problem is related to one of theses things.

do you think the encoding issue come from the opml feed? I'll have a look at it.

nlegaillart commented Apr 3, 2013

This is strange. each time I import my OPML file, it say about 300 feeds where imported. maybe I didn't delete the data.php file before last import.

for "la Tourmentine", it's my personal website, but it should not appear more than twice, one for en and one for fr language.

I don't use shaarli, I'm using javascript update, using "public" mode but with "htpasswd" protection. the server is a FreeBSD one, with lighttpd, php-fpm and varnish. maybe the problem is related to one of theses things.

do you think the encoding issue come from the opml feed? I'll have a look at it.

@tontof

This comment has been minimized.

Show comment
Hide comment
@tontof

tontof Apr 3, 2013

Owner

Try to send me your opml at tontof on free.fr, I will look at it and test it on my own KrISS feed.
Well, as you are the only person that reporting that issue, I guess the problem is related to your KrISS feed configuration with public mode and .htpasswd (as I think, there are few people using this). Don't know if lighttpd, php-fpm and varnish can be also link to your problem.

I think you should not be able to import opml file if data.php is corrupted. So you will definitely have to remove data.php file before re-import all your opml file.

Owner

tontof commented Apr 3, 2013

Try to send me your opml at tontof on free.fr, I will look at it and test it on my own KrISS feed.
Well, as you are the only person that reporting that issue, I guess the problem is related to your KrISS feed configuration with public mode and .htpasswd (as I think, there are few people using this). Don't know if lighttpd, php-fpm and varnish can be also link to your problem.

I think you should not be able to import opml file if data.php is corrupted. So you will definitely have to remove data.php file before re-import all your opml file.

@nlegaillart

This comment has been minimized.

Show comment
Hide comment
@nlegaillart

nlegaillart Apr 3, 2013

I sent you my opml file, thanks. no hurry there, I don't think this issue is top-priority :)

nlegaillart commented Apr 3, 2013

I sent you my opml file, thanks. no hurry there, I don't think this issue is top-priority :)

@Nodd

This comment has been minimized.

Show comment
Hide comment
@Nodd

Nodd Apr 8, 2013

BAM ! :'(
It just happened to me right now. I have no error message but 0 feeds (I had around 200). Luckily I have an recent opml export somewhere.

Here's my server config : http://www.kontrebasse.123.fr/phpinfo.php
I use KrIss with JS autoupdate in private mode. I have the last dev commit (fe0659c). Do you want an email with data.php ?

Nodd commented Apr 8, 2013

BAM ! :'(
It just happened to me right now. I have no error message but 0 feeds (I had around 200). Luckily I have an recent opml export somewhere.

Here's my server config : http://www.kontrebasse.123.fr/phpinfo.php
I use KrIss with JS autoupdate in private mode. I have the last dev commit (fe0659c). Do you want an email with data.php ?

@tontof

This comment has been minimized.

Show comment
Hide comment
@tontof

tontof Apr 8, 2013

Owner

Arf... Yes if you've kept the corrupted data.php file. Send to me at tontof on free.fr

Owner

tontof commented Apr 8, 2013

Arf... Yes if you've kept the corrupted data.php file. Send to me at tontof on free.fr

@tontof

This comment has been minimized.

Show comment
Hide comment
@tontof

tontof Apr 20, 2013

Owner

@nlegaillart did you have the problem since last time you've sent me your opml ?
Because I did not have problem on my tests with your opml.

As there was an encoding problem on version 6, it may be the origin of the problem.
I close and if this happen again with version 7 we will reopen it.

Keep in touch

Owner

tontof commented Apr 20, 2013

@nlegaillart did you have the problem since last time you've sent me your opml ?
Because I did not have problem on my tests with your opml.

As there was an encoding problem on version 6, it may be the origin of the problem.
I close and if this happen again with version 7 we will reopen it.

Keep in touch

@tontof tontof closed this Apr 20, 2013

@nlegaillart

This comment has been minimized.

Show comment
Hide comment
@nlegaillart

nlegaillart Apr 21, 2013

unfortunatly I still have this problem, in fact it happened again an hour ago when I upgraded to Kriss Feed 7.

however, I moved the files to a different hosting, while keeping them on the first machine, and I only lost my feeds once on the new one.

as it seems that I'm the only one to get this problem, I'll keep testing by my side. when I'll find if it's related to my setup or to a broken feed, I'll keep you informed.

btw, is there some kind of debug mode, to see what feeds are processed?

thanks a lot for your support!

nlegaillart commented Apr 21, 2013

unfortunatly I still have this problem, in fact it happened again an hour ago when I upgraded to Kriss Feed 7.

however, I moved the files to a different hosting, while keeping them on the first machine, and I only lost my feeds once on the new one.

as it seems that I'm the only one to get this problem, I'll keep testing by my side. when I'll find if it's related to my setup or to a broken feed, I'll keep you informed.

btw, is there some kind of debug mode, to see what feeds are processed?

thanks a lot for your support!

@tontof

This comment has been minimized.

Show comment
Hide comment
@tontof

tontof Apr 21, 2013

Owner

Sorry, there is no debug mode yet. Don't hesitate to send my your data.php when you have problem. Last time I told you there was a strange thing with "la Tourmentine". Did you try to remove it to see if it's occur again ?

Owner

tontof commented Apr 21, 2013

Sorry, there is no debug mode yet. Don't hesitate to send my your data.php when you have problem. Last time I told you there was a strange thing with "la Tourmentine". Did you try to remove it to see if it's occur again ?

@Kourai

This comment has been minimized.

Show comment
Hide comment
@Kourai

Kourai Jun 17, 2013

Just happened to me! TWICE!! :(

1st time, I decided to re-install from scratch krissFeed.
So I used the latest commit f8491a1.
I managed to unserialize some of data.php, and so I was able to get a list of my feed urls.
So this morning, I was adding all my feed to my brand new krissfeed.... And I just got the same problem again! :(

I'm using a mutualized hosting on phpnet.org
I'm also using Shaarli, and I have no problem with it so far.

I'll send you my data.php file by email! and if you need more information you can just ask! :)
Thank you!

Kourai commented Jun 17, 2013

Just happened to me! TWICE!! :(

1st time, I decided to re-install from scratch krissFeed.
So I used the latest commit f8491a1.
I managed to unserialize some of data.php, and so I was able to get a list of my feed urls.
So this morning, I was adding all my feed to my brand new krissfeed.... And I just got the same problem again! :(

I'm using a mutualized hosting on phpnet.org
I'm also using Shaarli, and I have no problem with it so far.

I'll send you my data.php file by email! and if you need more information you can just ask! :)
Thank you!

@tontof

This comment has been minimized.

Show comment
Hide comment
@tontof

tontof Jun 17, 2013

Owner

Are you using the cron ?

I'm wondering why I've never had this problem before while I use kriss feed several times by day every day.
As I do not use the cron maybe it could be linked with this (concurrent access maybe).

Owner

tontof commented Jun 17, 2013

Are you using the cron ?

I'm wondering why I've never had this problem before while I use kriss feed several times by day every day.
As I do not use the cron maybe it could be linked with this (concurrent access maybe).

@Kourai

This comment has been minimized.

Show comment
Hide comment
@Kourai

Kourai Jun 17, 2013

I am indeed using the cron, but I was using the url http://yggz.org/KrISSfeed.
but i also have a subdomain http://rss.yggz.org redirecting on this folder.
I usually access my krissfeed using http://rss.yggz.org

I dont know if it helps you...

And thanks for the data file! :)

Kourai commented Jun 17, 2013

I am indeed using the cron, but I was using the url http://yggz.org/KrISSfeed.
but i also have a subdomain http://rss.yggz.org redirecting on this folder.
I usually access my krissfeed using http://rss.yggz.org

I dont know if it helps you...

And thanks for the data file! :)

@tontof

This comment has been minimized.

Show comment
Hide comment
@tontof

tontof Sep 17, 2013

Owner

@nlegaillart : Suite à http://tontof.net/index.php?2013/09/09/20/30/28-enfin-la-version-8#28 le problème n'est pas encore résolu avec la nouvelle version mais j'ai fait une nouvelle modif importante : #281 (comment) que je fais tester à quelqu'un qui a le problème très régulièrement. Je devrais donc savoir rapidement si le problème est corrigé ou pas !
Merci du retour

Owner

tontof commented Sep 17, 2013

@nlegaillart : Suite à http://tontof.net/index.php?2013/09/09/20/30/28-enfin-la-version-8#28 le problème n'est pas encore résolu avec la nouvelle version mais j'ai fait une nouvelle modif importante : #281 (comment) que je fais tester à quelqu'un qui a le problème très régulièrement. Je devrais donc savoir rapidement si le problème est corrigé ou pas !
Merci du retour

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment