Closed Bra1nsen closed 1 year ago
I would like to start from the beginning again.
I tried:
sudo rm -r Dropbox-Uploader
but after recloning I dont get back to the config...
I guess, I did something wrong in the config process..
pi@allskyLA:~/Dropbox-Uploader $ ./dropbox_uploader.sh -d list / 1.0 Linux allskyLA 5.15.61-v7l+ #1579 SMP Fri Aug 26 11:13:03 BST 2022 armv7l GNU/Linux Raspbian GNU/Linux 11 \n \l + RESPONSE_FILE=/tmp/du_resp_debug + [[ '' == '' ]] + BIN_DEPS='sed basename date grep stat dd mkdir curl' + CURL_BIN=curl + which sed basename date grep stat dd mkdir curl + [[ 0 != 0 ]] + which readlink + [[ 0 == 0 ]] ++ readlink -m //test + [[ /test == \/\t\e\s\t ]] + HAVE_READLINK=1 + builtin printf '' + [[ 0 == 0 ]] + PRINTF='builtin printf' + PRINTF_OPT='-v o' + [[ -e /home/pi/.dropbox_uploader ]] + source /home/pi/.dropbox_uploader + [[ 2.0 != \2\.\0 ]] + [[ XXXXXXXX = '' ]] + [[ XXXXXXXX = '' ]] + [[ 9Nqw7WerkVwAAAAAAAAAXXXXXXXXXXXXXXXXXXXXXX = '' ]] + ensure_accesstoken ++ date +%s + local now=1664093652 + [[ '' > 1664093652 ]] + curl https://api.dropbox.com/oauth2/token -d grant_type=refresh_token -d refresh_token=9Nqw7WerkVwAAAAAAAAAAaaA-m3xYI6XXXXXXXXXXXXXXXXXXXXXff8QTC -u 1qgugzv4akxq4zz:4bj2x0gdtgxcvv8 -o /tmp/du_resp_debug + check_http_response + CODE=0 + case $CODE in + grep -q '^HTTP/[12].* 400' /tmp/du_resp_debug ++ sed -n 's/.*"access_token": "\([^"]*\).*/\1/p' /tmp/du_resp_debug + OAUTH_ACCESS_TOKEN=sl.BP6xsOhT6mkLhnKyVDAK3-VXXXXXXXXXXXXXXc1Ea0u5NUfv-INZmo2c42VaYT_qjH_GjRmYp-eUKHu-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXwYA ++ sed -n 's/.*"expires_in": \([0-9]*\).*/\1/p' /tmp/du_resp_debug + local expires_in=14400 + OAUTH_ACCESS_TOKEN_EXPIRE=1664107992 + COMMAND=list + ARG1=/ + ARG2= + let argnum=3-2 + case $COMMAND in + DIR_DST=/ + [[ / == '' ]] + db_list // ++ normalize_path // +++ builtin printf %s / ++ path=/ ++ [[ 1 == 1 ]] +++ readlink -m / ++ new_path=/ ++ [[ / == \/ ]] ++ [[ 1 -gt 1 ]] ++ echo / + local DIR_DST=/ + print ' > Listing "/"... ' + [[ 0 == 0 ]] + echo -ne ' > Listing "/"... ' > Listing "/"... + [[ / == \/ ]] + DIR_DST= ++ db_list_outfile '' ++ local DIR_DST= ++ local HAS_MORE=false ++ local CURSOR= ++ [[ -n '' ]] ++ OUT_FILE=/tmp/du_tmp_out_6572 ++ true ++ [[ false == \t\r\u\e ]] ++ ensure_accesstoken +++ date +%s ++ local now=1664093653 ++ [[ 1664107992 > 1664093653 ]] ++ return ++ curl -X POST -L -s --show-error --globoff -i -o /tmp/du_resp_debug --header 'Authorization: Bearer sl.BP6xsOhT6mkLhnKyVDAK3-VFp9rFiAdXXXXXXXXXXXXXXXXXXXX-INZmo2c42VaYT_qjH_GjRmYp-eUKHu-z9Ux4NXXXXXXXXXXXXXXXXXXXXXXXXXXXQdbpgNU7vwYA' --header 'Content-Type: application/json' --data '{"path": "","include_media_info": false,"include_deleted": false,"include_has_explicit_shared_members": false}' https://api.dropboxapi.com/2/files/list_folder ++ check_http_response ++ CODE=0 ++ case $CODE in ++ grep -q '^HTTP/[12].* 400' /tmp/du_resp_debug +++ sed -n -e 's/{"error": "\([^"]*\)"}/\1/p' /tmp/du_resp_debug ++ ERROR_MSG= ++ case $ERROR_MSG in +++ sed -n 's/.*"has_more": *\([a-z]*\).*/\1/p' /tmp/du_resp_debug ++ HAS_MORE= +++ sed -n 's/.*"cursor": *"\([^"]*\)".*/\1/p' /tmp/du_resp_debug ++ CURSOR= ++ grep -q '^HTTP/[12].* 200' /tmp/du_resp_debug ++ return + OUT_FILE= + '[' -z '' ']' + print 'FAILED\n' + [[ 0 == 0 ]] + echo -ne 'FAILED\n' FAILED + ERROR_STATUS=1 + return + remove_temp_files + [[ 1 == 0 ]] + [[ 1 -ne 0 ]] + echo 'Some error occured. rerun the script with "-d" option and check the output and logfile: /tmp/du_resp_debug.' Some error occured. rerun the script with "-d" option and check the output and logfile: /tmp/du_resp_debug. + exit 1
https://stackoverflow.com/questions/43683686/how-to-change-dropbox-uploader-sh-account-set-up
I would like to start from the beginning again.
I tried:
sudo rm -r Dropbox-Uploader
but after recloning I dont get back to the config...
I guess, I did something wrong in the config process..