motioneye-project / motioneye

A web frontend for the motion daemon.
GNU General Public License v3.0
3.98k stars 653 forks source link

Dropbox: Obtain Key leads to 'Invalid client_id: "dropbox_client_id_placeholder"' #1958

Closed kristianrl closed 3 years ago

kristianrl commented 3 years ago

I'm trying to set up Dropbox upload of my MotionEye recordings.

I clicked Obtain Key, while logged in as admin: image and it sends me to the URL _https://www.dropbox.com/oauth2/authorize?response_type=code&client_id=dropbox_client_id_placeholder_

Error (400) It seems the app you were using submitted a bad request. If you would like to report this error to the app's developer, include the information below.

More details for developers Invalid client_id: "dropbox_client_id_placeholder".

I have tried while being logged in to Dropbox, as well as in an incognito session while logged out of Dropbox.

I could imagine that someplace in the code, dropbox_client_id_placeholder is hardcoded instead of an actual Dropbox client ID.

starbasessd commented 3 years ago

What version of motion & motionEye are you running?

On Mon, Nov 30, 2020 at 10:39 AM Kristian Risager Larsen < notifications@github.com> wrote:

I'm trying to set up Dropbox upload of my MotionEye recordings.

I clicked Obtain Key, while logged in as admin: [image: image] https://user-images.githubusercontent.com/2519890/100613150-56968680-3314-11eb-945e-883d54da767f.png and it sends me to the URL https://www.dropbox.com/oauth2/authorize?response_type=code&client_id=dropbox_client_id_placeholder https://www.dropbox.com/oauth2/authorize?response_type=code&client_id=dropbox_client_id_placeholder

Error (400) It seems the app you were using submitted a bad request. If you would like to report this error to the app's developer, include the information below.

More details for developers Invalid client_id: "dropbox_client_id_placeholder".

I have tried while being logged in to Dropbox, as well as in an incognito session while logged out of Dropbox.

I could imagine that someplace in the code, dropbox_client_id_placeholder is hardcoded instead of an actual Dropbox client ID.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneye/issues/1958, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHNJ4SWITYJMK6GUYS3SSO4CJANCNFSM4UHXQG6Q .

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

kristianrl commented 3 years ago

Hi @starbasessd , I'm using the most recent master-amd64 Docker build:

motionEye Version | 0.42 Motion Version | 4.2.2 OS Version | Ubuntu 18.10

starbasessd commented 3 years ago

I am setting up a Dropbox connection on a dev20201026, hang on...

On Mon, Nov 30, 2020 at 4:23 PM Kristian Risager Larsen < notifications@github.com> wrote:

Hi @starbasessd https://github.com/starbasessd , I'm using the most recent master-amd64 Docker build https://hub.docker.com/layers/ccrisan/motioneye/master-amd64/images/sha256-1704cddc44e0bc7e1c4aff9f1f6546127584e8351c04a0faa1d46c7fb791180b?context=explore :

motionEye Version | 0.42 Motion Version | 4.2.2 OS Version | Ubuntu 18.10

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneye/issues/1958#issuecomment-736065097, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHNBFQHXTBET3EOKOFLSSQEOFANCNFSM4UHXQG6Q .

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

starbasessd commented 3 years ago

Set up basic DropBox account. Installed local DropBox app for Win10 Set up /camtest/ folder Requested Dropbox key using button, installed, working. Now checking a docker install in a few minutes (gotta build a Ubuntu Server for the Docker.)

On Mon, Nov 30, 2020 at 4:39 PM Kevin Shumaker kevin.shumaker@gmail.com wrote:

I'll then check the Docker version.

On Mon, Nov 30, 2020 at 4:38 PM Kevin Shumaker kevin.shumaker@gmail.com wrote:

I am setting up a Dropbox connection on a dev20201026, hang on...

On Mon, Nov 30, 2020 at 4:23 PM Kristian Risager Larsen < notifications@github.com> wrote:

Hi @starbasessd https://github.com/starbasessd , I'm using the most recent master-amd64 Docker build https://hub.docker.com/layers/ccrisan/motioneye/master-amd64/images/sha256-1704cddc44e0bc7e1c4aff9f1f6546127584e8351c04a0faa1d46c7fb791180b?context=explore :

