TritonDataCenter / manta-thoth

Thoth is a Manta-based system for core and crash dump management
16 stars 7 forks source link

`thoth ticket DUMP TICKET` is failing for me #134

Closed trentm closed 8 years ago

trentm commented 8 years ago
$ set | grep THOTH
THOTH_USER=thoth
$ set | grep MANTA
MANTA_KEY_ID=b3:f0:a1:6c:18:3b:47:63:ae:6e:57:22:74:71:d4:bc
MANTA_URL=https://us-east.manta.joyent.com
MANTA_USER=trent.mick

$ thoth ticket 2dd3aa5c541a386a6596a4812b032df0 ZAPI-721
thoth: using database at 165.225.169.30:28015 (configured from Manta)
thoth: adding key to job e34dbdc6-6fc3-4301-fe52-f7fc45d1ee14
thoth: processing job e34dbdc6-6fc3-4301-fe52-f7fc45d1ee14
thoth: waiting for completion of job e34dbdc6-6fc3-4301-fe52-f7fc45d1ee14
thoth: job e34dbdc6-6fc3-4301-fe52-f7fc45d1ee14 failed: { id: 'e34dbdc6-6fc3-4301-fe52-f7fc45d1ee14',
  name: '',
  state: 'done',
  cancelled: false,
  inputDone: true,
  transient: false,
  stats: { errors: 1, outputs: 0, retries: 0, tasks: 0, tasksDone: 0 },
  timeCreated: '2016-01-20T17:08:12.968Z',
  timeDone: '2016-01-20T17:08:13.388Z',
  timeArchiveStarted: '2016-01-20T17:08:13.529Z',
  phases:
   [ { exec: 'cat > /tmp/tmp.json <<EOF\n{ "ticket": "ZAPI-721"} \nEOF\ncat $MANTA_INPUT_FILE /tmp/tmp.json | json --deep-merge > /tmp/new.json;mput -f /tmp/new.json $MANTA_INPUT_OBJECT ;/opt/custom/thoth/node_modules/manta-thoth/bin/thoth load /tmp/new.json || mln $MANTA_INPUT_OBJECT /thoth/stor/thoth/`basename $(dirname $MANTA_INPUT_OBJECT)`-unindexed.json',
       type: 'map',
       assets: [Object],
       init: 'echo \'{"db": {"host":"165.225.169.30","port":28015,"db":"thoth","authKey":"doogle","table":"dumps"}}\' > ~/.thoth.config.json; cd / ; tar xzf /assets//thoth/public/assets/thoth.tar.gz' } ],
  options: {} }
[09:08:13 trentm@danger0:~]
$ echo $?
1

Some details on that job:

[trent.mick@us-east /trent.mick/jobs/e34dbdc6-6fc3-4301-fe52-f7fc45d1ee14]$ ls
err.txt
fail.txt
in.txt
job.json
out.txt
stor
[trent.mick@us-east /trent.mick/jobs/e34dbdc6-6fc3-4301-fe52-f7fc45d1ee14]$ cat err.txt
{"phaseNum":"0","input":"/info.json","p0input":"/info.json","what":"phase 0: input \"/info.json\"","code":"ResourceNotFoundError","message":"malformed object name: \"/info.json\""}
[trent.mick@us-east /trent.mick/jobs/e34dbdc6-6fc3-4301-fe52-f7fc45d1ee14]$ cat fail.txt
/info.json
[trent.mick@us-east /trent.mick/jobs/e34dbdc6-6fc3-4301-fe52-f7fc45d1ee14]$ cat in.txt
/info.json
davepacheco commented 8 years ago

I think this is a dup of #118.

trentm commented 8 years ago

@davepacheco Ah, yah. Sorry I didn't search open tickets first. Definitely looks like a dupe.