<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic [Solved] Upload file 404 Not Found &amp;quot; No disk space available&amp;quot; in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/solved-upload-file-404-not-found-quot-no-disk-space-available/m-p/121050#M33215</link>
    <description>&lt;P&gt;Hi everyone, in Alfresco 6.1 Community, I sent to /alfresco/service/api/upload file and metadata, as I sent in Alfresco 4.2 (I migrated from this).&lt;/P&gt;&lt;P&gt;Now the response is:&lt;/P&gt;&lt;PRE&gt;{
    "status": {
        "code": 404,
        "name": "Not Found",
        "description": "Requested resource is not available."
    },
    "message": " No disk space available",
    "exception": "",
    "callstack": [],
    "server": "Community v6.1.2 (r589dc49b-b205) schema 13,001",
    "time": "May 24, 2021 10:56:43 AM"
}&lt;/PRE&gt;&lt;P&gt;I have 69GB free space and 200KB is my file.&lt;/P&gt;&lt;P&gt;This is the request:&lt;/P&gt;&lt;PRE&gt;curl -L -X POST 'http://my.host.com:8080/alfresco/service/api/upload' \
-H 'Authorization: Basic YWRtaW46YWRtaW4=' \
-F 'filedata=@"/path/to/file"' \
-F 'filename="filename"' \
-F 'description="some description"' \
-F 'siteid="my-fite"' \
-F 'containerid="documentLibrary"' \
-F 'uploaddirectory="Path/to/folder"' \
-F 'contenttype="my:content"'&lt;/PRE&gt;&lt;P&gt;I generate Path/to/folder calling POST /service/api/metadata/node/workspace/SpacesStore and I see the new folder in /share webapp.&lt;/P&gt;&lt;P&gt;There are no error in log file:&lt;/P&gt;&lt;PRE&gt; 2021-05-21 17:11:43,692  DEBUG [web.scripts.RepositoryContainer] [http-nio-8080-exec-20] Current authentication: unauthenticated
 2021-05-21 17:11:43,692  DEBUG [web.scripts.RepositoryContainer] [http-nio-8080-exec-20] Authentication required: user
 2021-05-21 17:11:43,692  DEBUG [web.scripts.RepositoryContainer] [http-nio-8080-exec-20] Guest login requested: false
 2021-05-21 17:11:43,700  DEBUG [scripts.servlet.RemoteUserAuthenticatorFactory] [http-nio-8080-exec-20] Extracted external user ID from request: ad***
 2021-05-21 17:11:43,700  DEBUG [web.scripts.RepositoryContainer] [http-nio-8080-exec-20] Authentication: authenticated as admin
 2021-05-21 17:11:43,701  DEBUG [web.scripts.RepositoryContainer] [http-nio-8080-exec-20] Creating Transactional Response for ReadWrite transaction; buffersize=4096
 2021-05-21 17:11:43,701  DEBUG [web.scripts.RepositoryContainer] [http-nio-8080-exec-20] Begin retry transaction block: required,readwrite
 2021-05-21 17:11:43,702  DEBUG [jscript.RhinoScriptProcessor.calls] [http-nio-8080-exec-20] upload.post.js Start
 2021-05-21 17:11:43,710  DEBUG [jscript.RhinoScriptProcessor.calls] [http-nio-8080-exec-20] upload.post.js End 8 ms
 2021-05-21 17:11:43,712  DEBUG [web.scripts.RepositoryContainer] [http-nio-8080-exec-20] End retry transaction block: required,readwrite
 2021-05-21 17:11:43,713  DEBUG [web.scripts.RepositoryContainer] [http-nio-8080-exec-20] Authentication reset: unauthenticated&lt;/PRE&gt;&lt;P&gt;Alfresco runs in bare metal, without screen.&lt;/P&gt;&lt;P&gt;How can I do troubleshooting?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 24 May 2021 09:30:51 GMT</pubDate>
    <dc:creator>gsardisco</dc:creator>
    <dc:date>2021-05-24T09:30:51Z</dc:date>
    <item>
      <title>[Solved] Upload file 404 Not Found " No disk space available"</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/solved-upload-file-404-not-found-quot-no-disk-space-available/m-p/121050#M33215</link>
      <description>&lt;P&gt;Hi everyone, in Alfresco 6.1 Community, I sent to /alfresco/service/api/upload file and metadata, as I sent in Alfresco 4.2 (I migrated from this).&lt;/P&gt;&lt;P&gt;Now the response is:&lt;/P&gt;&lt;PRE&gt;{
    "status": {
        "code": 404,
        "name": "Not Found",
        "description": "Requested resource is not available."
    },
    "message": " No disk space available",
    "exception": "",
    "callstack": [],
    "server": "Community v6.1.2 (r589dc49b-b205) schema 13,001",
    "time": "May 24, 2021 10:56:43 AM"
}&lt;/PRE&gt;&lt;P&gt;I have 69GB free space and 200KB is my file.&lt;/P&gt;&lt;P&gt;This is the request:&lt;/P&gt;&lt;PRE&gt;curl -L -X POST 'http://my.host.com:8080/alfresco/service/api/upload' \
-H 'Authorization: Basic YWRtaW46YWRtaW4=' \
-F 'filedata=@"/path/to/file"' \
-F 'filename="filename"' \
-F 'description="some description"' \
-F 'siteid="my-fite"' \
-F 'containerid="documentLibrary"' \
-F 'uploaddirectory="Path/to/folder"' \
-F 'contenttype="my:content"'&lt;/PRE&gt;&lt;P&gt;I generate Path/to/folder calling POST /service/api/metadata/node/workspace/SpacesStore and I see the new folder in /share webapp.&lt;/P&gt;&lt;P&gt;There are no error in log file:&lt;/P&gt;&lt;PRE&gt; 2021-05-21 17:11:43,692  DEBUG [web.scripts.RepositoryContainer] [http-nio-8080-exec-20] Current authentication: unauthenticated
 2021-05-21 17:11:43,692  DEBUG [web.scripts.RepositoryContainer] [http-nio-8080-exec-20] Authentication required: user
 2021-05-21 17:11:43,692  DEBUG [web.scripts.RepositoryContainer] [http-nio-8080-exec-20] Guest login requested: false
 2021-05-21 17:11:43,700  DEBUG [scripts.servlet.RemoteUserAuthenticatorFactory] [http-nio-8080-exec-20] Extracted external user ID from request: ad***
 2021-05-21 17:11:43,700  DEBUG [web.scripts.RepositoryContainer] [http-nio-8080-exec-20] Authentication: authenticated as admin
 2021-05-21 17:11:43,701  DEBUG [web.scripts.RepositoryContainer] [http-nio-8080-exec-20] Creating Transactional Response for ReadWrite transaction; buffersize=4096
 2021-05-21 17:11:43,701  DEBUG [web.scripts.RepositoryContainer] [http-nio-8080-exec-20] Begin retry transaction block: required,readwrite
 2021-05-21 17:11:43,702  DEBUG [jscript.RhinoScriptProcessor.calls] [http-nio-8080-exec-20] upload.post.js Start
 2021-05-21 17:11:43,710  DEBUG [jscript.RhinoScriptProcessor.calls] [http-nio-8080-exec-20] upload.post.js End 8 ms
 2021-05-21 17:11:43,712  DEBUG [web.scripts.RepositoryContainer] [http-nio-8080-exec-20] End retry transaction block: required,readwrite
 2021-05-21 17:11:43,713  DEBUG [web.scripts.RepositoryContainer] [http-nio-8080-exec-20] Authentication reset: unauthenticated&lt;/PRE&gt;&lt;P&gt;Alfresco runs in bare metal, without screen.&lt;/P&gt;&lt;P&gt;How can I do troubleshooting?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 09:30:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/solved-upload-file-404-not-found-quot-no-disk-space-available/m-p/121050#M33215</guid>
      <dc:creator>gsardisco</dc:creator>
      <dc:date>2021-05-24T09:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Upload file 404 Not Found " No disk space available"</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/solved-upload-file-404-not-found-quot-no-disk-space-available/m-p/121051#M33216</link>
      <description>&lt;P&gt;I tried another endpoint to upload file:&lt;/P&gt;&lt;PRE&gt;curl -L -X POST /alfresco/api/-default-/public/alfresco/versions/1/nodes/-root-/children&lt;BR /&gt;-H 'Authorization: Basic YWRtaW46YWRtaW4=' \&lt;BR /&gt;-F 'filename="my-file.pdf"' \&lt;BR /&gt;-F 'description="my-description"' \&lt;BR /&gt;-F 'siteid="my-site"' \&lt;BR /&gt;-F 'containerid="documentLibrary"' \&lt;BR /&gt;-F 'uploaddirectory="Path/to/folder"' \&lt;BR /&gt;-F 'contenttype="my:content"' \&lt;BR /&gt;-F 'filedata=@"/path/to/my-file.pdf"'&lt;/PRE&gt;&lt;P&gt;The response is the same:&lt;/P&gt;&lt;PRE&gt;{
    "error": {
        "errorKey": "No disk space available",
        "statusCode": 409,
        "briefSummary": "04250013 No disk space available",
        "stackTrace": "For security reasons the stack trace is no longer displayed, but the property is kept for previous versions",
        "descriptionURL": "https://api-explorer.alfresco.com"
    }
}&lt;/PRE&gt;&lt;P&gt;I see in souce code, that problem is parse request.&lt;/P&gt;&lt;P&gt;This instruction&lt;/P&gt;&lt;PRE&gt;List&amp;lt;FileItem&amp;gt; fileItems = upload.parseRequest(req);&lt;/PRE&gt;&lt;P&gt;return an emply list and the caller throw an exception:&lt;/P&gt;&lt;PRE&gt;if (formData.getFields().length == 0) {
    throw new ConstraintViolatedException("No disk space available");
}&lt;/PRE&gt;&lt;P&gt;I have another application in the same server, for upload file through form-data and it works fine.&lt;/P&gt;&lt;P&gt;Can you help me to understand where is the problem?&lt;BR /&gt;Do I need to add some configuration in Alfresco?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class="simple-translate-button isShow"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="simple-translate-panel "&gt;&lt;DIV class="simple-translate-result-wrapper"&gt;&lt;DIV class="simple-translate-move"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="simple-translate-result-contents"&gt;&lt;P class="simple-translate-result"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="simple-translate-candidate"&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 May 2021 09:52:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/solved-upload-file-404-not-found-quot-no-disk-space-available/m-p/121051#M33216</guid>
      <dc:creator>gsardisco</dc:creator>
      <dc:date>2021-05-25T09:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Upload file 404 Not Found " No disk space available"</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/solved-upload-file-404-not-found-quot-no-disk-space-available/m-p/121052#M33217</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Its doesn't looks like a space issue but in alfresco 6.2 certain param has been changed.&lt;/P&gt;&lt;P&gt;Here is the sample curl request for uploading a file .&lt;/P&gt;&lt;PRE&gt;$ curl -X POST 
