This question about Configuration: More info required

Can't rename a web

I seem to have a problem renaming a web. I'm renaming it through the Preferences --> Rename, move or delete this web section, and it comes up with
Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.

exec of path %INFILE|F% -resize %PCNT|S%x%PCNT|S% %OUTFILE|F% failed: No such file or directory

I checked the error log, which shows:
| 2012-06-21T01:51:52Z warning | exec of /usr/bin/convert %INFILE&vbar;F% -resize %PCNT&vbar;S%x%PCNT&vbar;S% %OUTFILE&vbar;F% failed: No such file or directory at /var/www/foswiki/lib/Foswiki/Sandbox.pm line 547.

I checked all the directory permissions and they are right. The web doesn't have any security set in the preferences.

Does anyone know what is happening here?

-- WilliamMorgan - 21 Jun 2012

This looks like there is the ImagePlugin or something similar is being called to try to resize an image. usr/bin/convert is part of the ImageMagick tool IIRC. You might try checking your installed plugins and temporarily disable anything using ImageMagick and try the rename again. If you can identify which plugin might be causing this issue, please open a Task against it with some information on how to recreate the issue.

-- GeorgeClark - 21 Jun 2012

I uninstalled the "MS office as html" plugin, which had the only ImageMagick reference. Tried again, but no luck. Same problem.

-- WilliamMorgan - 21 Jun 2012

I actually just solved this. In the rename section, there were a lot of topics that had references to the web that I was changing. I unticked them and it worked.

I found this a little confusing, as when I checked the pages that had references, they didn't have page references, just web references. The name of the web was HelpME and there are several references to HelpME throughout the other webs (but they are not referring to the web, they are referring to another system). It is like Foswiki didn't find the links, it found every instance of the term.

Was this because HelpME is a wikiword?

-- WilliamMorgan - 21 Jun 2012

I'm not entirely sure. The rename back-reference code is quite complex. If possible, could you post an example of the reference that should not have been renamed?

I can't quite understand why the rename process would be attempting to call "convert". I don't recall any core dependency on /usr/bin/convert, and from what I can find that is definitely part of ImageMagick.

Did your apache error logs show more of a stack trace that indicates where the call is being made?

-- GeorgeClark - 21 Jun 2012

I'll try to get hold of it. Access has been restricted.

-- WilliamMorgan - 22 Jun 2012

Getting a similar thing from the apache error log.

[Thu Jun 21 11:51:52 2012] [error] [client ] exec of /usr/bin/convert %INFILE|F% -resize %PCNT|S%x%PCNT|S% %OUTFILE|F% failed: No such file or directory at /var/www/foswiki/lib/Foswiki/Sandbox.pm line 547., referer: http://wiki/bin/rename/HelpME/WebPreferences?action=renameweb [Thu Jun 21 11:51:52 2012] [error] [client 10...] File does not exist: /var/www/foswiki/favicon.ico

-- WilliamMorgan - 22 Jun 2012

Only other thing I can think of is there is some extension installed that is interfering. Could you check your InstalledPlugins page. Do any extensions install the afterRenameHandler. It appears that something is attempting to update some images during the rename.

-- GeorgeClark - 15 Oct 2012
 

QuestionForm edit

Subject Configuration
Extension
Version Foswiki 1.1.4
Status More info required
Related Topics
Topic revision: r7 - 15 Oct 2012, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy