We just had a strange occurrence on our 8.0.6 server, and I’m trying to figure out what happened and how to prevent it from happening again.
One of our projects has several scripts in the “Project Library” area. This project also happens to be our system-wide gateway scripting project. We have some gateway events in the same project which call into those scripts. About an hour ago, things started failing and the logs showed that the files in the project library were not being found.
For example, our list of project libraries looks like this:
And suddenly, a timer based gateway event in that project started failing with: NameError: name 'signalfire_nodes' is not defined
Nothing about the project or server was changed around that time. I had just opened a Designer window, but was looking at an unrelated Perspective view in a different project.
For the next hour-ish all gateway events from that project which tried to reference the project library all failed with that name not defined error, for all the different libraries.
And then, just as suddenly, it started working again. I can’t see anything unusual in the wrapper.log near the beginning or end of this time range.
I tried searching around in the forum, but the closest I found are this thread and this thread. I checked, and we never import the project library files in any of our projects.
Is it okay to just refer to the functions in those library files like signalfire_nodes.some_function()
or is there some more explicit naming we should be using to specify that an event should be looking in the current project or the global scripting project or some other place?