cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced Reporting doesn't work and there is an error 404

Re: Advanced Reporting doesn't work and there is an error 404


@hfbustilloecaa wrote:

Delete your actual integration user and create a new with the name “Magento Analytics” with the email and password the the user profile of your admin bagento backend.

Select API-Analytics and save . Do magento flush and reauthorize user just created.

 

Then go to terminal and do cd public_html

do the 3 following statements:

 

./n98-magerun2.phar sys:cron:run analytics_subscribe

./n98-magerun2.phar sys:cron:run analytics_update

/n98-magerun2.phar sys:cron:run analytics_collect_data

 

do magento flush again

 

Advanced reporting should work now


I did that in a fresh install (Magento 2.4.3-p2, php 7.4) and still got the same error I was experiencing in my production site:

 

Run Magento\Analytics\Cron\CollectData::execute

  Cron-job "analytics_collect_data" threw exception Magento\Framework\Excepti
  on\FileSystemException


In File.php line 270:

  Directory "/tmp/analytics/tmp" cannot be created Warning!mkdir(): Permissio
  n denied

If I create /tmp/analytics/tmp or /var/tmp/analytics/tmp manually with chmod +0777 it will return this:

Run Magento\Analytics\Cron\CollectData::execute

Cron-job "analytics_collect_data" threw exception Magento\Framework\Excepti
on\FileSystemException


In Write.php line 216:

The directory "/tmp/analytics/tmp/" cannot be deleted Warning!rmdir(/tmp/an
alytics/tmp/): Permission denied


In Write.php line 216:

The directory "/tmp/analytics/tmp/" cannot be deleted Warning!rmdir(/tmp/an
alytics/tmp/): Permission denied

 Has anyone been able to fix this issue? Does Advanced Reporting even work?

Re: Advanced Reporting doesn't work and there is an error 404

Hi!
We have the same problem here, even even if our site meets all the requirements (Public URL, https, etc). We have also tried everything recommended in this thread.

- Cron jobs are running.
- The "Magento Analytics user" integration user has been created.
- Subscription status: Enabled
- Calls from "MagentoBI" are being seen in the access log (/rest/V1/analytics/link)
- Magento version: 2.4.5-p1
- Controller generates the redirect url with otp parameter

 

We still see the 404 page... Did anyone have the same problem and figure out how to make it work?

Thanks!