Jump to content
XPEnology Community

The New Active Backup


brauner

Recommended Posts

On 10/20/2022 at 12:54 PM, HorstHoden said:

https://MYIP:5001/webapi/auth.cgi?api=SYNO.ActiveBackup.Activation&method=set&version=1&activated=true&serial_number=MYXPENOLOGYSERIAL

{

 

    "error": {
        "code": 119
    },
    "success": false
}

This works for Active Backup for Business. But does one know the URL for Active Backup for Google Workspace...? 🤔

Link to comment
Share on other sites

Hello, I tried different ways:

https://dva1622:5001/webapi/auth.cgi?api=SYNO.API.Auth&method=Login&version=1&account=****&passwd=****
https://dva1622:5001/webapi/auth.cgi?api=SYNO.API.Auth&method=Login&version=1&account=****&passwd=****&format=cookie
https://dva1622:5001/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=****&passwd=****&format=cookie

 

But the result is always the same.

 

What am I doing wrong? DSM 7.1.1-42962 Update 2

 

 

Снимок экрана 2022-12-13 144549.png

 

But as I understood in my case, the port does not need to be specified, then I get error 103

 

2115562546_2022-12-13162106.thumb.png.a9a3b08082e48eff43629dbfc3e4aba9.png

Edited by Grifon_A
Link to comment
Share on other sites

8 часов назад, Gera_Shturman сказал:

https://dva1622/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=****&passwd=****&format= cookie

{"data":{"did":"BDnQeVhFclDKQKV-bTFfBDD7Q312OYeHFSafokI_1VE3zNfPvMMiQwFKwDyDIMlFzLVe5KE7iBbLvupcGKRcEg","sid":"03bHfm3VjOLMoyHQe3JyXMc6SMyZapWtq-QmTiE9LyQa8kiE9n_jFgb_Cjif5rt-hIlh-LRbGrAxKZ_BFrU4FQ"},"success":true}

8 часов назад, Gera_Shturman сказал:

https://dva1622/webapi/entry.cgi?api=SYNO.ActiveBackup.Activation&method=set&version=1&activated=true&serial_number="****"

{"error":{"code":102},"success":false}

Link to comment
Share on other sites

4 часа назад, Grifon_A сказал:

{"data":{"did":"BDnQeVhFclDKQKV-bTFfBDD7Q312OYeHFSafokI_1VE3zNfPvMMiQwFKwDyDIMlFzLVe5KE7iBbLvupcGKRcEg","sid":"03bHfm3VjOLMoyHQe3JyXMc6SMyZapWtq-QmTiE9LyQa8kiE9n_jFgb_Cjif5rt-hIlh-LRbGrAxKZ_BFrU4FQ"},"success":true}

{"error":{"code":102},"success":false}

You may have an error in your login or password or serial number. Repeat again, check the correctness of the parameters being changed. It worked for me.

Link to comment
Share on other sites

7 часов назад, sumonchai сказал:

DS3617xs DSM 7.1.1-42962 Update 2
Not work for activate 

 

https://ip_NAS/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=****&passwd=****&format= cookie

https://ip_NAS/webapi/entry.cgi?api=SYNO.ActiveBackup.Activation&method=set&version=1&activated=true&serial_number="****"

 

Work activate

image.thumb.png.10523520be0a46200834fb20a8b1cd48.pngimage.thumb.png.5690ee024f65137a459dff9816679d03.png

  • Like 1
Link to comment
Share on other sites

On 12/15/2022 at 5:59 PM, Gera_Shturman said:

https://ip_NAS/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=****&passwd=****&format= cookie

https://ip_NAS/webapi/entry.cgi?api=SYNO.ActiveBackup.Activation&method=set&version=1&activated=true&serial_number="****"

 

Work activate

image.thumb.png.10523520be0a46200834fb20a8b1cd48.pngimage.thumb.png.5690ee024f65137a459dff9816679d03.png

 

OK. It Work.

I Use Firefox Activated 👍👍👍😁😁

  • Like 1
Link to comment
Share on other sites

Firstly, prep the two URL lines fully, for copy and paste into the address bar.

 

(i used CHrome on a brand new installation of DSM 7.1.1-42962 Update 1 )

 

important: START AN INCOGNITO tab to ensure independence from any existing logged in sessions !!!!

 

PAste the FIRST LINE in:

 

