Export Cron Job Reporting Access Denied

More
07 Mar 2016 07:02 #2141 by Daniel
Replied by Daniel on topic Export Cron Job Reporting Access Denied
Small code conflict which has now been resolved....

Thanks
Daniel

Please Log in to join the conversation.

  • Verulam Webmaster
  • Topic Author
  • Offline
  • New Member
  • New Member
More
04 Mar 2016 11:21 #2134 by Verulam Webmaster
Replied by Verulam Webmaster on topic Export Cron Job Reporting Access Denied
Thank you for the fix, what was the issue?

Chris.

Please Log in to join the conversation.

  • Verulam Webmaster
  • Topic Author
  • Offline
  • New Member
  • New Member
More
03 Mar 2016 09:11 #2124 by Verulam Webmaster
Replied by Verulam Webmaster on topic Export Cron Job Reporting Access Denied
Thanks, I have sent the credentials.

Chris.

Please Log in to join the conversation.

More
03 Mar 2016 07:14 #2122 by Daniel
Replied by Daniel on topic Export Cron Job Reporting Access Denied
Hello,

Can you please share your Access credentials via Contact us form, We'll look into it.

Thanks
Daniel

Please Log in to join the conversation.

  • Verulam Webmaster
  • Topic Author
  • Offline
  • New Member
  • New Member
More
01 Mar 2016 11:37 #2117 by Verulam Webmaster
Replied by Verulam Webmaster on topic Export Cron Job Reporting Access Denied
Thanks Danish,

Thanks makes sense as the feed writes directly to the local server. The BASH screen shot below is an SSH shell onto the server, so it should be the same as the CRON job. However, I also ran it as a CRON job on the local server to be sure. Same result, screen shots attached.

I ran two, as I think CURL needs quotes to stop it braking on the '?' char, so I tested both, in each case not files were written and the hit count in vdata did not increment.


Chris.

Please Log in to join the conversation.

More
01 Mar 2016 11:11 - 01 Mar 2016 11:21 #2116 by Daniel
Replied by Daniel on topic Export Cron Job Reporting Access Denied
Cron script can only be executed using the Cron Job on the same server.
Each feed can be assigned with different access levels. If the Feed is assigned with public, guest access level, you don't need to login if the Feed is assigned with any other access level you need to login with a user with same / higher access level. Import / Export do not have any access level, You just need to trigger it using Cron Job from the same / local server where the script resides.

Thanks
Daniel
Last edit: 01 Mar 2016 11:21 by Daniel.

Please Log in to join the conversation.

  • Verulam Webmaster
  • Topic Author
  • Offline
  • New Member
  • New Member
More
01 Mar 2016 11:02 #2115 by Verulam Webmaster
Replied by Verulam Webmaster on topic Export Cron Job Reporting Access Denied
Screenshots attached.

Thanks.

Please Log in to join the conversation.

  • Verulam Webmaster
  • Topic Author
  • Offline
  • New Member
  • New Member
More
01 Mar 2016 11:00 #2114 by Verulam Webmaster
Replied by Verulam Webmaster on topic Export Cron Job Reporting Access Denied
Ah, makes sense now thanks - I have updated I can now see the CURL commend in the URL.

The response to my CRON job running

"curl www.verulamcc.org.uk/index.php?option=co...export&type=TestCron "

{"result":"error", "error":"ACCESS_DENIED"}

For Feeds, I need to be signed in. Is this the same for Exports? Or should vData use the parameters in the CRON job to store the output directly to the fileplan?

Chris.

Please Log in to join the conversation.

More
01 Mar 2016 10:25 #2113 by Daniel
Replied by Daniel on topic Export Cron Job Reporting Access Denied
Please check the below screenshot again, re-uploaded it.

Thanks
Daniel

Please Log in to join the conversation.

  • Verulam Webmaster
  • Topic Author
  • Offline
  • New Member
  • New Member
More
01 Mar 2016 10:09 #2112 by Verulam Webmaster
Replied by Verulam Webmaster on topic Export Cron Job Reporting Access Denied
Hi Danish,

Did you post that response in the right thread, I can't see the reference to my issue?

The issue was that the feed required a log in to run, which I ended up figuring out with the support of my host provider who had Joomla experience. I'm still not quite there as there is an input called "cbsecuritym3" that seems to change everyday and break my log in script, any advice on this, or general approach would be well received. I'd rather not make the feeds public if I can avoid it.

Thanks, Chris.

Please Log in to join the conversation.

More
24 Feb 2016 17:08 #2090 by Daniel
Replied by Daniel on topic Export Cron Job Reporting Access Denied
Hello,
Please download the latest package vData 2.0.5. We have modified Cron Feature ( Please check the new Cron URL ). Please modify profile settings before making any import / export. Please check the attached screenshot.



Thanks
Daniel

Please Log in to join the conversation.

  • Verulam Webmaster
  • Topic Author
  • Offline
  • New Member
  • New Member
