getting file upload failures and the log is saying that it cant find /upload/submit_async.
I found an upload folder in /mymediacorepath/mediacore/templates/upload/ but there was not a submit_async folder. I added that directory jsut to see and, no joy.
the file will go through the upload process but then it says saving the file failed.
what am i missing here?
File Upload Fails-mod_wsgi
10 posts Started 12 years ago by scottf@tvw.org Latest reply from lalo
-
-
Log file if anyone can help..
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] Error - <class 'mediacore.lib.storage.StorageError'>: (u'Unusable file or URL provided.', None, None)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] URL: http://mcore.tvwmedia.net/TVW_media/upload/submit
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/usr/local/lib/python2.6/dist-packages/WebError-0.10.3-py2.6.egg/weberror/errormiddleware.py', line 162 in __call__
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] app_iter = self.application(environ, sr_checker)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/opt/MediaCore-0.9.0/mediacore/config/middleware.py', line 78 in __call__
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] return self.app(environ, start_response)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/usr/local/lib/python2.6/dist-packages/ToscaWidgets-0.9.9-py2.6.egg/tw/core/middleware.py', line 43 in __call__
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] return self.wsgi_app(environ, start_response)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/usr/local/lib/python2.6/dist-packages/ToscaWidgets-0.9.9-py2.6.egg/tw/core/middleware.py', line 68 in wsgi_app
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] resp = req.get_response(self.application)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/usr/local/lib/python2.6/dist-packages/WebOb-1.0-py2.6.egg/webob/request.py', line 937 in get_response
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] application, catch_exc_info=False)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/usr/local/lib/python2.6/dist-packages/WebOb-1.0-py2.6.egg/webob/request.py', line 906 in call_application
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] app_iter = application(self.environ, start_response)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/usr/local/lib/python2.6/dist-packages/ToscaWidgets-0.9.9-py2.6.egg/tw/core/resource_injector.py', line 68 in _injector
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] resp = req.get_response(app)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/usr/local/lib/python2.6/dist-packages/WebOb-1.0-py2.6.egg/webob/request.py', line 937 in get_response
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] application, catch_exc_info=False)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/usr/local/lib/python2.6/dist-packages/WebOb-1.0-py2.6.egg/webob/request.py', line 906 in call_application
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] app_iter = application(self.environ, start_response)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/usr/local/lib/python2.6/dist-packages/repoze.who-1.0.18-py2.6.egg/repoze/who/middleware.py', line 107 in __call__
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] app_iter = app(environ, wrapper.wrap_start_response)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/usr/local/lib/python2.6/dist-packages/Beaker-1.5.4-py2.6.egg/beaker/middleware.py', line 152 in __call__
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] return self.wrap_app(environ, session_start_response)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/usr/local/lib/python2.6/dist-packages/Routes-1.12.3-py2.6.egg/routes/middleware.py', line 131 in __call__
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] response = self.app(environ, start_response)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/usr/local/lib/python2.6/dist-packages/Pylons-0.10-py2.6.egg/pylons/wsgiapp.py', line 124 in __call__
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] response = self.dispatch(controller, environ, start_response)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/usr/local/lib/python2.6/dist-packages/Pylons-0.10-py2.6.egg/pylons/wsgiapp.py', line 327 in dispatch
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] return controller(environ, start_response)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/usr/local/lib/python2.6/dist-packages/Pylons-0.10-py2.6.egg/pylons/controllers/core.py', line 225 in __call__
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] response = self._dispatch_call()
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/usr/local/lib/python2.6/dist-packages/Pylons-0.10-py2.6.egg/pylons/controllers/core.py', line 176 in _dispatch_call
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] response = self._inspect_call(func)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/usr/local/lib/python2.6/dist-packages/Pylons-0.10-py2.6.egg/pylons/controllers/core.py', line 108 in _inspect_call
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] result = self._perform_call(func, args)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/usr/local/lib/python2.6/dist-packages/Pylons-0.10-py2.6.egg/pylons/controllers/core.py', line 60 in _perform_call
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] return func(**args)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/opt/MediaCore-0.9.0/mediacore/lib/decorators.py', line 86 in wrapped_f
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] result = f(*args, **kwargs)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/opt/MediaCore-0.9.0/mediacore/lib/decorators.py', line 234 in validate
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] return self.func(*args, **kwargs)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '<string>', line 2 in submit
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/opt/MediaCore-0.9.0/mediacore/lib/decorators.py', line 575 in autocommit
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] result = func(*args, **kwargs)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '<string>', line 2 in submit
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/opt/MediaCore-0.9.0/mediacore/lib/decorators.py', line 544 in wrapper
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] result = func(*args, **kwargs)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/opt/MediaCore-0.9.0/mediacore/controllers/upload.py', line 160 in submit
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] None, kwargs['file'], kwargs['url'],
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/opt/MediaCore-0.9.0/mediacore/controllers/upload.py', line 193 in save_media_obj
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] media_file = add_new_media_file(media_obj, file=uploaded_file, url=url)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File '/opt/MediaCore-0.9.0/mediacore/lib/storage/__init__.py', line 353 in add_new_media_file
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] raise StorageError(_('Unusable file or URL provided.'), None, None)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] StorageError: (u'Unusable file or URL provided.', None, None)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143]
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143]
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] CGI Variables
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] -------------
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] CONTENT_LENGTH: '-1'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] CONTENT_TYPE: 'multipart/form-data; boundary=----WebKitFormBoundaryycrvgpOx5ffQyi1X; charset=utf-8'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] DOCUMENT_ROOT: '/var/www'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] GATEWAY_INTERFACE: 'CGI/1.1'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] HTTP_ACCEPT: 'application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] HTTP_ACCEPT_ENCODING: 'gzip, deflate'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] HTTP_ACCEPT_LANGUAGE: 'en-us'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] HTTP_CONNECTION: 'keep-alive'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] HTTP_HOST: 'mcore.tvwmedia.net'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] HTTP_ORIGIN: 'http://mcore.tvwmedia.net'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] HTTP_REFERER: 'http://mcore.tvwmedia.net/TVW_media/upload/submit'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] HTTP_USER_AGENT: 'Mozilla/5.0 (iPad; U; CPU OS 4_2_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] PATH: '/usr/local/bin:/usr/bin:/bin'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] PATH_INFO: '/upload/submit'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] PATH_TRANSLATED: '/var/www/upload/submit'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] REMOTE_ADDR: '67.183.188.143'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] REMOTE_PORT: '38637'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] REQUEST_METHOD: 'POST'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] REQUEST_URI: '/TVW_media/upload/submit'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] SCRIPT_FILENAME: '/opt/MediaCore-0.9.0/deployment-scripts/mod_wsgi/mediacore.wsgi'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] SCRIPT_NAME: '/TVW_media'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] SERVER_ADDR: '216.186.43.119'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] SERVER_ADMIN: 'webmaster@localhost'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] SERVER_NAME: 'mcore.tvwmedia.net'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] SERVER_PORT: '80'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] SERVER_PROTOCOL: 'HTTP/1.1'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] SERVER_SIGNATURE: '<address>Apache/2.2.14 (Ubuntu) Server at mcore.tvwmedia.net Port 80</address>\\n'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] SERVER_SOFTWARE: 'Apache/2.2.14 (Ubuntu)'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143]
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143]
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] WSGI Variables
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] --------------
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] application: <mediacore.config.middleware.FastCGIScriptStripperMiddleware object at 0x7fb07e0e69d0>
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] beaker.get_session: <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x7fb07e0ddf50>>
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] beaker.session: {'_accessed_time': 1300934692.2085581, '_creation_time': 1300934692.2085581}
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] mod_wsgi.application_group: 'mcore.tvwmedia.net|/tvw_media'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] mod_wsgi.callable_object: 'application'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] mod_wsgi.listener_host: ''
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] mod_wsgi.listener_port: '80'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] mod_wsgi.process_group: 'mcore'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] mod_wsgi.reload_mechanism: '1'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] mod_wsgi.script_reloading: '1'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] mod_wsgi.version: (2, 8)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] paste.cookies: (<SimpleCookie: >, '')
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] paste.registry: <paste.registry.Registry object at 0x7fb07eee1610>
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] paste.throw_errors: True
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] pylons.action_method: <bound method UploadController.submit of <mediacore.controllers.upload.UploadController object at 0x7fb07ee2a590>>
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] pylons.controller: <mediacore.controllers.upload.UploadController object at 0x7fb07ee2a590>
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] pylons.environ_config: {'session': 'beaker.session', 'cache': 'beaker.cache'}
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] pylons.pylons: <pylons.util.PylonsContext object at 0x7fb07eee1510>
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] pylons.routes_dict: {'action': u'submit', 'controller': u'upload'}
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] repoze.who.logger: None
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] repoze.who.plugins: {'form': <FriendlyFormPlugin 140396005843152>, 'main_identifier': <FriendlyFormPlugin 140396005843152>, 'authorization_md': <repoze.what.middleware.AuthorizationMetadata object at 0x7fb07e0e6150>, 'cookie': <AuthTktCookiePlugin 140396005843088>, 'sqlauth': <repoze.who.plugins.sa.SQLAlchemyAuthenticatorPlugin object at 0x7fb07e0e6050>, 'sql_user_md': <repoze.who.plugins.sa.SQLAlchemyUserMDPlugin object at 0x7fb07e0e6110>}
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] routes.route: <routes.route.Route object at 0x7fb07df54850>
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] routes.url: <routes.util.URLGenerator object at 0x7fb07eee1f10>
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] toscawidgets.framework: <tw.mods.pylonshf.PylonsHostFramework object at 0x7fb07e0e6950>
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] toscawidgets.javascript.require_once: False
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] toscawidgets.prefix: '/toscawidgets'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] webob._parsed_post_vars: (MultiDict([('name', 'Trst'), ('email', 'Test@test.com'), ('title', 'Tet'), ('description', 'Test'), ('url', '')]), <FakeCGIBody at 0x7fb07ee2a110 viewing MultiDict([('na...'')])>)
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] webob._parsed_query_vars: (GET([]), '')
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] webob.adhoc_attrs: {'errors': 'ignore', 'language': 'en-us'}
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] wsgi process: 'Multithreaded'
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] wsgi.file_wrapper: <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7fb07eedb918>
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] wsgiorg.routing_args: (<routes.util.URLGenerator object at 0x7fb07eee1f10>, {'action': u'submit', 'controller': u'upload'})
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] ------------------------------------------------------------
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143]
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] <p>Additionally an error occurred while sending the <weberror.reporter.EmailReporter object at 0x7fb07eeae910> report:
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143]
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143]
Traceback (most recent call last): [Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File "/usr/local/lib/python2.6/dist-packages/WebError-0.10.3-py2.6.egg/weberror/errormiddleware.py", line 450, in send_report [Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] rep.report(exc_data) [Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File "/usr/local/lib/python2.6/dist-packages/WebError-0.10.3-py2.6.egg/weberror/reporter.py", line 45, in report [Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] server = smtplib.SMTP(self.smtp_server) [Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File "/usr/lib/python2.6/smtplib.py", line 239, in __init__ [Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] (code, msg) = self.connect(host, port) [Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File "/usr/lib/python2.6/smtplib.py", line 295, in connect [Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] self.sock = self._get_socket(host, port, self.timeout) [Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File "/usr/lib/python2.6/smtplib.py", line 273, in _get_socket [Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] return socket.create_connection((port, host), timeout) [Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] File "/usr/lib/python2.6/socket.py", line 514, in create_connection [Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] raise error, msg [Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] error: [Errno 111] Connection refused [Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143]
[Wed Mar 23 19:44:52 2011] [error] [client 67.183.188.143] </p>
-
We've received a bunch of upload-related bugs this week and will be figuring out what the issue is here and seeing if we can find a patch next week.
-
Thanks Jeremy, we will be patiently waiting. As an FYI, I ran the dev server with paster and the upload did work. Something with mod_wsgi?
-
Did you edit the storage engines in the admin storage settings panel? You need to have a "Local File Storage" engine for file uploads to work. If you deleted it, be sure to re-add it.
-
I did add an engine for an rtmp server, but the local file storage does indeed still exist. maybe i should specify explicitly the path(which is currently the default)?
-
Would not that be the problem, the facilities are new, and no editing was done. The error is affecting the installations in three different domains. No error log, upload the local file was not removed or re-added, such as the default installation. Even removing and redoing the installation in all three areas follows not enabling the upload button in admin.
-
Interesting... I'll have one of our guys investigate this further.
-
Hello, I managed to settle here, separating caches and sessions in their respective directories. Coincidence or not, after changing the problem was resolved. Upload back to work.
-
Hi,
i have the same problem and can't upload videos / images..
WebApp Error: <class 'mediacore.lib.storage.StorageError'>:
I also tried to seperate the cache and session folder but the problem is still there.
But it's only when I try to upload vidoes or images for external vidoes.When I try to upload the logo or the Backgorund it works fine.
Reply
You must log in to post.