If using port 5000 and it is http (not https)....whatever your NAS is set to..eg port 5001 for https

 

replace IP_ADDRESS, USERNAME and PASS below with your admin details:-

 

FIRST URL

http://IP_ADDRESS:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=USERNAME&passwd=PASS&format=%20cookie

 

FIRST URL LINE result looks like:-  (replace some of string with some etc_etc_etc)

 

{"data":{"did":"gL9TOKetc etc etc.........pLh9mJt6w","sid":"bihju7DywBW8etc_etc_etcxHZXQ"},"success":true}

 

If you do not get something like above, recheck your FIRST LINE URL...no point proceeding to the next step until you see something similar to above, with long strings for "did" and "sid".

 

then paste in the same address bar the second link:

 

replace SERIALNUMBER with the SERIAL NUMBER from your DSM control panel INFO page:

 

SECOND URL 

http://IP_ADDRESS:5000/webapi/entry.cgi?api=SYNO.ActiveBackup.Activation&method=set&version=1&activated=true&serial_number="SERIALNUMBER"

 

SECOND URL LINE result:

{"data":{"activated":true},"success":true}

 

  • Like 4
Link to comment
Share on other sites

I've created a page that generates the links required.

 

https://alxr0101.github.io/

 

 

Just input your details, hit the Get Links button and then copy each of the two links generated.

 

IMPORTANT:

Need to run these in  a "clean" tab...ie cannot be logged in. Easiest is run a new INCOGNITO WINDOW (chrome) or equivalent in EDGE ("new InPrivate WIndow")/Firefox etc.

Then paste each into the SAME address bar, the LOGIN one first followed by the ACTIVATE.

 

 

Edited by alx0101
updated URL
  • Like 5
  • Thanks 1
Link to comment
Share on other sites

On 10/20/2022 at 12:54 PM, HorstHoden said:

https://MYIP:5001/webapi/auth.cgi?api=SYNO.ActiveBackup.Activation&method=set&version=1&activated=true&serial_number=MYXPENOLOGYSERIAL

I obtain 
{"error":{"code":102},"success":false}
Do you know where is the problem? Thanks!

Link to comment
Share on other sites

В 28.12.2022 в 17:54, alx0101 сказал:

Firstly, prep the two URL lines fully, for copy and paste into the address bar.

 

(i used CHrome on a brand new installation of DSM 7.1.1-42962 Update 1 )

 

important: START AN INCOGNITO tab to ensure independence from any existing logged in sessions !!!!

 

PAste the FIRST LINE in:

 

If using port 5000 and it is http (not https)....whatever your NAS is set to..eg port 5001 for https

 

replace IP_ADDRESS, USERNAME and PASS below with your admin details:-

 

FIRST URL

http://IP_ADDRESS:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=USERNAME&passwd=PASS&format=%20cookie

 

FIRST URL LINE result looks like:-  (replace some of string with some etc_etc_etc)

 

{"data":{"did":"gL9TOKetc etc etc.........pLh9mJt6w","sid":"bihju7DywBW8etc_etc_etcxHZXQ"},"success":true}

 

If you do not get something like above, recheck your FIRST LINE URL...no point proceeding to the next step until you see something similar to above, with long strings for "did" and "sid".

 

then paste in the same address bar the second link:

 

replace SERIALNUMBER with the SERIAL NUMBER from your DSM control panel INFO page:

 

SECOND URL 

http://IP_ADDRESS:5000/webapi/entry.cgi?api=SYNO.ActiveBackup.Activation&method=set&version=1&activated=true&serial_number="SERIALNUMBER"

 

SECOND URL LINE result:

{"data":{"activated":true},"success":true}

 

 

All works fine in Chrom incognito mode.

Link to comment
Share on other sites

On 1/3/2023 at 3:25 AM, maxime said:

I obtain 
{"error":{"code":102},"success":false}
Do you know where is the problem? Thanks!

 

Assuming your username and password is correct, you did not paste into a new incognito tab (to start a new session).

 

 

Link to comment
Share on other sites

I have the following setup and I try to activate active backup application.

DSM version: DSM 7.1.1-42962 Update 1 - baremetal - HP Proliant microserver GEN10+

I have tried the following:

 

https://my_IP:5001/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=my_user&passwd=my-password&format= cookie

After the first link I get error403 - which means 403 One time password not specified.

