AOEpeople / AOEpeople/FileHeatmap

strace: Invalid process id: '-e'

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

I get the following error when running the `logger.sh`

```
$ bash logger.sh
# Start stracing
strace: Invalid process id: '-e'
```

To my knowledge the `www-data` user is correct, as is `apache2`

Here's some info that may help:

```
$ pgrep -u www-data apache2
$ echo $?
1
```

```
$ ps aux | grep apache
www-data 1068 0.7 2.4 426620 99024 ? S 13:04 0:19 /usr/sbin/apache2 -k start
www-data 1069 0.5 1.5 392388 64388 ? S 13:04 0:15 /usr/sbin/apache2 -k start
www-data 1070 0.6 1.3 383628 55544 ? S 13:04 0:17 /usr/sbin/apache2 -k start
www-data 4552 0.4 1.3 383884 55468 ? S 13:44 0:01 /usr/sbin/apache2 -k start
www-data 4735 0.9 1.3 383844 55332 ? S 13:46 0:01 /usr/sbin/apache2 -k start
root 4910 0.0 0.0 10464 932 pts/0 S+ 13:48 0:00 grep --color=auto apache
www-data 24443 0.7 2.2 419536 90732 ? S 11:17 1:05 /usr/sbin/apache2 -k start
www-data 24525 0.6 2.5 429700 101824 ? S 11:18 1:00 /usr/sbin/apache2 -k start
www-data 28859 0.7 2.4 429200 100376 ? S 12:10 0:44 /usr/sbin/apache2 -k start
www-data 30930 0.6 1.5 392640 64608 ? S 12:35 0:29 /usr/sbin/apache2 -k start
www-data 30932 0.6 1.6 394812 65984 ? S 12:35 0:28 /usr/sbin/apache2 -k start
root 31377 0.0 0.4 342392 16500 ? Ss Aug27 1:09 /usr/sbin/apache2 -k start
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running logger.sh and reading the strace invocation and process lookup around the reported error. Compare the arguments passed to strace with the apache2 process IDs shown by ps; done means the script traces the intended processes without treating '-e' as a process ID.

Written by the indexing model from the issue text.

Assessment

Tech stack
apache, bash, shell
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.