motionEye Version | 0.42 Motion Version | 4.2.2 OS Version | Ubuntu 18.10

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneye/issues/1958#issuecomment-736065097, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHNBFQHXTBET3EOKOFLSSQEOFANCNFSM4UHXQG6Q .

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

starbasessd commented 3 years ago

Confirm issue on docker image in Ubuntu 18.04 host (fully updated) (amd64) and RaspberryPiOS (fully updated) (armhf). image Dropbox works in any 'normal' (read: non-docker) install (Tested Hosts: Ubuntu 18.04, Ubuntu 20.04 & 20.10, RaspberryPiOS 2020-08-20, and motionEyeOS dev20201026.

starbasessd commented 3 years ago

Now doing a BYOD (Build Your Own Docker) install on a P4-4GB to see what's current in the dev branch Previous tests were don with the command(s) found here: https://github.com/ccrisan/motioneye/wiki/Install-In-Docker AMD64:

docker run --name="motioneye" -p 8765:8765 --hostname="motioneye" -v /etc/localtime:/etc/localtime:ro -v /etc/motioneye:/etc/motioneye -v /var/lib/motioneye:/var/lib/motioneye --restart="always" --detach=true ccrisan/motioneye:master-amd64

and ARMHF

docker run --name="motioneye" -p 8765:8765 --hostname="motioneye" -v /etc/localtime:/etc/localtime:ro -v /etc/motioneye:/etc/motioneye -v /var/lib/motioneye:/var/lib/motioneye --restart="always" --detach=true ccrisan/motioneye:master-armhf

Now running the BYOD using the command:

docker build --build-arg VCS_REF=$(git rev-parse HEAD) --build-arg BUILD_DATE=$(date +"%Y-%m-%dT%H:%M:%SZ") -t ccrisan/motioneye:master-armhf -f extra/Dockerfile.armv7-armhf .

On Mon, Nov 30, 2020 at 5:01 PM Kevin Shumaker kevin.shumaker@gmail.com wrote:

Set up basic DropBox account. Installed local DropBox app for Win10 Set up /camtest/ folder Requested Dropbox key using button, installed, working. Now checking a docker install in a few minutes (gotta build a Ubuntu Server for the Docker.)

On Mon, Nov 30, 2020 at 4:39 PM Kevin Shumaker kevin.shumaker@gmail.com wrote:

I'll then check the Docker version.

On Mon, Nov 30, 2020 at 4:38 PM Kevin Shumaker kevin.shumaker@gmail.com wrote:

I am setting up a Dropbox connection on a dev20201026, hang on...

On Mon, Nov 30, 2020 at 4:23 PM Kristian Risager Larsen < notifications@github.com> wrote:

Hi @starbasessd https://github.com/starbasessd , I'm using the most recent master-amd64 Docker build https://hub.docker.com/layers/ccrisan/motioneye/master-amd64/images/sha256-1704cddc44e0bc7e1c4aff9f1f6546127584e8351c04a0faa1d46c7fb791180b?context=explore :

motionEye Version | 0.42 Motion Version | 4.2.2 OS Version | Ubuntu 18.10

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneye/issues/1958#issuecomment-736065097, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHNBFQHXTBET3EOKOFLSSQEOFANCNFSM4UHXQG6Q .

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

starbasessd commented 3 years ago

Even the BYOD (Build Your Own Docker) has the issue. Tagged as bug in Docker. @ccrisan notified.

starbasessd commented 3 years ago

As a work-around, I can recommend installing motion/motionEye in the host system (use the Ubuntu https://github.com/ccrisan/motioneye/wiki/%28Install-On-Ubuntu-%2820.04-or-Newer%29 instructions for any Debian-type install)

starbasessd commented 3 years ago

I'll then check the Docker version.

On Mon, Nov 30, 2020 at 4:38 PM Kevin Shumaker kevin.shumaker@gmail.com wrote:

I am setting up a Dropbox connection on a dev20201026, hang on...

On Mon, Nov 30, 2020 at 4:23 PM Kristian Risager Larsen < notifications@github.com> wrote:

Hi @starbasessd https://github.com/starbasessd , I'm using the most recent master-amd64 Docker build https://hub.docker.com/layers/ccrisan/motioneye/master-amd64/images/sha256-1704cddc44e0bc7e1c4aff9f1f6546127584e8351c04a0faa1d46c7fb791180b?context=explore :

motionEye Version | 0.42 Motion Version | 4.2.2 OS Version | Ubuntu 18.10

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneye/issues/1958#issuecomment-736065097, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHNBFQHXTBET3EOKOFLSSQEOFANCNFSM4UHXQG6Q .

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

sukanth commented 3 years ago

I have the same issue.. any idea on when it will be fixed? @ccrisan @starbasessd

starbasessd commented 3 years ago

I just tested, and it worked fine for me. Took me into the sign-on page, I used my account info, and it gave me a key. I copied/pasted the key, clicked apply, then clicked test and it was fine. Using motion 4.3.1, motionEye 0.42.1 on Ubuntu 20.04, all fully updated. Also tested on RPiZeroW 20200606, same result. Be sure to clear your browser cache before trying.

On Mon, Jan 4, 2021 at 9:35 AM Sukanth Gunda notifications@github.com wrote:

I have the same issue.. any idea on when it will be fixed? @ccrisan https://github.com/ccrisan @starbasessd https://github.com/starbasessd

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneye/issues/1958#issuecomment-754010406, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHMM5566CATEU5YSD7LSYHG3ZANCNFSM4UHXQG6Q .

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

sukanth commented 3 years ago

it worked fine for me on ther motioneyeOS but not in the motioneye UI

starbasessd commented 3 years ago

Just tested on my production hub (previous test was on a purpose built test VM) same steps, same successful result.

On Fri, Jan 8, 2021 at 4:19 PM Sukanth Gunda notifications@github.com wrote:

it worked fine for me on ther motioneyeOS but not in the motioneye UI

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneye/issues/1958#issuecomment-757003187, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHJVCLZSITJU4JIPZSLSY5ZGNANCNFSM4UHXQG6Q .

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

sukanth commented 3 years ago

This is what happens for me when i click on ObtainKey image

starbasessd commented 3 years ago

I assume you already have a Dropbox account? Did you clear cache in whichever browser is triggered?

On Fri, Jan 8, 2021 at 4:29 PM Sukanth Gunda notifications@github.com wrote:

This is what happens for me when i click on ObtainKey [image: image] https://user-images.githubusercontent.com/8810504/104065909-23260200-51c6-11eb-92d1-365c832b89c9.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneye/issues/1958#issuecomment-757006710, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHL7ZQ3F3PVZ2A5SQRDSY52J7ANCNFSM4UHXQG6Q .

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

sukanth commented 3 years ago

this is the version i am running on image

sukanth commented 3 years ago

I assume you already have a Dropbox account? Did you clear cache in whichever browser is triggered? On Fri, Jan 8, 2021 at 4:29 PM Sukanth Gunda @.***> wrote: This is what happens for me when i click on ObtainKey [image: image] https://user-images.githubusercontent.com/8810504/104065909-23260200-51c6-11eb-92d1-365c832b89c9.png — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#1958 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHL7ZQ3F3PVZ2A5SQRDSY52J7ANCNFSM4UHXQG6Q . -- Thanks Kevin Shumaker Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel N38° 19' 56.52" W85° 45' 8.56" Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

Yes i do have dropbox and did clear the cache several times and tried different browsers as well

starbasessd commented 3 years ago

Upgrade to motion 4.3.1 with the following commands:

get https://github.com/Motion-Project/motion/releases/download/release-4.3.1/pi_buster_motion_4.3.1-1_armhf.deb https://github.com/Motion-Project/motion/releases/download/release-4.2.2/pi_buster_motion_4.2.2-1_armhf.deb dpkg -i pi_buster_motion_4.3.1-1_armhf.deb

pip install motioneye --upgrade systemctl restart motioneye

On Fri, Jan 8, 2021 at 4:31 PM Sukanth Gunda notifications@github.com wrote:

I assume you already have a Dropbox account? Did you clear cache in whichever browser is triggered? … <#m3488693034648372828> On Fri, Jan 8, 2021 at 4:29 PM Sukanth Gunda @.***> wrote: This is what happens for me when i click on ObtainKey [image: image] https://user-images.githubusercontent.com/8810504/104065909-23260200-51c6-11eb-92d1-365c832b89c9.png — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#1958 (comment) https://github.com/ccrisan/motioneye/issues/1958#issuecomment-757006710>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHL7ZQ3F3PVZ2A5SQRDSY52J7ANCNFSM4UHXQG6Q . -- Thanks Kevin Shumaker Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel N38° 19' 56.52" W85° 45' 8.56" Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

Yes i do have dropbox and did clear the cache several times and tried different browsers as well

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneye/issues/1958#issuecomment-757007665, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHNTVUITVQVGYTEH2STSY52URANCNFSM4UHXQG6Q .

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

sukanth commented 3 years ago

Upgrade to motion 4.3.1 with the following commands: get https://github.com/Motion-Project/motion/releases/download/release-4.3.1/pi_buster_motion_4.3.1-1_armhf.deb https://github.com/Motion-Project/motion/releases/download/release-4.2.2/pi_buster_motion_4.2.2-1_armhf.deb dpkg -i pi_buster_motion_4.3.1-1_armhf.deb pip install motioneye --upgrade systemctl restart motioneye On Fri, Jan 8, 2021 at 4:31 PM Sukanth Gunda notifications@github.com wrote: I assume you already have a Dropbox account? Did you clear cache in whichever browser is triggered? … <#m3488693034648372828> On Fri, Jan 8, 2021 at 4:29 PM Sukanth Gunda @.***> wrote: This is what happens for me when i click on ObtainKey [image: image] https://user-images.githubusercontent.com/8810504/104065909-23260200-51c6-11eb-92d1-365c832b89c9.png — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#1958 (comment) <#1958 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHL7ZQ3F3PVZ2A5SQRDSY52J7ANCNFSM4UHXQG6Q . -- Thanks Kevin Shumaker Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel N38° 19' 56.52" W85° 45' 8.56" Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it? Yes i do have dropbox and did clear the cache several times and tried different browsers as well — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#1958 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHNTVUITVQVGYTEH2STSY52URANCNFSM4UHXQG6Q . -- Thanks Kevin Shumaker Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel N38° 19' 56.52" W85° 45' 8.56" Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

do you have a docker image for this version.. i am running it inside docker..

sukanth commented 3 years ago

@starbasessd i am running motioneye on raspberry pi using a docker container .. how do i upgrade the motion version inside docker? image image

starbasessd commented 3 years ago

Which Pi? 3B, 3B+, 4B-4GB, or 4B-8GB? Which Docker install? I normally use docker.io Which install of the motionEye Docker? https://github.com/ccrisan/motioneye/wiki/Install-In-Docker Image or Build?

On Sun, Jan 31, 2021 at 11:55 AM Sukanth Gunda notifications@github.com wrote:

@starbasessd https://github.com/starbasessd i am running motioneye on raspberry pi using a docker container .. how do i upgrade the motion version inside docker? [image: image] https://user-images.githubusercontent.com/8810504/106391370-9cbea380-63b2-11eb-9a08-5dc9597fbe2e.png [image: image] https://user-images.githubusercontent.com/8810504/106391387-b233cd80-63b2-11eb-8226-acafc7490193.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneye/issues/1958#issuecomment-770412691, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHOIAPDJNQDKZ3BZXPLS4WDP3ANCNFSM4UHXQG6Q .

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

starbasessd commented 3 years ago

Oh, and what base os? RaspberryPiOS, experimental RaspberryPiOS-64, Ubuntu Server or Desktop? Something else?

On Sun, Jan 31, 2021 at 1:01 PM Kevin Shumaker kevin.shumaker@gmail.com wrote:

Which Pi? 3B, 3B+, 4B-4GB, or 4B-8GB? Which Docker install? I normally use docker.io Which install of the motionEye Docker? https://github.com/ccrisan/motioneye/wiki/Install-In-Docker Image or Build?

On Sun, Jan 31, 2021 at 11:55 AM Sukanth Gunda notifications@github.com wrote:

@starbasessd https://github.com/starbasessd i am running motioneye on raspberry pi using a docker container .. how do i upgrade the motion version inside docker? [image: image] https://user-images.githubusercontent.com/8810504/106391370-9cbea380-63b2-11eb-9a08-5dc9597fbe2e.png [image: image] https://user-images.githubusercontent.com/8810504/106391387-b233cd80-63b2-11eb-8226-acafc7490193.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneye/issues/1958#issuecomment-770412691, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHOIAPDJNQDKZ3BZXPLS4WDP3ANCNFSM4UHXQG6Q .

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

sukanth commented 3 years ago

Which Pi? 3B, 3B+, 4B-4GB, or 4B-8GB? Which Docker install? I normally use docker.io Which install of the motionEye Docker? https://github.com/ccrisan/motioneye/wiki/Install-In-Docker Image or Build? On Sun, Jan 31, 2021 at 11:55 AM Sukanth Gunda @.***> wrote: @starbasessd https://github.com/starbasessd i am running motioneye on raspberry pi using a docker container .. how do i upgrade the motion version inside docker? [image: image] https://user-images.githubusercontent.com/8810504/106391370-9cbea380-63b2-11eb-9a08-5dc9597fbe2e.png [image: image] https://user-images.githubusercontent.com/8810504/106391387-b233cd80-63b2-11eb-8226-acafc7490193.png — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#1958 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHOIAPDJNQDKZ3BZXPLS4WDP3ANCNFSM4UHXQG6Q . -- Thanks Kevin Shumaker Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel N38° 19' 56.52" W85° 45' 8.56" Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

@starbasessd I am using Raspberry Pi-3B Model. I am using this image "ccrisan/motioneye:master-armhf" to build the container.

this is the command that i am using to build the container.

docker run --name="motioneye" -p 8999:8999 --hostname="motioneye" -v /etc/localtime:/etc/localtime:ro -v /etc/motioneye:/etc/motioneye -v /var/lib/motioneye:/var/lib/motioneye -v /dev/video0:/dev/video0 -e TZ=America/Chicago --restart="always" --detach=true --device=/dev/video0 ccrisan/motioneye:master-armhf

the base OS that I am using is Linux raspberrypi 5.4.83-v7+ #1379 SMP Mon Dec 14 13:08:57 GMT 2020 armv7l GNU/Linux

starbasessd commented 3 years ago

How did you install Docker?

Did you try just the base 'recommended' docker command line?

docker run --name="motioneye" \ -p 8765:8765 \ --hostname="motioneye" \ -v /etc/localtime:/etc/localtime:ro \ -v /etc/motioneye:/etc/motioneye \ -v /var/lib/motioneye:/var/lib/motioneye \ --restart="always" \ --detach=true \ ccrisan/motioneye:master-amd64

It picks up whatever time zone you are using on the Pi. What port is 8999? It's not a motionEye port.

As an aside, there are some dependency issues that I haven't been able to resolve by upgrading motion in the docker image. Even upgrading both docker & ffmpeg, there are a lot of codec files that can't or won't upgrade. I've tried to do a Build version, and force the 4.3.2-1 version of motion, but it's still the same. The way I accessed the container is docker exec -it motioneye bash with motioneye already running.

sukanth commented 3 years ago

@starbasessd yes, I did install docker using the recommended command-line method. I followed this blog post to install docker on raspberry pi "https://pcmac.biz/docker-on-raspberry-pi/", please forget about the port. I am using the right one.. 8765. I don't have issues with the timezone. I only wanted to upgrade the motion version. and this "motioneye:master-amd64" image that you mentioned I believe doesn't work on the raspberry pi since RPI is an arm based processor. So you were not able to upgrade to the latest version of motion using the image as well as the build version? so how do we get that thing working? lol

starbasessd commented 3 years ago

That is correct.

On Mon, Feb 1, 2021 at 3:41 PM Sukanth Gunda notifications@github.com wrote:

@starbasessd https://github.com/starbasessd yes, I did install docker using the recommended command-line method. I followed this blog post to install docker on raspberry pi "https://pcmac.biz/docker-on-raspberry-pi/", please forget about the port.. I am using the right one.. 8765. I don't have issues with the timezone. I only wanted to upgrade the motion version. and this "motioneye:master-amd64" image that you mentioned I believe doesn't work on the raspberry pi since RPI is an arm based processor. So you were not able to upgrade to the latest version of motion using the image as well as the build version?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneye/issues/1958#issuecomment-771143723, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHI25GC66GZVBWNTHEDS44GXHANCNFSM4UHXQG6Q .

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

starbasessd commented 3 years ago

No response in >30 days. If you are still having issues, please open a new issue.

sukanth commented 3 years ago

No response in >30 days. If you are still having issues, please open a new issue.

yes, I still am not able to upload to dropbox..

vlinnie commented 3 years ago

I also have this problem with the docker version

kestena commented 2 years ago

I found a way to do it under docker.

Go to this link from ccrisan: https://github.com/ccrisan/motioneyeos/blob/master/package/motioneye/dropbox.keys

You will find the keys to Dropbox there.

Now go to your raspberry pi, and locate the uploadservices.py file. Some find it under /usr/local/lib/python2.7/dist-packages/motioneye/uploadservices.py, I personally found mine under docker since I run my version under docker.

If you use docker locate the file using sudo find . -name uploadservices.py.

The path will be something like docker/use/lib/overlay2/somenumbersandletters/usr/lib/etc....

I stopped the docker container first before attempting the changes in the uploadservices.py file. To do that just list the container under docker with docker container ls

Then copy the motioneye container (letters and number). Stop the container: docker container stop [name of container]

Nano to uploadservices.py, scroll until you find the Dropbox section and exchange the "dropbox_client_id_placeholder" with the first client_id from the Github link I pasted in the beginning.

Do the same for the second setting there named: NOT_SO_SECRET something. Exchange the parameter with the second parameter from the Github link. Save with CTRL X, Yes, Enter. Restart the docker container with docker container start [name of container] and you are done here.

Go to the Motioneye settings, under Dropbox now it should work!

Hopefully I was able to help you.

Regards, kestena

sukanth commented 2 years ago

Thank you so much @kestena will try that out and let you know if that works

update: I just tried it out and it's working now.. thanks a bunch.

noeldum commented 2 years ago

Same problem with dropbox "Test Service" hanging and not going anywhere. This is on raspbian bullseye where motioneye was installed.

motionEye Version | 0.42.1 Motion Version | 4.3.2 OS Version | Raspbian 11

I checked the CLIENT_ID and CLIENT_NOT_SO_SECRET and they are the same as indicated in the link.

It works on the motioneyeos image on a pi but here on the installed version on top of Raspbian it does not work.

noeldum commented 2 years ago

same thing with google drive actually. Everything just hangs.

MichaIng commented 2 years ago

Please try the Python 3 based dev version which should have this fixed: https://github.com/motioneye-project/motioneye/tree/dev#installation

noeldum commented 2 years ago

ok. I have flashed a new raspbian and re-installed motioneye as suggested.

Still running into troubles with dropbox.

I had to change the CLIENT_ID key as mentioned above. Not sure why this is not done at installation time.

Then I came across this error when doing "Test Service".

Screenshot_2022-10-02_19-28-19

Looking at the uploadservices.json file I did get my access_token and refresh_token populated. The upload does not seem to function though.

noeldum commented 2 years ago

alright. upload working now. Was far behind for some reasons.

RoyalOughtness commented 1 year ago

@MichaIng this issue is present on the latest dev version. I'm not using docker and am running raspberrypios 11. This issue should be reopened.

RoyalOughtness commented 1 year ago

In the python2 branch, this placeholder is replaced here:

https://github.com/motioneye-project/motioneye/blob/python2/setup.py#L30

where is this done on the dev branch?

lucadjc commented 1 year ago

I found a way to do it under docker.

Go to this link from ccrisan: https://github.com/ccrisan/motioneyeos/blob/master/package/motioneye/dropbox.keys

You will find the keys to Dropbox there.

Now go to your raspberry pi, and locate the uploadservices.py file. Some find it under /usr/local/lib/python2.7/dist-packages/motioneye/uploadservices.py, I personally found mine under docker since I run my version under docker.

If you use docker locate the file using sudo find . -name uploadservices.py.

The path will be something like docker/use/lib/overlay2/somenumbersandletters/usr/lib/etc....

I stopped the docker container first before attempting the changes in the uploadservices.py file. To do that just list the container under docker with docker container ls

Then copy the motioneye container (letters and number). Stop the container: docker container stop [name of container]

Nano to uploadservices.py, scroll until you find the Dropbox section and exchange the "dropbox_client_id_placeholder" with the first client_id from the Github link I pasted in the beginning.

Do the same for the second setting there named: NOT_SO_SECRET something. Exchange the parameter with the second parameter from the Github link. Save with CTRL X, Yes, Enter. Restart the docker container with docker container start [name of container] and you are done here.

Go to the Motioneye settings, under Dropbox now it should work!

Hopefully I was able to help you.

Regards, kestena

@kestena, hi, I'm receiving the following error after the key handshaking. is it working to you? ERROR: dropbox: request failed: POST data should be bytes, an iterable of bytes, or a file object. It cannot be of type str.