image.png.c4171413d5dccac2654d5fe6f98501d9.png

 

https://my_IP:5001/webapi/entry.cgi?api=SYNO.ActiveBackup.Activation&method=set&version=1&activated=true&serial_number="my_serial_number"

The second link, obviously display success=false

image.png.63ee8379c467ce7983d57f33184aa19c.png

 

Any tip/help is highly appreciated.

PS: I have disabled 2FA for this task.

 

Thank you.

Link to comment
Share on other sites

On 1/5/2023 at 9:33 AM, dachriss said:

I have the following setup and I try to activate active backup application.

DSM version: DSM 7.1.1-42962 Update 1 - baremetal - HP Proliant microserver GEN10+

I have tried the following:

 

https://my_IP:5001/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=my_user&passwd=my-password&format= cookie

After the first link I get error403 - which means 403 One time password not specified.

image.png.c4171413d5dccac2654d5fe6f98501d9.png

 

https://my_IP:5001/webapi/entry.cgi?api=SYNO.ActiveBackup.Activation&method=set&version=1&activated=true&serial_number="my_serial_number"

The second link, obviously display success=false

image.png.63ee8379c467ce7983d57f33184aa19c.png

 

Any tip/help is highly appreciated.

PS: I have disabled 2FA for this task.

 

Thank you.

 

 

Try putting %20cookie (instead of the (space)cookie.  %20 is equiv to the space that seems to be required after the = sign.

 

Also ensure your are using port 5001 (default) for https (what is your usual login port showing? If no port shows then it's been set to 443 and can leave blank as https:// sets it)

 

Also ensure you paste these URL's into a NEW web browser incognito tab. The first URL generates a new SESSION, the second URL can then activate the service. Must paste into the same address bar as the first.

 

See my URL generator DSM7 (for the first URL, I moved the &format=%20cookie param within the line but the order does not matter).

 

https://alxr0101.github.io/

 

If you DO NOT SEE something like the below, then no point doing the second activation link. First link must return something like this:-

 

SUCCESSFUL URL 1 login link must look like this.., ending in success..true)

 

{"data":{"did":"1HKGYIY___lots of letters...._  JbtmS-xmg","sid":"8bZt__ lots of letters_____NHmDgFxHlOks"},"success":true}

 

SUCCESSFUL second URL result is this:-

 

{"data":{"activated":true},"success":true}

 

Ensure also the username is an admin and the password is nothing complicated ( re: characters and symbols) in case your browser is messing up the encoding.

 

 

Edited by alx0101
Link to comment
Share on other sites

On 1/5/2023 at 9:33 AM, dachriss said:

I have the following setup and I try to activate active backup application.

DSM version: DSM 7.1.1-42962 Update 1 - baremetal - HP Proliant microserver GEN10+

I have tried the following:

 

https://my_IP:5001/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=my_user&passwd=my-password&format= cookie

After the first link I get error403 - which means 403 One time password not specified.

image.png.c4171413d5dccac2654d5fe6f98501d9.png

 

 

 

Suggest temporarily set another admin account (with no 2FA) and use that after confirming it works for login to DSM GUI.

It seems that DSM was still expecting 2FA for the username you set for the activation process.

 

API error code states " 403 2-factor authentication code required"

 

Link to comment
Share on other sites

On 12/15/2022 at 5:59 PM, Gera_Shturman said:

https://ip_NAS/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=****&passwd=****&format= cookie

https://ip_NAS/webapi/entry.cgi?api=SYNO.ActiveBackup.Activation&method=set&version=1&activated=true&serial_number="****"

 

Work activate

image.thumb.png.10523520be0a46200834fb20a8b1cd48.pngimage.thumb.png.5690ee024f65137a459dff9816679d03.png

Thank you, work like a charm !

Link to comment
Share on other sites

  • 2 weeks later...
On 12/15/2022 at 11:59 AM, Gera_Shturman said:

https://ip_NAS/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=****&passwd=****&format= cookie

https://ip_NAS/webapi/entry.cgi?api=SYNO.ActiveBackup.Activation&method=set&version=1&activated=true&serial_number="****"

 

Work activate

image.thumb.png.10523520be0a46200834fb20a8b1cd48.pngimage.thumb.png.5690ee024f65137a459dff9816679d03.png

 

Working great on DSM 7.1.1-42962 Update 3.

Thanks!

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...