# Cron Job does not work no matter what I do?

**URL:** <https://forum.hestiacp.com/t/cron-job-does-not-work-no-matter-what-i-do/22376>\
**Category:** Cron Jobs\
**Created:** [October 29, 2026, 11:38am UTC](https://forum.hestiacp.com/t/cron-job-does-not-work-no-matter-what-i-do/22376 "2026-10-29T11:38:10Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![bosunjohnson](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/bosunjohnson/32/9581_2.png) [@bosunjohnson](https://forum.hestiacp.com/u/bosunjohnson)\
**Post date:** [October 29, 2026, 11:38am UTC](https://forum.hestiacp.com/t/cron-job-does-not-work-no-matter-what-i-do/22376/1 "2026-10-29T11:38:10Z")

</div>

Hi everyone,

I am trying to create a cronjob via the hestiacp interface, I pasted this command below there. But I get permission errors wheneven the job runs. How can I fix this please? I am trying to add a job for [goaccess.io](http://goaccess.io).

goaccess /var/log/nginx/domains/domain.com.log /var/log/apache2/domains/domain.com.log --log-format=COMBINED -o /home/user/web/domain.com/public\_html/report.html

 ![image](https://forum.hestiacp.com/uploads/default/original/2X/6/68657cfdf3b35a3653b111404b5c7bf906b51cd4.png)

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [October 29, 2026, 11:45am UTC](https://forum.hestiacp.com/t/cron-job-does-not-work-no-matter-what-i-do/22376/2 "2026-10-29T11:45:30Z")

</div>

You don’t paste the exact error but you should use the full path where you have goaccess, example:

```t
/usr/bin/goaccess /var/log/nginx/domains/domain.com.log /var/log/apache2/domains/domain.com.log --log-format=COMBINED -o /home/user/web/domain.com/public_html/report.html

```

Double check that this log exists `/var/log/nginx/domains/domain.com.log` because it shouldn’t if you are using Nginx+Apache2.

---

<div class="post-metadata">

**Author:** ![bosunjohnson](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/bosunjohnson/32/9581_2.png) [@bosunjohnson](https://forum.hestiacp.com/u/bosunjohnson)\
**Post date:** [October 29, 2026, 12:21pm UTC](https://forum.hestiacp.com/t/cron-job-does-not-work-no-matter-what-i-do/22376/3 "2026-10-29T12:21:41Z")

</div>

> [@sahsanu](#):
>
> `/usr/bin/goaccess /var/log/nginx/domains/domain.com.log /var/log/apache2/domains/domain.com.log --log-format=COMBINED -o /home/user/web/domain.com/public_html/report.html`

thanks.

Can a normal user who is not an admin add this same cron or would they need a permission?

---

<div class="post-metadata">

**Author:** ![bosunjohnson](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/bosunjohnson/32/9581_2.png) [@bosunjohnson](https://forum.hestiacp.com/u/bosunjohnson)\
**Post date:** [October 29, 2026, 12:25pm UTC](https://forum.hestiacp.com/t/cron-job-does-not-work-no-matter-what-i-do/22376/4 "2026-10-29T12:25:49Z")

</div>

Now I get this error.

 ![image](https://forum.hestiacp.com/uploads/default/original/2X/7/7dad886013bda0a70b4fb64ca0342a6775d99453.png)

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [October 29, 2026, 12:47pm UTC](https://forum.hestiacp.com/t/cron-job-does-not-work-no-matter-what-i-do/22376/5 "2026-10-29T12:47:53Z")

</div>

Show the output of this command (replace the user and domain with the actual ones):

```t
namei -l /home/user/web/domain.com/public_html/report.html

```

---

<div class="post-metadata">

**Author:** ![bosunjohnson](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/bosunjohnson/32/9581_2.png) [@bosunjohnson](https://forum.hestiacp.com/u/bosunjohnson)\
**Post date:** [October 29, 2026, 1:01pm UTC](https://forum.hestiacp.com/t/cron-job-does-not-work-no-matter-what-i-do/22376/6 "2026-10-29T13:01:00Z")

</div>

drwxr-xr-x root root /  
drwxr-xr-x root root home  
drwxr-x–x nonadminuser nonadminuser nonadminuser  
drwxr-xr-x root nonadminuser web  
drwxr-x–x nonadminuser nonadminuser [domain.co.uk](http://domain.co.uk)  
drwxr-x–x nonadminuser www-data public\_html  
-rw-rw-r-- nonadminuser nonadminuser report.html

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [October 29, 2026, 1:04pm UTC](https://forum.hestiacp.com/t/cron-job-does-not-work-no-matter-what-i-do/22376/7 "2026-10-29T13:04:24Z")

</div>

Those perms allow the `nonadminuser` write the `report.html`. Are you adding the cron job as `nonadminuser`?

---

<div class="post-metadata">

**Author:** ![bosunjohnson](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/bosunjohnson/32/9581_2.png) [@bosunjohnson](https://forum.hestiacp.com/u/bosunjohnson)\
**Post date:** [October 29, 2026, 1:05pm UTC](https://forum.hestiacp.com/t/cron-job-does-not-work-no-matter-what-i-do/22376/8 "2026-10-29T13:05:08Z")

</div>

I am adding the cronjob as the admin user. I though the admin user should be able to write the report also?

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [October 29, 2026, 1:06pm UTC](https://forum.hestiacp.com/t/cron-job-does-not-work-no-matter-what-i-do/22376/9 "2026-10-29T13:06:28Z")

</div>

No, the admin user doesn’t have the perms, you must add the cron job to `nonadminuser`

---

<div class="post-metadata">

**Author:** ![bosunjohnson](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/bosunjohnson/32/9581_2.png) [@bosunjohnson](https://forum.hestiacp.com/u/bosunjohnson)\
**Post date:** [October 29, 2026, 1:10pm UTC](https://forum.hestiacp.com/t/cron-job-does-not-work-no-matter-what-i-do/22376/10 "2026-10-29T13:10:16Z")

</div>

I added the job to the nonadmin user, and I have another error with permission.

GoAccess - version 1.12 - Sep 16 2026 02:02:56  
Config file: /etc/goaccess/goaccess.conf

Fatal error has occurred  
Error occurred at: src/parser.c - read\_log - 2632  
Unable to open the specified log file ‘/var/log/nginx/domains/[domain.co.uk](http://domain.co.uk/).log’. Permission denied

Looks like nonadmin user is not permitted to access the log. It’s more like a catch 22 situation now.

---

<div class="post-metadata">

**Author:** ![bosunjohnson](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/bosunjohnson/32/9581_2.png) [@bosunjohnson](https://forum.hestiacp.com/u/bosunjohnson)\
**Post date:** [October 29, 2026, 1:13pm UTC](https://forum.hestiacp.com/t/cron-job-does-not-work-no-matter-what-i-do/22376/11 "2026-10-29T13:13:05Z")

</div>

By the way, I am using Apache +Nginx and this log exists.

/var/log/nginx/domains/domain.co.uk.log

---

<div class="post-metadata">

**Author:** ![bosunjohnson](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/bosunjohnson/32/9581_2.png) [@bosunjohnson](https://forum.hestiacp.com/u/bosunjohnson)\
**Post date:** [October 29, 2026, 1:15pm UTC](https://forum.hestiacp.com/t/cron-job-does-not-work-no-matter-what-i-do/22376/12 "2026-10-29T13:15:58Z")

</div>

Update: I removed the nginx log from the job and the job worked successfully. I can view the report now. But I guess only the apache log is being analyzed in the report and the nginx log is left out.

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [October 29, 2026, 1:21pm UTC](https://forum.hestiacp.com/t/cron-job-does-not-work-no-matter-what-i-do/22376/13 "2026-10-29T13:21:29Z")

</div>

If you didn’t modify the templates used and the web domain is not suspended, nginx left the log in the same file apache does.

---

<div class="post-metadata">

**Author:** ![bosunjohnson](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/bosunjohnson/32/9581_2.png) [@bosunjohnson](https://forum.hestiacp.com/u/bosunjohnson)\
**Post date:** [October 29, 2026, 1:54pm UTC](https://forum.hestiacp.com/t/cron-job-does-not-work-no-matter-what-i-do/22376/14 "2026-10-29T13:54:21Z")

</div>

Thanks alot @sahsanu I appreciate.

One more thing please? Can you give me the cron job task snippet for goaccess real time view? Thanks!

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [October 29, 2026, 1:58pm UTC](https://forum.hestiacp.com/t/cron-job-does-not-work-no-matter-what-i-do/22376/15 "2026-10-29T13:58:17Z")

</div>

You are welcome.

Sorry but I don’t use goaccess.
