question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Got error on `Assemble new config.toml`

See original GitHub issue

Running with config as described in example got an error FATAL: Near line 26 (last key parsed ‘runners.docker.sysctls’): bare keys cannot contain ‘.’

Message:

ASK [riemers.gitlab-runner : Assemble new config.toml] ************************
fatal: [default]: FAILED! => {"changed": false, "msg": "failed to validate: rc:1 error:Runtime platform                                  \u001b[0;m  arch\u001b[0;m=amd64 os\u001b[0;m=linux pid\u001b[0;m=12602 revision\u001b[0;m=0e5417a3 version\u001b[0;m=12.0.1\nRunning in system-mode.                           \u001b[0;m \n                                                  \u001b[0;m \n\u001b[31;1mFATAL: Near line 26 (last key parsed 'runners.docker.sysctls'): bare keys cannot contain '.'\u001b[0;m \n"}

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:3
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
vitkhabcommented, Sep 15, 2019

There is workaround. It’s not great solution and might not work in complex cases. That’s why it’s not a PR.

Add quotes to both sides of {{ line }} variable in file line-config-runner.yml in tasks. Changing

    regexp: '^(\s*){{ line|regex_escape }} ='
    line: '{{ "  " * (section.split(".")|length) }}{{ line }} = {{ gitlab_runner.extra_configs[section][line] | to_json }}'

to this

    regexp: '^(\s*)"{{ line|regex_escape }}" ='
    line: '{{ "  " * (section.split(".")|length) }}"{{ line }}" = {{ gitlab_runner.extra_configs[section][line] | to_json }}'
1reaction
riemerscommented, Aug 8, 2019

well i presume there are some more, but if nobody needed it before it wasn’t there. It started for me also as a “i need x and y” and now it grew to this size, lots of people create PR’s and i just maintain it for the community. So yes PR’s are always good

Read more comments on GitHub >

github_iconTop Results From Across the Web

Workhorse config.toml does not exist on new installation - GitLab
This is a signifier of mis-aligned containers between Workhorse & Webservice. The expectation is that they are build from the same pipeline, and ......
Read more >
I can't get Hugo to read config.toml (errored out on 1:1), what ...
I've worked in a command line environment a decent few times before, but static websites and Hugo are both completely new to me....
Read more >
Unable to save a config.toml without an error - support - HUGO
We blend visual tools into the editor so you get the right amount of help when you want it. With new features and...
Read more >
Gitlab runner doesn't start - Stack Overflow
You're starting the runner with -v /srv/gitlab-runner/config:/etc/gitlab-runner . But the registration uses a different path for the volume ...
Read more >
App Configuration (fly.toml) · Fly Docs - Fly.io
The Fly platform uses fly.toml to configure applications for deployment. Configuration of builds, environment ... [build] image = "flyio/hellofly:latest".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found