#26 — Confusing failure "Is a directory" at root of FS Mount

by Justin Ryan last modified Feb 21, 2009 08:48 PM
State Unconfirmed
Version: 1.1.0b1
Area Functionality
Issue type Bug
Severity Medium
Submitted by Justin Ryan
Submitted on Dec 17, 2007
Responsible
Target release:
This happens with svn trunk and 1.1.0b1, on Plone3 / Zope 2.10 - if 1.1.0b1 is patched to import CMFCore.permission as CMFCorePermission in a couple of files, which may be the only change to trunk - I haven't checked.

Essentially, the render fails with an "Is a directory" error from a call to open('...','w') in CMFDeployment.segments.storage.ContentStorageManager.storeDescriptor. Maybe something slightly different at the root, or with containers in general, from Plone2 to Plone3 has caused this? I wouldn't expect the code to be designed to open() a directory. :)

Here's the tasty tb - actually, the entire zope log output from the running of this profile:

-- snip --

2007-12-16 17:59:21.413989500 /home/zope/qutang-zope210/parts/productdistros/CMFDeployment/ContentMastering.py:324: DeprecationWarning: changeSkin should be called with 'REQUEST' as second argument. The BBB code will be removed in CMF 2.3.
2007-12-16 17:59:21.413994500 portal.changeSkin( self.skin_name )
2007-12-16 17:59:21.663180500 /home/zope/qutang-zope210/parts/zope/lib/python/Products/PageTemplates/Expressions.py:123: DeprecationWarning: portal_groups.listGroups is deprecated and will be removed in Plone 3.5. Use PAS searchGroups instead
2007-12-16 17:59:21.663185500 ob = ob()
2007-12-16 17:59:21.685124500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/[…]/at-cachekey9226.kss) from sandbox/deployagain/Members
2007-12-16 17:59:21.685861500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/sandbox/deployagain/search_form) from sandbox/deployagain/Members
2007-12-16 17:59:21.686371500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/[…]/execute#documentContent) from sandbox/deployagain/Members
2007-12-16 17:59:21.687419500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/sandbox/deployagain/contact-info) from sandbox/deployagain/Members
2007-12-16 17:59:21.687933500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/sandbox/deployagain/logo.jpg) from sandbox/deployagain/Members
2007-12-16 17:59:21.688462500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/[…]/event-registration-cachekey3322.js) from sandbox/deployagain/Members
2007-12-16 17:59:21.688952500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/[…]/member-cachekey0203.css) from sandbox/deployagain/Members
2007-12-16 17:59:21.689600500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/[…]/@@sharing) from sandbox/deployagain/Members
2007-12-16 17:59:21.690284500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/sandbox/deployagain/sitemap) from sandbox/deployagain/Members
2007-12-16 17:59:21.690921500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/[…]/accessibility-info) from sandbox/deployagain/Members
2007-12-16 17:59:21.691421500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/[…]/kupustyles-cachekey0538.css) from sandbox/deployagain/Members
2007-12-16 17:59:21.691928500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/[…]/@@manage-portlets) from sandbox/deployagain/Members
2007-12-16 17:59:21.692524500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/[…]/dropdown-cachekey9851.js) from sandbox/deployagain/Members
2007-12-16 17:59:21.692995500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/[…]/base-cachekey9686.css) from sandbox/deployagain/Members
2007-12-16 17:59:21.693450500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/[…]/kupunoi18n-cachekey9399.js) from sandbox/deployagain/Members
2007-12-16 17:59:21.693968500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/[…]/folder_contents) from sandbox/deployagain/Members
2007-12-16 17:59:21.694615500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/[…]/plone_control_panel) from sandbox/deployagain/Members
2007-12-16 17:59:21.695273500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/sandbox/deployagain/spinner.gif) from sandbox/deployagain/Members
2007-12-16 17:59:21.696080500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/sandbox/deployagain/favicon.ico) from sandbox/deployagain/Members
2007-12-16 17:59:21.696647500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/sandbox/deployagain) from sandbox/deployagain/Members
2007-12-16 17:59:21.697533500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/sandbox/deployagain/logout) from sandbox/deployagain/Members
2007-12-16 17:59:21.698222500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/sandbox/deployagain/IEFixes.css) from sandbox/deployagain/Members
2007-12-16 17:59:21.698677500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/sandbox/deployagain/dashboard) from sandbox/deployagain/Members
2007-12-16 17:59:21.699189500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/[…]/resourcekukit-cachekey4530.js) from sandbox/deployagain/Members
2007-12-16 17:59:21.699643500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/sandbox/deployagain/author/admin) from sandbox/deployagain/Members
2007-12-16 17:59:21.700124500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/sandbox/deployagain/user.gif) from sandbox/deployagain/Members
2007-12-16 17:59:21.700631500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/[…]/execute#portlet-navigation-tree) from sandbox/deployagain/Members
2007-12-16 17:59:21.701116500 2007-12-16 17:59:21 WARNING [Deployment] [URIResolver] : unknown url (https://zope.qutang.net/[…]/@@manage-content-rules) from sandbox/deployagain/Members
2007-12-16 17:59:21.761137500 File "/home/zope/qutang-zope210/parts/productdistros/CMFDeployment/DeploymentPolicy.py", line 188, in execute
2007-12-16 17:59:21.761140500 pipeline.process( self )
2007-12-16 17:59:21.761141500 File "/home/zope/qutang-zope210/parts/productdistros/CMFDeployment/segments/core.py", line 31, in process
2007-12-16 17:59:21.761226500 context = s.process( self, context )
2007-12-16 17:59:21.761237500 File "/home/zope/qutang-zope210/parts/productdistros/CMFDeployment/segments/core.py", line 63, in process
2007-12-16 17:59:21.761261500 step.process( pipeline, context )
2007-12-16 17:59:21.761272500 File "/home/zope/qutang-zope210/parts/productdistros/CMFDeployment/segments/storage.py", line 86, in add
2007-12-16 17:59:21.761388500 self.storeDescriptor( content_path, descriptor )
2007-12-16 17:59:21.761399500 File "/home/zope/qutang-zope210/parts/productdistros/CMFDeployment/segments/storage.py", line 134, in storeDescriptor
2007-12-16 17:59:21.761421500 fh = open(location, 'w')
2007-12-16 17:59:21.763369500 2007-12-16 17:59:21 ERROR Zope.SiteErrorLog https://zope.qutang.net/[…]/execute
2007-12-16 17:59:21.763371500 Traceback (innermost last):
2007-12-16 17:59:21.763373500 Module ZPublisher.Publish, line 119, in publish
2007-12-16 17:59:21.763375500 Module ZPublisher.mapply, line 88, in mapply
2007-12-16 17:59:21.763377500 Module ZPublisher.Publish, line 42, in call_object
2007-12-16 17:59:21.763379500 Module Products.CMFDeployment.DeploymentPolicy, line 197, in execute
2007-12-16 17:59:21.763386500 IOError: [Errno 21] Is a directory: '/var/www/deploytest/test/'

-- snip --

In the steps, I have a couple of notes just to make sure that if something in the zmi or otherwise, or the default behaviour, changes drastically, it may be clear to you without strapping up a test rig yourself.
Steps to reproduce:
install via QI
add policy (i call it 'default' and can only choose incremental style)
add default catalog content source in 'identification/sources' tab (incremental catalog breaks on add)
organization/fs mount point to /var/www/deploytest/test (parent is owned by zope:zope)
cmf mount / is fine
restricted default (need to put portal_* tools here?)
composites none selected
resources: none ?
uris: default
rendering/rules: defaults for at container rule (at-container), at content rule (at-content) good enough?
user tab: defaults
transports: empty, want it local
transforms: disabled (default)

No responses can be added.