SOLVED: StackScript save fails: "Duplicate [UDF] name found"

summary: on editing a current StackScript, hitting button='Save Changes' gives the message

Duplicate name found. A UDF's name must be unique

but there are no apparent duplicate UDFs in the new code.

details:

I currently have a StackScript @ https://manager.linode.com/stackscripts/edit/10237 , which I have previously edited successfully. (I recently made that StackScript public, but if you can't see it, try https://gist.github.com/TomRoche/b25459 … tackScript">https://gist.github.com/TomRoche/b254599b6ebeb3ed09c7/raw/76f45ea37d1dc1aa1e8e5f58ef5e6b27c98af5c3/accepted.StackScript .) That StackScript is based on another script ( https://bitbucket.org/tlroche/linode_ju … _config.sh">https://bitbucket.org/tlroche/linodejumpboxconfig/raw/HEAD/scripts/minimalsecuredebian-basedlinodeconfig.sh ) which I recently updated. I'd like to keep the StackScript and its "parent" reasonably "in sync" for maintenance, so I tried to update the StackScript code to that currently saved https://gist.github.com/TomRoche/8967b2 … tackScript">https://gist.github.com/TomRoche/8967b2bf938941edaf0e/raw/652dab9b8499cb97ab32d7ed979ffc5c9beb97ff/rejected.StackScript . However, my attempt to save the new code abended with error=

Duplicate name found. A UDF's name must be unique

However, if you examine the UDF block near top of https://gist.githubusercontent.com/TomR … tackScript">https://gist.githubusercontent.com/TomRoche/8967b2bf938941edaf0e/raw/652dab9b8499cb97ab32d7ed979ffc5c9beb97ff/rejected.StackScript , I believe you can see that there are in fact no duplicate UDFs. Am I missing something?

If so, what? If not,

* how should I report this bug?

  • is there a workaround?

1 Reply

Linode Staff

Hello,

This is because the "linode*" namespace is reserved for a few built-in env variables that we provide from our end (like: linodeid). I have corrected the error message that you received to indicate this as such. Sorry for the inaccurate error message.

Linode_*, PATH, and TERM are restricted UDF names.

-Chris

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct