Upgrade to INN 2.5 and history problem

Julien ÉLIE julien at trigofacile.com
Thu May 15 05:23:19 UTC 2008


Hi,

In the French newsgroup for news servers, someone tried to upgrade
his INN 2.4.3 to INN 2.5 and encountered a problem (<g0g2hg$g3n$1 at netfinity.fr>).

He successfully managed to upgrade two news servers.
But the third does not work:  he tried twice and when he starts rc.news,
he has:

    May 15 02:43:19 news innd: can't ftello /var/news/db/history Value too large for defined data type

It is the only server he has with a huge history:

    news at news:/usr/local$ ls -lh /var/news/db/history
    -rw-rw-r--  1 news root 3.2G 2008-05-15 02:49 /var/news/db/history

He compiled INN with "--enable-largefiles".


Do you know where the problem could be?



In history/hisv6/hisv6.c, it looks as though the issue came after
successfully opening and fseeking to end the file:

    if ((h->writefp = Fopen(h->histpath, mode, INND_HISTORY)) == NULL) {
        hisv6_seterror(h, concat("can't fopen history ",
                      h->histpath, " ",
                      strerror(errno), NULL));
        hisv6_closefiles(h);
        goto fail;
    }
    if (fseeko(h->writefp, 0, SEEK_END) == -1) {
        hisv6_seterror(h, concat("can't fseek to end of ",
                      h->histpath, " ",
                      strerror(errno), NULL));
        hisv6_closefiles(h);
        goto fail;
    }
        h->offset = ftello(h->writefp);
    if (h->offset == -1) {
        hisv6_seterror(h, concat("can't ftello ", h->histpath, " ",
                      strerror(errno), NULL));
        hisv6_closefiles(h);
        goto fail;
    }


-- 
Julien ÉLIE

« Hâte-toi de bien vivre et songe que chaque jour
  est à lui seul une vie. » (Sénèque)



More information about the inn-workers mailing list