- This topic has 9 replies, 2 voices, and was last updated 5 years, 6 months ago by
Wim Meijberg.
Tags: dropbox. token
-
6th November 2016 at 10:14 pm #7411
Last friday I made a backup to Dropbox. I thought all went well. Made changes in the gedcom yesterday and today and wanted to backup again. I think it didn’t do anything. Checked the files in Dropbox and couldn,t find the .ged file created friday nor the one created today.
Then tried again than this error came.
Fatal error: Uncaught exception ‘Dropbox\Exception_InvalidAccessToken’ with message ‘HTTP status 401 {“error”: “Invalid OAuth2 token.”}’ in /home/stambo1q/public_html/kiwitrees/modules_v3/backup_to_dropbox/dropbox-sdk/lib/Dropbox/RequestUtil.php:251 Stack trace: #0 /home/stambo1q/public_html/kiwitrees/modules_v3/backup_to_dropbox/dropbox-sdk/lib/Dropbox/Client.php(558): Dropbox\RequestUtil::unexpectedStatus(Object(Dropbox\HttpResponse)) #1 /home/stambo1q/public_html/kiwitrees/modules_v3/backup_to_dropbox/dropbox-sdk/lib/Dropbox/Client.php(423): Dropbox\Client->chunkedUploadStart(‘PK\x03\x04\n\x00\x00\x00\x08\[email protected]…’) #2 /home/stambo1q/public_html/kiwitrees/modules_v3/backup_to_dropbox/dropbox-sdk/lib/Dropbox/RequestUtil.php(279): Dropbox\Client->Dropbox\{closure}() #3 /home/stambo1q/public_html/kiwitrees/modules_v3/backup_to_dropbox/dropbox-sdk/lib/Dropbox/Client.php(424): Dropbox\RequestUtil::runWithRetry(3, Object(Closure)) #4 /home/stambo1q/public_html/kiwitrees/modules_v3/backup_to_dropbox/dropbox-sdk/lib/Dropbox in /home/stambo1q/public_html/kiwitrees/modules_v3/backup_to_dropbox/dropbox-sdk/lib/Dropbox/RequestUtil.php on line 251 -
7th November 2016 at 7:59 am #7415
1
Made twice a topic on the forum but couldn’t submit.
Submit did work OK for both, but they were regarded as spam by the system. Not sure why, but something in the words used, presumably in the title as the first had no other content. Anyway I have deleted the first and published the second so it is now on the forum.
2
Friday I tested this and it seems good.
Today I wanted to make a new back> up but nothing happened. Just an error.
Did I handle this wrong or is it an error.I can’t tell you what happened. But the error seems to be that your Dropbox “token” is not correct. I’ve been using my copy regularly for weeks now with no problems, and I know of at least two others also not having this problem. So I can only guess:
- Perhaps by mistake you changed or even deleted the token on the config page? (but I doubt this)
- Perhaps there was an error in transmission between your PC and Dropbox servers
I can only suggest you reset the token in kiwitrees (you can read it from the Dropbox app site where you first created it) and try again.
Nigel
My personal kiwitrees site is www.our-families.info -
7th November 2016 at 10:47 am #7418
I have reset the token and the backup was made. But I can’t find the .ged file I have created.
-
7th November 2016 at 11:04 am #7422
I really don’t know how that can happen.
Are the media and zip file you can see in the location Dropbox/Apps/your dropbox folder/Data/ ?
Do you have a copy of your dropbox folders also on your local machine? I use that as well. You need to install the DRopbox app: https://www.dropbox.com/en/help/4454
How large is the .ged file? The backup process is not quick. Perhaps it is not finished
Last idea: check your server logs for errors at that time related to the backup to dropbox module..
Nigel
My personal kiwitrees site is www.our-families.info -
8th November 2016 at 7:35 am #7423
Are the media and zip file you can see in the location Dropbox/Apps/your dropbox folder/Data/ ?
Yes
Do you have a copy of your dropbox folders also on your local machine?
Yes
How large is the .ged file?
1391Kb
This were the last errors in the log.
[06-Nov-2016 21:29:24 Europe/Amsterdam] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/stambo1q/public_html/kiwitrees/modules_v3/backup_to_dropbox/dropbox-sdk/lib/Dropbox/Curl.php on line 92
[06-Nov-2016 22:38:07 Europe/Amsterdam] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/stambo1q/public_html/kiwitrees/modules_v3/backup_to_dropbox/dropbox-sdk/lib/Dropbox/Curl.php on line 71 -
8th November 2016 at 7:47 am #7424
PHP Fatal error: Maximum execution time of 30 seconds
So there is the issue. Can you change that time?
You can try changing it in kiwitrees (Administration > Site administration > Site configuration > PHP time limit)
But important to note the comment there:
You can request a higher or lower limit here, although the server may ignore this request.
If you look at the same setting (max_execution_time) in Administration > Site administration > Site information you will see two figures. On the left (“Local value”) is what you have it set at. On the right (“Master value”) is the maximum the server is configured to allow. If that is 30, then you will need to ask your web host for more.
BUT 30 secs should be enough for a 1391kb file. My main GEDCOM is 7312kb, and that goes through to Dropbox well inside my limit of 120 secs. So perhaps your server has other restrictions?
Nigel
My personal kiwitrees site is www.our-families.info -
8th November 2016 at 7:53 am #7425
One other thought, in Administration > Site administration > Site information do you have this setting:
cURL support -> enabled
Nigel
My personal kiwitrees site is www.our-families.info -
8th November 2016 at 8:19 am #7426
Master value of max execution time is 300 and cURL support is enabled.
So I have to set the max ececution to 300? Or test it with a value between 30 and 300? -
8th November 2016 at 8:20 am #7427
I would set it to 300. Never hurts to have as much memory and time as you can get.
Nigel
My personal kiwitrees site is www.our-families.info -
8th November 2016 at 10:34 am #7428
Set it to 300. Backup finished and the gedcom was uploaded to dropbox. 🙂
Thanks Nigel!
- The topic ‘Backup to dropbox’ is closed to new replies.