# Outreachy contributions discussions

**URL:** https://forum.suricata.io/t/outreachy-contributions-discussions/1821
**Category:** Outreachy
**Created:** [October 16, 2021, 12:34am UTC](https://forum.suricata.io/t/outreachy-contributions-discussions/1821 "2021-10-16T00:34:17Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Modupe](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/modupe/32/1040_2.png) [@Modupe](https://forum.suricata.io/u/Modupe)
#### Post date: [October 16, 2021, 12:34am UTC](https://forum.suricata.io/t/outreachy-contributions-discussions/1821/1 "2021-10-16T00:34:17Z")

</div>

This section is for discussing questions, issues and clarifications that arise when making contributions.

---

<div class="post-metadata">

### Author: ![Modupe](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/modupe/32/1040_2.png) [@Modupe](https://forum.suricata.io/u/Modupe)
#### Post date: [October 16, 2021, 12:39am UTC](https://forum.suricata.io/t/outreachy-contributions-discussions/1821/2 "2021-10-16T00:39:52Z")

</div>

Hi Juliana. I noticed this while running the unit test. One test keeps failing. I was wondering if this is normal or an issue with my installation? and can I go ahead with my contributions

---

<div class="post-metadata">

### Author: ![jufajardini](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/jufajardini/32/896_2.png) [@jufajardini](https://forum.suricata.io/u/jufajardini)
#### Post date: [October 16, 2021, 12:59pm UTC](https://forum.suricata.io/t/outreachy-contributions-discussions/1821/3 "2021-10-16T12:59:02Z")

</div>

Hey Modupe!

Could you please share more details about what’s happening?

- What is the unit test that is failing?
- How are you running Suri?

Then it should be easier to understand what might be the issue!

About going ahead with your contributions: is that about the ticket that you want to claim? If so, sure, please try and let me know if you managed to, or if we have to update your user role in Redmine 🙂

(small note: no need to address just me in the questions, as everyone who knows something about it can help with an answer - even other Outreachy applicants, after all, that’s what a community is ^^)

---

<div class="post-metadata">

### Author: ![Modupe](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/modupe/32/1040_2.png) [@Modupe](https://forum.suricata.io/u/Modupe)
#### Post date: [October 16, 2021, 8:01pm UTC](https://forum.suricata.io/t/outreachy-contributions-discussions/1821/4 "2021-10-16T20:01:50Z")

</div>

So I use “sudo suricata -c /etc/suricata/suricata.yaml -i en2 --init-errors-fatal” to run suri. Test SCLogTestInit02 is failing.

 ![Screenshot 2021-10-16 at 20.59.00](https://canada1.discourse-cdn.com/flex030/uploads/suricata/original/2X/7/7256d4fe54e3bbdd8ad24f3e70fd35d90ddcb29a.jpeg)

---

<div class="post-metadata">

### Author: ![Modupe](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/modupe/32/1040_2.png) [@Modupe](https://forum.suricata.io/u/Modupe)
#### Post date: [October 16, 2021, 8:02pm UTC](https://forum.suricata.io/t/outreachy-contributions-discussions/1821/5 "2021-10-16T20:02:45Z")

</div>

Thank you for the advice. Also, I see the ticket has been assigned to me. Thank you.

---

<div class="post-metadata">

### Author: ![sbhardwaj](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/sbhardwaj/32/10_2.png) [@sbhardwaj](https://forum.suricata.io/u/sbhardwaj)
#### Post date: [October 17, 2021, 6:37am UTC](https://forum.suricata.io/t/outreachy-contributions-discussions/1821/6 "2021-10-17T06:37:07Z")

</div>

Not sure why this would happen with sudo. Suricata cannot open the file to append… Could you please share your configure cmd? And the steps you used to install Suri.

---

<div class="post-metadata">

### Author: ![vjulien](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/vjulien/32/4_2.png) [@vjulien](https://forum.suricata.io/u/vjulien)
#### Post date: [October 17, 2021, 6:45am UTC](https://forum.suricata.io/t/outreachy-contributions-discussions/1821/7 "2021-10-17T06:45:41Z")

</div>

Can you make sure the output and the command match? These tests shouldn’t run with that command.

---

<div class="post-metadata">

### Author: ![Modupe](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/modupe/32/1040_2.png) [@Modupe](https://forum.suricata.io/u/Modupe)
#### Post date: [October 17, 2021, 9:04am UTC](https://forum.suricata.io/t/outreachy-contributions-discussions/1821/8 "2021-10-17T09:04:04Z")

</div>

Apologies. I used ./src/suricata -u to run the unit test. I followed the instructions here for the installation: [Getting Started Contributing to Suricata - Suricata](https://suricata.io/2021/09/10/getting-started-contributing-to-suricata/). replaced the ./configure line with ./configure –disable-shared –enable-debug –enable-unittests and used: [Basic Setup - Suricata - Open Information Security Foundation](https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Basic_Setup)  
for the setup.

---

<div class="post-metadata">

### Author: ![sbhardwaj](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/sbhardwaj/32/10_2.png) [@sbhardwaj](https://forum.suricata.io/u/sbhardwaj)
#### Post date: [October 17, 2021, 9:33am UTC](https://forum.suricata.io/t/outreachy-contributions-discussions/1821/9 "2021-10-17T09:33:20Z")

</div>

Thank you. I didn’t notice your command. As Victor mentioned, could you please make sure that you’re showing output for the command that you tried?

Pasting the output inside a code block would be nicer than screenshot, easier for us to copy and try things on our end. 😉

---

<div class="post-metadata">

### Author: ![Modupe](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/modupe/32/1040_2.png) [@Modupe](https://forum.suricata.io/u/Modupe)
#### Post date: [October 17, 2021, 10:15am UTC](https://forum.suricata.io/t/outreachy-contributions-discussions/1821/10 "2021-10-17T10:15:28Z")

</div>

Command: ./src/suricata -u  
Output: Test DetectEngineTest09 : [775] 17/10/2021 – 10:50:58 - (detect-engine.c:2283) (DetectEngineCtxLoadConf) – [ERRCODE: SC\_ERR\_SIZE\_PARSE(198)] - parsing ‘BA’ for toclient-groups failed, using 20  
[775] 17/10/2021 – 10:50:58 - (detect-engine.c:2300) (DetectEngineCtxLoadConf) – [ERRCODE: SC\_ERR\_SIZE\_PARSE(198)] - parsing ‘BA’ for toserver-groups failed, using 40  
[775] 17/10/2021 – 10:50:58 - (util-classification-config.c:363) (SCClassConfParseFile) – Added “43” classification types from the classification file  
[775] 17/10/2021 – 10:50:58 - (util-reference-config.c:337) (SCRConfParseFile) – Added “19” reference types from the reference.config file  
[775] 17/10/2021 – 10:50:58 - (detect-engine-build.c:1760) (SigAddressCleanupStage1) – cleaning up signature grouping structure… complete  
pass  
Test SCLogTestInit01 : pass  
Test SCLogTestInit02 : Error opening file /var/log/suricata/boo.txt  
Argument(s) to SCLogAppendOPIfaceCtx() NULL  
FAILED  
Test SCLogTestInit03 : Fine grained filters:  
(null) - bamboo - -1  
(null) - soo - -1  
(null) - dummy - -1  
Fine grained filters:  
(null) - bamboo - -1  
(null) - soo - -1  
(null) - dummy - -1  
(null) - dummy1 - -1  
(null) - dummy2 - -1  
pass  
Test SCLogTestInit04 : FD filters:  
bamboo  
soo  
foo  
roo  
FD filters:  
bamboo  
soo  
foo  
roo  
loo  
FD filters:  
roo  
loo  
pass

---

<div class="post-metadata">

### Author: ![jufajardini](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/jufajardini/32/896_2.png) [@jufajardini](https://forum.suricata.io/u/jufajardini)
#### Post date: [October 17, 2021, 11:08am UTC](https://forum.suricata.io/t/outreachy-contributions-discussions/1821/11 "2021-10-17T11:08:35Z")

</div>

So, I tried to follow the steps that you used.  
If I configure suri with

```auto
CFLAGS="-O0 -ggdb -fno-omit-frame-pointer" ./configure --disable-shared --enable-debug --enable-unittests

```

Then build it and run

```auto
./src/suricata -u

```

I also get that test failing. But if I run

```auto
sudo ./src/suricata -u

```

It passes. That is because in my machine that directory/file is owned by `root`, so, if I run suri without `sudo`, it can’t access it, and then the test fails. Does this solve this issue for you?

---

<div class="post-metadata">

### Author: ![Modupe](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/modupe/32/1040_2.png) [@Modupe](https://forum.suricata.io/u/Modupe)
#### Post date: [October 17, 2021, 12:39pm UTC](https://forum.suricata.io/t/outreachy-contributions-discussions/1821/12 "2021-10-17T12:39:16Z")

</div>

Yes, It does. Thank you so much.

---

<div class="post-metadata">

### Author: ![gith](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/gith/32/2627_2.png) [@gith](https://forum.suricata.io/u/gith)
#### Post date: [October 19, 2021, 4:05am UTC](https://forum.suricata.io/t/outreachy-contributions-discussions/1821/13 "2021-10-19T04:05:01Z")

</div>

Thanks for pointing that out!

I had the same issue, I couldn’t really understand what was going on, then by going back to the [Installation Guide - Basic Setup](https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Basic_Setup) I realized we should either do

```bash
sudo make install-conf 

# or

sudo mkdir /var/log/suricata
.
.
.
# to the end of setup

```

Which makes the `SCLogTestInit02` fails if not running the tests with `sudo`.

Sometimes rewinding the process is good with hanging stuff like this. 😅  
Thank you!

---

<div class="post-metadata">

### Author: ![gith](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/gith/32/2627_2.png) [@gith](https://forum.suricata.io/u/gith)
#### Post date: [October 19, 2021, 4:11am UTC](https://forum.suricata.io/t/outreachy-contributions-discussions/1821/14 "2021-10-19T04:11:19Z")

</div>

@jufajardini

I have a question regarding claiming tickets at [redmine](https://redmine.openinfosecfoundation.org/projects/suricata/issues?query_id=41), I realize it’s different after my first claim, am I wrong?

I am not sure if I could assign a ticket to myself?! 🤔  
or should I go on with asking for claiming a specific ticket?

---

<div class="post-metadata">

### Author: ![sbhardwaj](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/sbhardwaj/32/10_2.png) [@sbhardwaj](https://forum.suricata.io/u/sbhardwaj)
#### Post date: [October 19, 2021, 4:25am UTC](https://forum.suricata.io/t/outreachy-contributions-discussions/1821/15 "2021-10-19T04:25:10Z")

</div>

@gith you should ask on every ticket that you want to claim. You can only have one “Good First Issue” and then move to other “Beginner” tickets once you’ve made the PR for the good first issue.  
Once a mentor approves that you can claim the ticket (this is just to avoid multiple applicants working on same issue), you can self assign.

Does this help?

---

<div class="post-metadata">

### Author: ![gith](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/gith/32/2627_2.png) [@gith](https://forum.suricata.io/u/gith)
#### Post date: [October 19, 2021, 4:32am UTC](https://forum.suricata.io/t/outreachy-contributions-discussions/1821/16 "2021-10-19T04:32:19Z")

</div>

Great!  
Just making sure I get these stuff right, first time dealing w/ Redmine. 😄 :  
Thank you!

---

<div class="post-metadata">

### Author: ![jufajardini](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/jufajardini/32/896_2.png) [@jufajardini](https://forum.suricata.io/u/jufajardini)
#### Post date: [October 19, 2021, 9:50am UTC](https://forum.suricata.io/t/outreachy-contributions-discussions/1821/17 "2021-10-19T09:50:25Z")

</div>

Just to add to what @sbhardwaj has said: we’ve decided that right now it is ok if someone wants to claim another ticket from that list of clippy warnings that need to be fixed, even if they have already worked on one of those.

---

<div class="post-metadata">

### Author: ![Ahuoyiza](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/ahuoyiza/32/1060_2.png) [@Ahuoyiza](https://forum.suricata.io/u/Ahuoyiza)
#### Post date: [October 22, 2021, 3:25am UTC](https://forum.suricata.io/t/outreachy-contributions-discussions/1821/18 "2021-10-22T03:25:09Z")

</div>

Hello Modupe, you mentioned that you use Mac os.  
Can you kindly point out areas where the setup in mac differs from the one provided for linux?  
Thanks

---

<div class="post-metadata">

### Author: ![gith](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/gith/32/2627_2.png) [@gith](https://forum.suricata.io/u/gith)
#### Post date: [October 22, 2021, 3:50am UTC](https://forum.suricata.io/t/outreachy-contributions-discussions/1821/19 "2021-10-22T03:50:59Z")

</div>

I wonder if there is anything we should consider when a commit gets CI failed checks??  
I know in most projects it’s not a must for all the checks to pass to merge a commit to upstream, but for Suricata, should we only pay attention when Code Owner/ Maintainers mention a modification? or what exactly? 🤔

---

<div class="post-metadata">

### Author: ![Modupe](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/modupe/32/1040_2.png) [@Modupe](https://forum.suricata.io/u/Modupe)
#### Post date: [October 22, 2021, 4:59am UTC](https://forum.suricata.io/t/outreachy-contributions-discussions/1821/20 "2021-10-22T04:59:08Z")

</div>

Hi Sophia. The setup is pretty much the same. The major difference would be with the commands. I am always available to assist if you have any issues with the setup.

[Next page](https://forum.suricata.io/t/outreachy-contributions-discussions/1821.md?page=2)
