13365: Add example error messages and highlight the changes.
authorPeter Amstutz <pamstutz@veritasgenetics.com>
Thu, 3 May 2018 15:13:38 +0000 (11:13 -0400)
committerPeter Amstutz <pamstutz@veritasgenetics.com>
Thu, 3 May 2018 15:13:38 +0000 (11:13 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz@veritasgenetics.com>

doc/_config.yml
doc/admin/upgrading.html.textile.liquid

index 4766e3f5898f6fb90d76719edd96da87ed273437..78b11b769206fb49b5a1dbe50f2b282933a734af 100644 (file)
@@ -145,10 +145,10 @@ navbar:
   admin:
     - Topics:
       - admin/index.html.textile.liquid
+      - admin/upgrading.html.textile.liquid
       - install/cheat_sheet.html.textile.liquid
       - user/topics/arvados-sync-groups.html.textile.liquid
       - admin/merge-remote-account.html.textile.liquid
-      - admin/upgrading.html.textile.liquid
       - install/migrate-docker19.html.textile.liquid
   installguide:
     - Overview:
index b3bf66d3c4c8edaba9a3925324f06a71a87cf189..7a330a9638a094caee14e4b159bc1caa70598572 100644 (file)
@@ -1,7 +1,7 @@
 ---
 layout: default
 navsection: admin
-title: "Upgrading Arvados"
+title: "Upgrading Arvados and Release notes"
 ...
 
 {% comment %}
@@ -61,16 +61,30 @@ steps:
       baseCommand: echo
 </pre>
 
-To fix this, add the appropriate @secondaryFiles@ section to @toplevel_input@
+When run, this produces an error like this:
 
 <pre>
-class: Workflow
+cwltool ERROR: [step step1] Cannot make job: Missing required secondary file 'hello.txt.idx' from file object: {
+    "basename": "hello.txt",
+    "class": "File",
+    "location": "keep:ade9d0e032044bd7f58daaecc0d06bc6+51/hello.txt",
+    "size": 0,
+    "nameroot": "hello",
+    "nameext": ".txt",
+    "secondaryFiles": []
+}
+</pre>
+
+To fix this error, add the appropriate @secondaryFiles@ section to @toplevel_input@
+
+<notextile>
+<pre><code>class: Workflow
 cwlVersion: v1.0
 inputs:
-  toplevel_input:
+  <span class="userinput">toplevel_input:
     type: File
     secondaryFiles:
-      - .idx
+      - .idx</span>
 outputs: []
 steps:
   step1:
@@ -87,7 +101,8 @@ steps:
             - .idx
       outputs: []
       baseCommand: echo
-</pre>
+</code></pre>
+</notextile>
 
 h4. Secondary files on default file inputs
 
@@ -107,24 +122,32 @@ outputs: []
 baseCommand: echo
 </pre>
 
-To fix this, manually upload the primary and secondary files to keep and explicitly declare @secondaryFiles@ on the default primary file:
+When run, this produces an error like this:
 
 <pre>
-class: CommandLineTool
+2018-05-03 10:58:47 cwltool ERROR: Unhandled error, try again with --debug for more information:
+  [Errno 2] File not found: u'hello.txt.idx'
+</pre>
+
+To fix this, manually upload the primary and secondary files to keep and explicitly declare @secondaryFiles@ on the default primary file:
+
+<notextile>
+<pre><code>class: CommandLineTool
 inputs:
   step_input:
     type: File
     secondaryFiles:
       - .idx
-    default:
+    <span class="userinput">default:
       class: File
       location: keep:4d8a70b1e63b2aad6984e40e338e2373+69/hello.txt
       secondaryFiles:
        - class: File
-         location: keep:4d8a70b1e63b2aad6984e40e338e2373+69/hello.txt.idx
+         location: keep:4d8a70b1e63b2aad6984e40e338e2373+69/hello.txt.idx</span>
 outputs: []
 baseCommand: echo
-</pre>
+</code></pre>
+</notextile>
 
 This bug will be fixed in an upcoming release of Arvados.