I am having trouble publishing a form on our website. I keep hitting an error in odk validate. I have found that it hits this error when the returncode is 1.
I can not find what returncode 1 means but I believe it is related to permissions or ACLs. I have reconfigured the permissions on my directories to no avail.
Please see snapshot from log below. I added a print statement to ODK_validate’s init.py file to get the error code as shown below.
if timeout:
return ["XForm took to long to completely validate."]
else:
if returncode > 0: # Error invalid
print ('return code:', returncode)
raise ODKValidateError(
'ODK Validate Errors:\n' + _cleanup_errors(stderr))
elif returncode == 0:
if stderr:
warnings.append('ODK Validate Warnings:\n' + stderr)
return warnings
elif returncode < 0:
return ["Bad return code from ODK Validate."]
System details:
OS: Ubuntu 16.04
Web framework: Django 1.8.7
Database server: postgresql 9.3.21
Web server: nginx (running in conjunction with uwsgi)
ODK validate 1.4.9
Please assist, how can I avoid this error.