-F filedata=@test.txt 
-F "name=somefile.txt" 
-F "nodeType=cm:content" 
-F "cm:title=My text" 
-F "cm:description=My text document description" 
-F "relativePath=My Folder" 
-H 'Authorization: Basic VElDS0VUXzA4ZWI3ZTJlMmMxNzk2NGNhNTFmMGYzMzE4NmNjMmZjOWQ1NmQ1OTM=' http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/-root-/children &lt;/PRE&gt;&lt;P&gt;If you are using a custom file type then here is the sample request and body for that,&lt;/P&gt;&lt;PRE&gt;$ curl -X POST -F filedata=@test.txt 
-F "name=somefile.txt" 
-F "nodeType=acme:document" 
-F "acme:documentId=DOC001" 
-F "aspectNames=acme:securityClassified" 
-F "acme:securityClassification=Public" 
-F "cm:title=My text" 
-F "cm:description=My custom text document description" 
-F "relativePath=My Custom Folder" 
-H 'Authorization: Basic VElDS0VUXzA4ZWI3ZTJlMmMxNzk2NGNhNTFmMGYzMzE4NmNjMmZjOWQ1NmQ1OTM=' http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/-root-/children &lt;/PRE&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/content-services/6.1/develop/rest-api-guide/folders-files/#uploadfilecustomtype" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/content-services/6.1/develop/rest-api-guide/folders-files/#uploadfilecustomtype&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-Arjun&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 17:29:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/solved-upload-file-404-not-found-quot-no-disk-space-available/m-p/121052#M33217</guid>
      <dc:creator>arjunmony</dc:creator>
      <dc:date>2021-05-25T17:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Upload file 404 Not Found " No disk space available"</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/solved-upload-file-404-not-found-quot-no-disk-space-available/m-p/121053#M33218</link>
      <description>&lt;P&gt;Hi Arjun, thank for your answare.&lt;/P&gt;&lt;P&gt;I had Tomcat misconfiguration.&lt;BR /&gt;I actived allowCasualMultipartParsing="true" in context.xml. Deleted this, API upload back to work.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 09:02:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/solved-upload-file-404-not-found-quot-no-disk-space-available/m-p/121053#M33218</guid>
      <dc:creator>gsardisco</dc:creator>
      <dc:date>2021-05-26T09:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Upload file 404 Not Found " No disk space available"</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/solved-upload-file-404-not-found-quot-no-disk-space-available/m-p/121054#M33219</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/85005"&gt;@gsardisco&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for updating your thread and I've accepted the answer on your behalf - it's really helpful to other users when a correct answer is accepted as a solution.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 10:01:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/solved-upload-file-404-not-found-quot-no-disk-space-available/m-p/121054#M33219</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2021-05-26T10:01:49Z</dc:date>
    </item>
  </channel>
</rss>

