problem i am having is that i use a user data script with 75 lines and the
error i am getting is
*Unable to save *
- Render user data template for cesar-steere.1000.local task failed with
the following error: ERF22-1307 [Foreman::Renderer::SyntaxError]: Syntax
error occurred while parsing the template Unnamed, make sure you have all
ERB tags properly closed and the Ruby syntax is valid. The Ruby error:
(string):86 :: parse error on value "<" (tLT)
while creating a new host.
i hope that 86 means the line number?!
the script is pretty much standart and the erb ruby syntax check is ok and
preview check in foreman too.
i've now created scripts for all 5 types that are assigned to an OS.
the only line in is #foo
the error im getting is the same.
*Unable to save *
- Render user data template for cesar-steere.1000.local task failed with
the following error: ERF22-1307 [Foreman::Renderer::SyntaxError]: Syntax
error occurred while parsing the template Unnamed, make sure you have all
ERB tags properly closed and the Ruby syntax is valid. The Ruby error:
(string):86 :: parse error on value "<" (tLT)
···
Am Mittwoch, 6. Dezember 2017 13:40:43 UTC+1 schrieb Christian Setzer:
problem i am having is that i use a user data script with 75 lines and the
error i am getting is
*Unable to save *
- Render user data template for cesar-steere.1000.local task failed with
the following error: ERF22-1307 [Foreman::Renderer::SyntaxError]: Syntax
error occurred while parsing the template Unnamed, make sure you have all
ERB tags properly closed and the Ruby syntax is valid. The Ruby error:
(string):86 :: parse error on value "<" (tLT)
while creating a new host.
i hope that 86 means the line number?!
the script is pretty much standart and the erb ruby syntax check is ok and
preview check in foreman too.
problem i am having is that i use a user data script with 75 lines and the
error i am getting is
*Unable to save *
- Render user data template for cesar-steere.1000.local task failed with
the following error: ERF22-1307 [Foreman::Renderer::SyntaxError]: Syntax
error occurred while parsing the template Unnamed, make sure you have all
ERB tags properly closed and the Ruby syntax is valid. The Ruby error:
(string):86 :: parse error on value "<" (tLT)
while creating a new host.
i hope that 86 means the line number?!
the script is pretty much standart and the erb ruby syntax check is ok and
preview check in foreman too.
I won't parse the code for you, but it is easy to create a ERB parser,
fake some variables and methods there and perform a test. We do this
with some template kinds, maybe you want to write similar test for
cloud init and then run it on your template?
Check snippets, the bug can be hidden in snippets!
LZ
···
On Wed, Dec 6, 2017 at 3:36 PM, Christian Setzer <christian.setzer@gmail.com> wrote:
i've now created scripts for all 5 types that are assigned to an OS.
the only line in is #foo
the error im getting is the same.
Unable to save
Render user data template for cesar-steere.1000.local task failed with the
following error: ERF22-1307 [Foreman::Renderer::SyntaxError]: Syntax error
occurred while parsing the template Unnamed, make sure you have all ERB tags
properly closed and the Ruby syntax is valid. The Ruby error: (string):86 ::
parse error on value "<" (tLT)
Am Mittwoch, 6. Dezember 2017 13:40:43 UTC+1 schrieb Christian Setzer:
problem i am having is that i use a user data script with 75 lines and the
error i am getting is
Unable to save
Render user data template for cesar-steere.1000.local task failed with the
following error: ERF22-1307 [Foreman::Renderer::SyntaxError]: Syntax error
occurred while parsing the template Unnamed, make sure you have all ERB tags
properly closed and the Ruby syntax is valid. The Ruby error: (string):86 ::
parse error on value "<" (tLT)
while creating a new host.
i hope that 86 means the line number?!
the script is pretty much standart and the erb ruby syntax check is ok and
preview check in foreman too.
--
You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.
···
-----Ursprüngliche Nachricht-----
Von: foreman-users@googlegroups.com [mailto:foreman-users@googlegroups.com] Im Auftrag von Lukas Zapletal
Gesendet: Mittwoch, 6. Dezember 2017 16:54
An: Foreman users <foreman-users@googlegroups.com>
Betreff: Re: [foreman-users] Re: user-data script syntax error in line 86 when script has 75 lines
I won't parse the code for you, but it is easy to create a ERB parser, fake some variables and methods there and perform a test. We do this with some template kinds, maybe you want to write similar test for cloud init and then run it on your template?
Check snippets, the bug can be hidden in snippets!
LZ
On Wed, Dec 6, 2017 at 3:36 PM, Christian Setzer <christian.setzer@gmail.com> wrote:
i've now created scripts for all 5 types that are assigned to an OS.
the only line in is #foo
the error im getting is the same.
Unable to save
Render user data template for cesar-steere.1000.local task failed with
the following error: ERF22-1307 [Foreman::Renderer::SyntaxError]:
Syntax error occurred while parsing the template Unnamed, make sure
you have all ERB tags properly closed and the Ruby syntax is valid. The Ruby error: (string):86 ::
parse error on value "<" (tLT)
Am Mittwoch, 6. Dezember 2017 13:40:43 UTC+1 schrieb Christian Setzer:
problem i am having is that i use a user data script with 75 lines
and the error i am getting is
Unable to save
Render user data template for cesar-steere.1000.local task failed
with the following error: ERF22-1307
[Foreman::Renderer::SyntaxError]: Syntax error occurred while parsing
the template Unnamed, make sure you have all ERB tags properly closed and the Ruby syntax is valid. The Ruby error: (string):86 ::
parse error on value "<" (tLT)
while creating a new host.
i hope that 86 means the line number?!
the script is pretty much standart and the erb ruby syntax check is
ok and preview check in foreman too.
--
You received this message because you are subscribed to the Google
Groups "Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.
same error today. yesterday everything was fine and working. i could deploy
an image for the first time with userdata plugin. today
*Unable to save *
- Render user data template for alton-tibbals.1000.local task failed with
the following error: ERF22-1307 [Foreman::Renderer::SyntaxError]: Syntax
error occurred while parsing the template Unnamed, make sure you have all
ERB tags properly closed and the Ruby syntax is valid. The Ruby error:
(string):86 :: parse error on value "<" (tLT)
nothing has changed in the code...
and here are the scripts: not that it matters what in them because i could
write something something in it and it would throw that error again.
since i dont want to go back on my backups and redo everything .. a
solution would be prefered as you can understand.