-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aio rt trigger create
fails to create a trigger with a feed from /whisk.system/alarms package
#269
Comments
aio rt trigger create
fails to create a trigger with a feed from /whisk.system/alarms package
JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-1851 |
Thank you for the report, we'll investigate. The leading slash is the correct way to reference the alarm package AFAIK. |
Our daily e2e tests for aio-lib-runtime passed when creating a feed, but only tests for |
Our e2e tests were run 12 hours ago, I just ran them manually and there are 2 failing tests with triggers and feeds - so it might be a service issue, not a cli issue. Will update this thread. |
Thank you for quick response and looking into this! Looking forward to seeing results of your investigation. |
If I may add, there is an odd behavior that I observed, which may be related to this issue. When I accidentally tried to create a trigger with a date in the past, I have received an error (as expected) informing me about that. But it also resulted in one more error, with no details in the returned json (see below). Just a plain app error. Since then, all triggers stopped firing as they were scheduled. I can still fire them manually from the command line, but they are not triggered on scheduled time or interval. Like some internal scheduler/cron has been broken by my attempt to set a trigger in the past. Details This is how it appears on the activation list as:
|
The service issue turned out to be a red-herring. I tried creating an alarm via the The next step is to get the value of the
|
There are sometimes issues with the alarm provider's state. Right now the best course of action is to delete all rules and triggers and re-create them. Not ideal, but if you want to use a manifest that would be painless. |
Hi @shazron, your mention of Windows Powershell actually struck me with the obvious question about the shell that's being used. I am mostly using git-bash and the failing command was executed from git-bash. So apparently there is something incorrect with git-bash that I wasn't aware of. If that's of any help, here's the failing git-bash command with
I tried exactly this previously without success and had to wait until the next day when it fixed automatically. I will give it another try, though. |
I found that setting the variable MSYS_NO_PATHCONV=1 (actually to any value) through
So it appears to be an issue caused by my insufficient knowledge of git-bash.1 Running However the breaking scheduler issue stays. I've created a trigger with date in the past through the manifest and since then all triggers stopped firing. Even when I removed all trigger and rules, and re-created them again. |
Oh wow! I should have asked for the output of I'll write up this path issue as a separate issue for other users' benefit (and to prime Google search).
Don't have an answer for you yet for this issue. |
@dominik-kornas-wttech here's the advice I was given:
|
Hi! And regarding trigger names, I'm sure I tried with different ones and the issue persisted. From my point of view, this isn't really an issue with recreating triggers. The initial attempt to create a trigger fails because of the date in the past. Then, even if I create another trigger with a valid date and a different name, this and any other triggers aren't fired. Though, I don't know the inner details of the alarms package so it still may be somehow related to the mentioned known issue, just the observation doesn't seem to be that much related. |
Describe the bug
Creating a trigger that has a feed (any of the alarms package feeds) fails with a
Feed name is not valid
error.Example command failing with an error
namespace and APi key obfuscated
This looks like related to a leading slash, as the same command executed with
wsk cli
works:Trying to use
aio cli trigger create
without the leading slash generates another errorThe requested resource does not exist
Note that in addition the working command does not align with the documentation which instructs to provide leading slash.
Documentation examples:
Expected behavior
The
aio cli trigger create
works as documented.The App Builder app deployment (
aio app run
) works as well and allows to create triggers along actions during deployment.Versions:
The text was updated successfully, but these errors were encountered: