Misp: Unable to Configure Scheduled Tasks

Created on 3 Mar 2018  Â·  9Comments  Â·  Source: MISP/MISP

Work environment

| Questions | Answers
|---------------------------|--------------------
| Type of issue | Question
| OS version (server) | Ubuntu 16.04.4
| OS version (client) | NA
| PHP version | 7.0.25
| MISP version / git hash | v2.4.88 (e44abe301bb8137b9b772132b4d343d1a6ac41b0)
| Browser | NA

Concern

I have configured the Scheduled Tasks in the following manner, however, they nither got executed nor the status message changed:
image

All the 'Workers' are up and running and necessary feeds are enabled, If I run it in API mode /fetchFromFeed/<feedID> the same stays as inactive. Not sure why the job scheduling through the web interface isn't functioning and respective API commands are not executing.

It will be great if you can let me know if I am missing something.

Further, if you can give me a brief understanding on fetching and caching of feeds, it will be very much helpful.

Thank you.

invalid needs more info review before closing potential bug support

Most helpful comment

You may want to update your MISP instance to grab 29d502ef7d87e85189f3d01152e6624b953f9feb. I was debugging the same issue as you and so far I think jobs run even though it says "Not scheduled yet"

All 9 comments

Please note, speed is the essence and automation is the key. Hence, any inputs in this regard will be highly appreciated.

Could you show us the list of your running workers form the administration -> server settings -> worker tab?

Keep in mind, the API call that you described does NOT affect the scheduler. You can initiate a pull yourself or via the scheduler, pulling it yourself. If it doesn't do that, could you send me your error logs?

You may want to update your MISP instance to grab 29d502ef7d87e85189f3d01152e6624b953f9feb. I was debugging the same issue as you and so far I think jobs run even though it says "Not scheduled yet"

Hello @iglocska and @AJohnDoe,

Many thanks for your inputs.

Please be informed that all the workers are active and working flawlessly. However, after following the suggestion made by @AJohnDoe I can now able to see the schedule confirmarion for fetch_feeds. Please refer the screenshot below:
image

But still this has a small catch. The status of the second task, cache_feeds is still unchanged.

Now, coming back to @iglocska, I am aware that API requests and schedulers aren't related, however, the below command seems to be ineffective in my case:
curl -H "Authorization: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" -k "https://mymisp/feeds/fetchFromAllFeeds" or curl -H "Authorization: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" -k "https://mymisp/feeds/cacheFeeds/all"

Kindly note, if I run https://mymisp/feeds/fetchFromAllFeeds or https://mymisp/feeds/cacheFeeds/all in the browser under the active login, the same gets successfully executed.
image

Please let me know if I am missing something here.

Further, in regards to sharing the error logs with you, could you please confirm from the below screenshot, contents of which file should I share with you:
image

Thanks.

Everything starting with resque- would be great.

On Thu, Mar 8, 2018 at 11:53 AM, souti2006 notifications@github.com wrote:

Hello @iglocska https://github.com/iglocska and @AJohnDoe
https://github.com/ajohndoe,

Many thanks for your inputs.

Please be informed that all the workers are active and working flawlessly.
However, after following the suggestion made by @AJohnDoe
https://github.com/ajohndoe I can now able to see the schedule
confirmarion for fetch_feeds. Please refer the screenshot below:
[image: image]
https://user-images.githubusercontent.com/27813676/37145696-8ec6aaa2-22e7-11e8-8433-46a1274462f3.png

But still this has a small catch. The status of the second task,
cache_feeds is still unchanged.

Now, coming back to @iglocska https://github.com/iglocska, I am aware
that API requests and schedulers aren't related, however, the below command
seems to be ineffective in my case:
curl -H "Authorization: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" -k "
https://mymisp/feeds/fetchFromAllFeeds" or curl -H "Authorization:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" -k "https://mymisp/feeds/
cacheFeeds/all"

Kindly note, if I run https://mymisp/feeds/fetchFromAllFeeds or
https://mymisp/feeds/cacheFeeds/all in the browser under the active
login, the same gets successfully executed.
[image: image]
https://user-images.githubusercontent.com/27813676/37146660-66658940-22ea-11e8-9878-2195798690f0.png

Please let me know if I am missing something here.

Further, in regards to sharing the error logs with you, could you please
confirm from the below screenshot, contents of which file should I share
with you:
[image: image]
https://user-images.githubusercontent.com/27813676/37146404-9bc9ea5a-22e9-11e8-94ce-b5b7f1e08238.png

Thanks.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MISP/MISP/issues/2999#issuecomment-371449075, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADf6wL-_88oRGb5NIY1dlnQufyP_ps1Xks5tcQm5gaJpZM4Sa9z9
.

Hello @iglocska and @AJohnDoe,

This is to inform you that both the scheduled tasks (i.e. fetch_feeds, cache_feeds) got executed and based on the given configuration the next run is auto-calculated. Please refer the below screenshot:
image

The other issue with API still persists.

@iglocska: Got any chance to explore the logs? Please let me know if you need any additional logs.

Thanks.

Please forgive a naive question, since this issue has been open 2.5 years, does this mean that MISP scheduled tasks still have a problem? Or was the undesired behavior observed by @souti2006 caused by a local configuration problem and this issue should be closed? Thanks.

Schedule tasks are deprecated. CRON Jobs are being used instead, I think. I believe this issue can be closed now. Feel free to reopen if need be.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

leagueherald picture leagueherald  Â·  3Comments

fl0x2208 picture fl0x2208  Â·  4Comments

dpicollege picture dpicollege  Â·  6Comments

garanews picture garanews  Â·  6Comments

RichieB2B picture RichieB2B  Â·  7Comments