Menu

#371 fr.wikipedia.org Site not found

v2.4.*
closed
gnosygnu
http_server (7)
v2.4.3.2
2015-04-22
2015-04-18
echo0
No

Hello,

I just downloaded fr.wikipedia.org and installed it with the files :
Xowa_frwiki_2014-11-24_wiki.7z
Xowa_frwiki_2014-08-04_images_001.7z
Xowa_frwiki_2014-08-04_images_002.7z
Xowa_frwiki_2014-08-04_images_003.7z
Xowa_frwiki_2014-11-24_images_update.7z

When I browse to :
http://localhost:8080/fr.wikipedia.org/
It says Site not found. Check address please, or see console log.
null

If I browse to this address again it will just display a blank page.

xowa is started with the command line :
java -Xmx256m -jar /xowa/xowa_linux.jar --app_mode http_server
the version used is the latest 2.4.2.1

Discussion

  • gnosygnu

    gnosygnu - 2015-04-18

    Thanks! I think this is the same as #368 fr.wiktionary.org home page not found . Basically, the HTTP server didn't have code to find the Main Page, so it would behave unpredictably.

    I tested now with the v2.4.3 RC, and it works. Let me know if I misunderstood anything above.

     
  • gnosygnu

    gnosygnu - 2015-04-18
    • labels: --> http_server
    • status: new --> done
    • Expected release: --> v2.4.3
     
  • echo0

    echo0 - 2015-04-18

    If you tested in v2.4.3RC and you were able to use fr.wikipedia.org so indeed it's corrected. Thanks.

     
  • gnosygnu

    gnosygnu - 2015-04-20
    • status: done --> closed
     
  • echo0

    echo0 - 2015-04-20

    Still not working with version 2.4.3.1 : when I browse to http://localhost:8080/fr.wikipedia.org/

    HTTP Server started: Navigate to http://localhost:8080
    Request: GET / HTTP/1.1
    Command output:
    xowa.api.html.page.toggles.get(%27offline-wikis%27).visible%20=%20%27y%27;
    error retrieving page. Please make sure your url is of the form: http://localhost:8080/home/wiki/Main_Page
    java.lang.NullPointerException
    at gplx.dbs.cfgs.Db_cfg_tbl.<init>(Unknown Source)
    at gplx.fsdb.Fsdb_db_file.<init>(Unknown Source)
    at gplx.fsdb.Fsdb_db_mgrv1.new_db(Unknown Source)
    at gplx.fsdb.Fsdb_db_mgr
    v1.<init>(Unknown Source)
    at gplx.fsdb.Fsdb_db_mgr_.new_detect(Unknown Source)
    at gplx.xowa.files.Xow_file_mgr.Init_file_mgr_by_load(Unknown Source)
    at gplx.xowa.Xowe_wiki.Init_db_mgr(Unknown Source)
    at gplx.xowa.Xowe_wiki.Init_wiki(Unknown Source)
    at gplx.xowa.Xowe_wiki.Init_assert(Unknown Source)
    at gplx.xowa.servers.http.Http_server_wkr_.Assert_main_page(Unknown Source)
    at gplx.xowa.servers.http.HttpRequest.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:744)

     

    Last edit: echo0 2015-04-20
  • gnosygnu

    gnosygnu - 2015-04-21

    Thanks!!! Based on your report, I did some more investigating, and can confirm this is a bug. In fact, it was serious enough for me to make another build tonight: https://sourceforge.net/projects/xowa/files/v2.4.3.2/

    I describe more below. Thanks again for sticking with it!


    The defect was introduced in v2.4.1.1 with the new .xowa database layout. It required the presence of a folder called fsdb.user. These databases are for saving user-downloaded files. On your system, you're missing /xowa/file/fr.wikipedia.org/fsdb.user. The files at archive.org deliberately omitted these files, because I did not want to distribute files that might overwrite the users.

    Unfortunately, v2.4.1.1 requires these files and fails outright if they don't exist. I didn't notice this, because I do have these files (as would any user who was using a version prior to v2.4.1.1). But users who started with v2.4.1.1 and who just downloaded the databases would always fail.

    I corrected this in v2.4.3.2 by creating the databases if they don't exist. I tested that the databases do create, and that fr.wikipedia.org loads

    Again, thanks a lot!

     
  • gnosygnu

    gnosygnu - 2015-04-21
    • status: closed --> done
    • Expected release: v2.4.3 --> v2.4.3.2
     
  • echo0

    echo0 - 2015-04-21

    It's working in v2.4.3.2 thanks.

     
  • gnosygnu

    gnosygnu - 2015-04-22
    • status: done --> closed
     
  • gnosygnu

    gnosygnu - 2015-04-22

    Cool! Thanks for the confirm!

     

Anonymous
Anonymous

Add attachments
Cancel