ndarilek / dokuwiki-sandstorm

2 stars 4 forks source link

Can't force rebuilding the search/tag index #12

Open hendrikweisser opened 7 years ago

hendrikweisser commented 7 years ago

I've just started using DokuWiki through Sandstorm. Thank you very much for the port! I have automatically generated pages based on existing data and populated the wiki with them (by copying the files to the "pages" directory). The problem was that tags (from the "tag" plug-in) were not indexed, so the corresponding "topic" listings were empty. Unfortunately I don't see a working way to force reindexing. Two options are suggested on the "tag" website:

  1. I've tried the "searchindex" plug-in, but that doesn't seem to do anything - it just says "Finding pages..." seemingly forever. The Sandstorm debug log for the app shows this error message:
    2017/07/26 09:02:33 [error] 696#0: *120 FastCGI sent in stderr: "PHP message: PHP Warning:  require_once(/var/lib/dokuwiki/inc/init.php): failed to open stream: No such file or directory in /var/lib/dokuwiki/lib/plugins/searchindex/ajax.php on line 16
    PHP message: PHP Fatal error:  require_once(): Failed opening required '/var/lib/dokuwiki/inc/init.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/lib/dokuwiki/lib/plugins/searchindex/ajax.php on line 16" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "POST /lib/plugins/searchindex/ajax.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "1c9f3ed7d37491b24be05c09a1762211.172.20.1.3.xip.io:6080"
  2. The "indexer.php" script was hard to find (it's in /opt/sandstorm/var/sandstorm/apps/[random]/opt/app/dokuwiki/bin). Running it in Dokuwiki's "data" directory gave this error:
    <!DOCTYPE html>
    <html>
    <head><title>DokuWiki Setup Error</title></head>
    <body style="font-family: Arial, sans-serif">
    <div style="width:60%; margin: auto; background-color: #fcc;
                border: 1px solid #faa; padding: 0.5em 1em;">
        <h1 style="font-size: 120%">DokuWiki Setup Error</h1>
        <p>The datadir ('pages') at /pages is not found, isn't accessible or writable.
                You should check your config and permission settings.
                Or maybe you want to <a href="install.php">run the
                installer</a>?</p>
    </div>
    </body>
    </html>

    I think the problem may be the separation between where the script is stored (in "sandstorm/apps") and where the data is stored (in "sandstorm/grains").

I had to manually visit every page in the wiki to have it picked up by the indexer, so it would be nice if a fix for this were available.

ndarilek commented 7 years ago

Unfortunately, I don't see myself maintaining this anymore. I built it with the intent of using it with La Reunion Cooperative, a housing co-op needing both internal apps for project management/collaboration, and an externally-hosted wiki. We're up to our eyeballs maintaining this place, and managing 2 servers would be a bit of a heavy ask. Unfortunately, Sandstorm's limitations hindered us and created confusion for non-technical end users, and we had to abandon the attempt. As such, I don't see myself needing Sandstorm-hosted DokuWiki anytime soon.

Since I'm not using this, I don't have the time to maintain it. I can accept PRs fixing this and other issues, and can hand off the app to someone else with the time to put in the work if anyone volunteers.

ocdtrekkie commented 4 years ago

@hendrikweisser I know it's been a long time, but I figured I'd note that @johnbintz is now maintaining the DokuWiki package for Sandstorm. If you are still using the app (or want to return to it) and still have an issue, you can open it at https://github.com/johnbintz/dokuwiki-sandstorm