Hi,
I'm running MediaDrop 0.11dev through Nginx and WSGI on FreeBSD 10.1.
Everything seems to be working great bar one thing, I have a video in mp4 format of site 2.5GB and am trying to upload it onto my server, a Xeon E5 with 8GB and 30TB storage.
Uploading files of 1GB is fine but for some reason this particular file keeps "Timing out"?
I have increased the "file body" limit in nginx.conf to 5GB so this should be a piece of cake however I do get an email with this:
[code]
Module weberror.errormiddleware:162 in __call__
>> app_iter = self.application(environ, sr_checker)
Module mediadrop.config.middleware:102 in __call__
>> return self.app(environ, start_response)
Module tw.core.middleware:46 in __call__
>> return self.wsgi_app(environ, start_response)
Module tw.core.middleware:72 in wsgi_app
>> resp = req.get_response(self.application)
Module webob.request:1296 in send
Module webob.request:1260 in call_application
Module tw.core.resource_injector:70 in _injector
>> resp = req.get_response(app)
Module webob.request:1296 in send
Module webob.request:1260 in call_application
Module repoze.who.middleware:107 in __call__
>> app_iter = app(environ, wrapper.wrap_start_response)
Module mediadrop.lib.auth.middleware:134 in __call__
>> return self.app(environ, start_response)
Module beaker.middleware:152 in __call__
>> return self.wrap_app(environ, session_start_response)
Module routes.middleware:131 in __call__
>> response = self.app(environ, start_response)
Module pylons.wsgiapp:103 in __call__
>> response = self.dispatch(controller, environ, start_response)
Module pylons.wsgiapp:313 in dispatch
>> return controller(environ, start_response)
Module pylons.controllers.core:214 in __call__
>> response = self._dispatch_call()
Module pylons.controllers.core:164 in _dispatch_call
>> response = self._inspect_call(func)
Module pylons.controllers.core:107 in _inspect_call
>> result = self._perform_call(func, args)
Module pylons.controllers.core:57 in _perform_call
>> return func(**args)
Module mediadrop.lib.decorators:86 in wrapped_f
>> result = f(*args, **kwargs)
Module mediadrop.lib.decorators:282 in validate
>> return self.func(*args, **kwargs)
Module mediadrop.controllers.admin.media:2 in add_file
Module mediadrop.lib.decorators:610 in autocommit
>> result = func(*args, **kwargs)
Module mediadrop.controllers.admin.media:2 in add_file
Module mediadrop.lib.decorators:551 in wrapper
>> result = func(*args, **kwargs)
Module mediadrop.controllers.admin.media:307 in add_file
>> media_file = add_new_media_file(media, file, url)
Module mediadrop.lib.storage.api:377 in add_new_media_file
>> raise StorageError('Engine %r returned no unique ID.', engine)
StorageError: ('Engine %r returned no unique ID.', <mediadrop.lib.storage.remoteurls.RemoteURLStorage object at 0x80d7fb7d0>)
CGI Variables
AUTH_TYPE 'cookie'
CONTENT_TYPE 'application/x-www-form-urlencoded; charset=UTF-8'
DOCUMENT_ROOT '/usr/local/www/mediadrop/mediadrop/public'
HTTP_ACCEPT 'application/json'
HTTP_ACCEPT_ENCODING 'gzip, deflate'
HTTP_ACCEPT_LANGUAGE 'en-US,en;q=0.8'
HTTP_CONNECTION 'keep-alive'
HTTP_CONTENT_LENGTH '4'
HTTP_CONTENT_TYPE 'application/x-www-form-urlencoded; charset=UTF-8'
HTTP_COOKIE '_ga=GA1.2.641547572.1399494445; authtkt="1689a62644c294dace03054ec5ab5dc8558b45e41!userid_type:int"; authtkt="1689a62644c294dace03054ec5ab5dc8558b45e41!userid_type:int"'
HTTP_HOST 'FQDN'
HTTP_ORIGIN 'FQDN'
HTTP_REFERER 'FQDN/admin/media/new'
HTTP_USER_AGENT 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.125 Safari/537.36'
HTTP_X_REQUEST 'JSON'
HTTP_X_REQUESTED_WITH 'XMLHttpRequest'
PATH_INFO '/admin/media/new/add_file'
REMOTE_ADDR '<IP>'
REMOTE_PORT '54537'
REMOTE_USER 1
REMOTE_USER_DATA 'userid_type:int'
REMOTE_USER_TOKENS ['']
REQUEST_METHOD 'POST'
REQUEST_URI '/admin/media/new/add_file'
SERVER_NAME 'FQDN'
SERVER_PORT '80'
SERVER_PROTOCOL 'HTTP/1.1'
WSGI Variables
application <mediadrop.config.middleware.FastCGIScriptStripperMiddleware object at 0x80cc72350>
beaker.get_session <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x80cc728d0>>
beaker.session {'_accessed_time': 1435269790.162982, '_creation_time': 1435269790.162982}
mediadrop.perm <mediadrop.lib.auth.api.UserPermissions object at 0x80d74a450>
paste.cookies (<SimpleCookie: _ga='GA1.2.641547572.1399494445' authtkt='1689a62644c294dace03054ec5ab5dc8558b45e41!userid_type:int'>, '_ga=GA1.2.641547572.1399494445; authtkt="1689a62644c294dace03054ec5ab5dc8558b45e41!userid_type:int"; authtkt="1689a62644c294dace03054ec5ab5dc8558b45e41!userid_type:int"')
paste.registry <paste.registry.Registry object at 0x80d6f2ad0>
paste.throw_errors True
pylons.action_method <bound method MediaController.add_file of <mediadrop.controllers.admin.media.MediaController object at 0x80d7dd350>>
pylons.controller <mediadrop.controllers.admin.media.MediaController object at 0x80d7dd350>
pylons.environ_config {'session': 'beaker.session', 'cache': 'beaker.cache'}
pylons.log_debug False
pylons.pylons <pylons.util.PylonsContext object at 0x80d7dd790>
pylons.routes_dict {'action': u'add_file', 'controller': u'admin/media', 'id': u'new'}
repoze.who.identity <repoze.who identity (hidden, dict-like) at 34557017352>
repoze.who.logger None
repoze.who.plugins {'main_identifier': <MediaDropLoginForm 34574117136>, 'auth_by_username': <mediadrop.lib.auth.middleware.MediaDropAuthenticatorPlugin object at 0x80cc72850>, 'cookie': <MediaDropCookiePlugin 34574117328>, 'form': <MediaDropLoginForm 34574117136>}
routes.route <routes.route.Route object at 0x80bd40490>
routes.url <routes.util.URLGenerator object at 0x80d74a650>
toscawidgets.framework <tw.mods.pylonshf.PylonsHostFramework object at 0x80cc72ed0>
toscawidgets.javascript.require_once False
toscawidgets.prefix '/toscawidgets'
uwsgi.node 'wiki.optiplex-networks.com'
uwsgi.version '2.0.10'
webob._body_file (<_io.BufferedReader>, <cStringIO.StringI object at 0x80d6df0b8>)
webob._parsed_post_vars (MultiDict([('url', u'')]), <_io.BufferedReader>)
webob._parsed_query_vars (GET([]), '')
webob.adhoc_attrs {'errors': 'ignore'}
webob.is_body_readable True
webob.is_body_seekable False
wsgi process 'Multiprocess'
wsgi.file_wrapper <built-in function uwsgi_sendfile>
wsgiorg.routing_args (<routes.util.URLGenerator object at 0x80d74a650>, {'action': u'add_file', 'controller': u'admin/media', 'id': u'new'})
[/code]
I have tried with both Firefox and Chromium however, none seem to work; I get to about 80% before "timeout" occurs. I have set Nginx to time=0 in the config as well.
Quickly in addition, since my server is still in "testing" phase and not exposed to web yet, is there a way of preventing anonymous uploads of files? So that one needs to be logged in, in order to post anything?
As a counter measure for spam and misuse...?
Many thanks.