+ Reply to Thread
Results 1 to 4 of 4

Thread: GET /@api/deki/files/ returns HTTP error 501

  1. #1

    Default GET /@api/deki/files/ returns HTTP error 501

    Hi,
    Strangely one of our Dekiwiki web sites
    http://www.cbr.su.se
    stopped showing images. But on the same server the other websites works just fine, for instance:
    http://www.edict-project.eu

    For instance after browsing to http://www.cbr.su.se with the chromium web browser I see this
    in the log file:
    [root@virt-movitz ~]# grep everyone1 /var/log/httpd/dekiwiki-access_log | tail -1
    10.0.1.1 - - [23/Apr/2012:11:39:27 +0200] "GET /@api/deki/files/37/=cbr_everyone1_narrow.png?size=webview HTTP/1.1" 501 309
    [root@virt-movitz ~]# yum update
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * extras: ftp.sunet.se
    * rpmforge: ftp-stud.fht-esslingen.de
    Setting up Update Process
    No Packages marked for Update
    [root@virt-movitz ~]# cat /etc/issue
    CentOS release 6.2 (Final)
    Kernel \r on an \m
    [root@virt-movitz ~]# grep baseurl /etc/yum.repos.d/mindtouch.repo
    baseurl=http://repo.mindtouch.com/CentOS_5/

    Maybe the mismatch Centos 5 != Centos 6 could mean something?

    But then again, why would it fail for just one of the web sites?

    I don't get any ideas out of reading
    /var/log/httpd/dekiwiki-error_log

    Do you have any idea how I could debug this?

    cheers,
    Erik

  2. #2
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    This appears more like a configuration issue. The two cases where the API return 501 for image operations are:
    1) the API is not configured to allow this file extension to be converted for preview (check files/imagemagick-extensions under advanced config)
    2) the image is too big (check files/imagemagick-max-size under advanced config)
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

  3. #3

    Default

    Thanks for the reply!

    I couldn't find any configuration keys with the names files/imagemagick-extensions or files/imagemagick-max-size in the "Advanced config".

    If I type this command:
    [root@virt-movitz ~]# ls -lSr /var/www/dekiwiki/attachments-cbr/*.res/1.bin

    I see file sizes ranging from a few kB to 3 Mb.

    I found something else. Could this be a problem?

    [root@virt-movitz ~]# rpm -qc mindtouch | grep AdminSetting
    /var/www/dekiwiki/AdminSettings.php
    [root@virt-movitz ~]# ls /var/www/dekiwiki/AdminSettings.php
    ls: cannot access /var/www/dekiwiki/AdminSettings.php: No such file or directory

    cheers,
    Erik

  4. #4
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    As far as I recall, AdminSettings is an optional file.

    The default values for the config key are listed here: http://developer.mindtouch.com/en/kb...eys_and_values

    files/imagemagick-extensions = bmp, jpg, jpeg, png, gif
    files/imagemagick-max-size = 2000000

    So, if your png is larger than 2M bytes, it won't generate a thumbnail for it.
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts