Failing local build with panic


#1

So I got a job working on CirceCI, but I can’t get it working locally.

The config.yml file:

version: 2
jobs:
  build:
    docker:
      # specify the version
      - image: circleci/golang:1.10

    working_directory: /go/src/github.com/mattnenterprise/tic-tac-toe
    steps:
      - checkout

      # specify any bash command here prefixed with `run: `
      - run: echo 'hello'

Local Output:

$ circleci build

====>> Spin up Environment
Build-agent version 0.0.5895-01cdb92 (2018-05-29T20:07:10+0000)
Starting container circleci/golang:1.10
  using image circleci/golang@sha256:9ec47660dc3e2e941cc6a2f8baf76d22b3ab00cbe6c2bb50b0cc0c254ee7a48a

Using build environment variables:
  BASH_ENV=/tmp/.bash_env-localbuild-1527782862
  CI=true
  CIRCLECI=true
  CIRCLE_BRANCH=master
  CIRCLE_BUILD_NUM=
  CIRCLE_JOB=build
  CIRCLE_NODE_INDEX=0
  CIRCLE_NODE_TOTAL=1
  CIRCLE_REPOSITORY_URL=https://github.com/mattnenterprise/tic-tac-toe
  CIRCLE_SHA1=1daf2e9a08cd8e53f576b87ce52c98a99308b059
  CIRCLE_SHELL_ENV=/tmp/.bash_env-localbuild-1527782862
  CIRCLE_WORKING_DIRECTORY=/go/src/github.com/mattnenterprise/tic-tac-toe

panic: interface conversion: interface {} is nil, not string

goroutine 1 [running]:
github.com/circleci/build-agent/runner.userInitiaitedHalt(0xf8f200, 0xc420432720, 0xa78d5a)
        /go/src/github.com/circleci/build-agent/runner/basic_runner.go:22 +0x10e
github.com/circleci/build-agent/runner.(*BasicRunner).Run(0xc42030ef90, 0xf91140, 0xc42032bb60, 0xf8f200, 0xc420432720)
        /go/src/github.com/circleci/build-agent/runner/basic_runner.go:34 +0x4d
github.com/circleci/build-agent/runner.(*Runner).Run(0xc420424e00, 0xf91140, 0xc42032bb60, 0x0, 0x0)
        /go/src/github.com/circleci/build-agent/runner/runner.go:87 +0x97b
github.com/circleci/build-agent/cmd.runStep(0xc420345840, 0x7ffeb7b82ed9, 0x30, 0x7ffeb7b82eb3, 0x14, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /go/src/github.com/circleci/build-agent/cmd/internalStep.go:92 +0x3fc
github.com/circleci/build-agent/cmd.newInternalStepCmd.func1(0xc42029ed80, 0xc42032b800, 0x0, 0x6, 0x0, 0x0)
        /go/src/github.com/circleci/build-agent/cmd/internalStep.go:28 +0x49
github.com/circleci/build-agent/vendor/github.com/spf13/cobra.(*Command).execute(0xc42029ed80, 0xc42032b6e0, 0x6, 0x6, 0xc42029ed80, 0xc42032b6e0)
        /go/src/github.com/circleci/build-agent/vendor/github.com/spf13/cobra/command.go:650 +0x449
github.com/circleci/build-agent/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc42029e6c0, 0x14d7800, 0xc42029eb40, 0xc4203457e0)
        /go/src/github.com/circleci/build-agent/vendor/github.com/spf13/cobra/command.go:729 +0x2d4
github.com/circleci/build-agent/vendor/github.com/spf13/cobra.(*Command).Execute(0xc42029e6c0, 0xc420084000, 0x1533c66bd185e4a8)
        /go/src/github.com/circleci/build-agent/vendor/github.com/spf13/cobra/command.go:688 +0x2b
github.com/circleci/build-agent/cmd.Execute()
        /go/src/github.com/circleci/build-agent/cmd/root.go:56 +0x27
main.main()
        /go/src/github.com/circleci/build-agent/main.go:14 +0x104
====>> Error executing build steps
Error: Unexpected error running build task: Internal Error - runner failed with exit code: 2

Step failed
Task failed
Error: Internal Error - runner failed with exit code: 2

#2

That error looks like an actual bug that CircleCI would have to look into. The only thing you can do is to try earlier/later versions of the base image, to see if that affects it.


#3

I looked for the repo on github for the build agent, but I couldn’t find it. I’m guessing it is private. I looked into using an earlier built agent but couldn’t find a way to do that.


#4

No, I meant adjusting this: circleci/golang:1.10. I assume that affects the version of Go that the project runs on? It could be a bug in Go.


#5

I tried

circleci/golang:1.9

and

circleci/golang:1.8

they are giving the same error.


#6

Getting this same error with image: circleci/golang:1.10.


#7

I just got this with image: circleci/ruby:2.5.1-node-browsers and it happens on other ruby images (2.5, 2.4.4).

panic: interface conversion: interface {} is nil, not string

goroutine 1 [running]:
github.com/circleci/build-agent/runner.userInitiaitedHalt(0xf8f200, 0xc4204749c0, 0xa78d5a)
	/go/src/github.com/circleci/build-agent/runner/basic_runner.go:22 +0x10e
github.com/circleci/build-agent/runner.(*BasicRunner).Run(0xc4204f2f90, 0xf91140, 0xc420363bc0, 0xf8f200, 0xc4204749c0)
	/go/src/github.com/circleci/build-agent/runner/basic_runner.go:34 +0x4d
github.com/circleci/build-agent/runner.(*Runner).Run(0xc420455500, 0xf91140, 0xc420363bc0, 0x0, 0x0)
	/go/src/github.com/circleci/build-agent/runner/runner.go:87 +0x97b
github.com/circleci/build-agent/cmd.runStep(0xc42037d7e0, 0x7fff3cea3d41, 0x30, 0x7fff3cea3d1b, 0x14, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/go/src/github.com/circleci/build-agent/cmd/internalStep.go:92 +0x3fc
github.com/circleci/build-agent/cmd.newInternalStepCmd.func1(0xc4202ced80, 0xc4203637a0, 0x0, 0x6, 0x0, 0x0)
	/go/src/github.com/circleci/build-agent/cmd/internalStep.go:28 +0x49
github.com/circleci/build-agent/vendor/github.com/spf13/cobra.(*Command).execute(0xc4202ced80, 0xc420363680, 0x6, 0x6, 0xc4202ced80, 0xc420363680)
	/go/src/github.com/circleci/build-agent/vendor/github.com/spf13/cobra/command.go:650 +0x449
github.com/circleci/build-agent/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc4202ce6c0, 0x14d7800, 0xc4202ceb40, 0xc42037d780)
	/go/src/github.com/circleci/build-agent/vendor/github.com/spf13/cobra/command.go:729 +0x2d4
github.com/circleci/build-agent/vendor/github.com/spf13/cobra.(*Command).Execute(0xc4202ce6c0, 0xc42009e000, 0x15419713f92d4524)
	/go/src/github.com/circleci/build-agent/vendor/github.com/spf13/cobra/command.go:688 +0x2b
github.com/circleci/build-agent/cmd.Execute()
	/go/src/github.com/circleci/build-agent/cmd/root.go:56 +0x27
main.main()
	/go/src/github.com/circleci/build-agent/main.go:14 +0x104

#8

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.