More
23 Feb 2016 09:19 #2086 by Verulam Webmaster
Replied by Verulam Webmaster on topic Export Cron Job Reporting Access Denied
Thanks Mike, still no luck unfortunately. I think I need to figure out authentication with wget, although I have tried :)

I'll see if the VDM guys have any suggestions here.

Chris.

Please Log in to join the conversation.

More
22 Feb 2016 21:59 #2082 by Michael Ronayne
Replied by Michael Ronayne on topic Export Cron Job Reporting Access Denied

Verulam Webmaster wrote: /usr/bin/wget -O /var/sites/v/verulamcc.org.uk/public_html/Reports/Server/Members_Emails.csv -o /var/sites/v/verulamcc.org.uk/public_html/Reports/Server/log.txt www.verulamcc.org.uk/index.php?option=co...t&type=VCC_ComExport


I think you need to use quotes around the entire URL in this case:

/usr/bin/wget -O /var/sites/v/verulamcc.org.uk/public_html/Reports/Server/Members_Emails.csv -o /var/sites/v/verulamcc.org.uk/public_html/Reports/Server/log.txt " www.verulamcc.org.uk/index.php?option=co...t&type=VCC_ComExport "

At least this worked for me...

Please Log in to join the conversation.

  • Verulam Webmaster
  • Topic Author
  • Offline
  • New Member
  • New Member
More
22 Feb 2016 21:30 #2081 by Verulam Webmaster
Replied by Verulam Webmaster on topic Export Cron Job Reporting Access Denied
Danish,

I'm getting the login page of my site as the output of my cron job, I've tried all the wget authentication I can google but I'm not winning :S (post-data save-data loadcookies... etc.)

I can see that the path I define in vData job config is not actually used, but the cron job output is. Is this the right approach?

/usr/bin/wget -O /var/sites/v/verulamcc.org.uk/public_html/Reports/Server/Members_Emails.csv -o /var/sites/v/verulamcc.org.uk/public_html/Reports/Server/log.txt www.verulamcc.org.uk/index.php?option=co...t&type=VCC_ComExport


Thanks, Chris.

Please Log in to join the conversation.

More
22 Feb 2016 15:14 #2080 by Michael Ronayne
Replied by Michael Ronayne on topic Export Cron Job Reporting Access Denied
Chris,

Thank you for your input - that was all I needed to move forward. I've successfully created a cron job to execute the vData export that I was trying to run.

Regards,
Mike

Please Log in to join the conversation.

  • Verulam Webmaster
  • Topic Author
  • Offline
  • New Member
  • New Member
More
22 Feb 2016 14:12 #2079 by Verulam Webmaster
Replied by Verulam Webmaster on topic Export Cron Job Reporting Access Denied
Hi Michael,

I'm a newbie myself, but when I got that error it was that the bash script that my provider 'VISAHOST' created, perhaps the response can help you too. I marked this as fixed when my issue was resolved so you might need open a new ticket for a response from the WDM guys.

The reason was due to the lines I was calling the URL with:

/usr/bin/wget -O /dev/null -o /dev/null

The following combined with a wget command till do:

-O write documents to FILE.
-o log messages to FILE

The cron is set up to run each of this tasks to the /dev/null directory, this directory is used to ignore all output written in it and as such you end up with an output of only the number of processes run from the query, or an error. Update these locations to where you want the file to go.

Chris

Please Log in to join the conversation.

More
20 Feb 2016 17:28 #2076 by Michael Ronayne
Replied by Michael Ronayne on topic Export Cron Job Reporting Access Denied
How do I submit the cron job. I know how to do this in general via my Cpanel cron control panel but using the URL link generated on my cron job produces a "file not found" error when the cron job attempts to run?

Am I missing something here?

Please Log in to join the conversation.

  • Verulam Webmaster
  • Topic Author
  • Offline
  • New Member
  • New Member
More
19 Feb 2016 13:32 #2057 by Verulam Webmaster
Replied by Verulam Webmaster on topic Export Cron Job Reporting Access Denied
I understand now, thanks.

Please Log in to join the conversation.

More
19 Feb 2016 10:43 #2055 by Daniel
Replied by Daniel on topic Export Cron Job Reporting Access Denied
Hi,
You can not execute Cron Job URL manually, It would work only when Cron Job on your server would trigger it.

Thanks
Daniel

Please Log in to join the conversation.

  • Verulam Webmaster
  • Topic Author
  • Offline
  • New Member
  • New Member
More
19 Feb 2016 10:26 - 19 Feb 2016 10:26 #2054 by Verulam Webmaster
Export Cron Job Reporting Access Denied was created by Verulam Webmaster
Hi,

I have set up a Cron Jon link to run a SQl query and store the resulting CSV file on the local server. The SQL works OK (as a quick export) but when I use the URL I get this message:

{"result":"error", "error":"ACCESS_DENIED"}

I assume that it's when the CSV is trying to be written to the local server, but not sure by what user or what permissions are required.

Any ideas?

Thanks, Chris.
Last edit: 19 Feb 2016 10:26 by Verulam Webmaster.

Please Log in to join the conversation.

Cron Job Starts