code42 / code42cli

MIT License
21 stars 13 forks source link

[Bug] Issue with Running Code42Cli on-Prem solution #353

Closed ishackigozi closed 2 years ago

ishackigozi commented 2 years ago

Description

Steps to Reproduce

  1. I get this error Found for url: https://crashplan.na.corp.samsungelectronics.net:4285/api/v3/auth/jwt?useBody=True
  2. Correct API Url is [ Base URL: crashplan.na.corp.samsungelectronics.net:4285/c42api/v3
  3. Where can I change the URL in the code in the python env.

For example if I run this "code42 devices list --active -f CSV" I get this error.

Error: Unknown problem validating connection. View details in /home/i.kigozi/.code42cli/log/code42_errors.log

Please assist me on how to change the api url in the python env. code42cli 1.8.0

Expected Behavior

Actual Behavior

Basic Information

i.kigozi@SRA-9000000741:~$ python --version Python 2.7.18

Operating System -"Ubuntu 20.04.3 LTS"

timabrmsn commented 2 years ago

Hi @ishackigozi,

This was due to the change in py42 1.19.3 which moved all the c42api/v3 endpoints to a standardized api versioning scheme in the cloud.

Since support for on-premises installations is end-of-life at the end of this month, we won't be altering new versions of py42 for on-premise deployments, but you should be able to downgrade your py42 installation to revert to the previous urls compatible with your on-premise server:

pip uninstall py42
pip install py42==1.19.2

I should also note that the CLI version 1.11.1 updates the minimum py42 requirement to 1.19.3, so CLI version 1.11.0 will also be the latest you'll be able to upgrade to for on-premise servers.

ishackigozi commented 2 years ago

Thank you so much. Works Like a Charm

ishackigozi commented 2 years ago

Hello Tim, I am trying to deactivate several devices. For some reason, I used the same format of the columns for the .csv file obtained from running this command. code42 devices list --active -f CSV > output.csv

I included the devices I wanted to deactivate in a .csv and run the command "code42 devices bulk deactivate List.csv -f CSV > deactivation_results.csv"

In the deactivation_results.csv, I am getting this error

False: The device with GUID 'SRA2030008499 SRA2030008499 Active 2022-02-09T11:13:36.269-05:00 2021-02-03T15:28:09.802-05:00 8.2.1 win 10.0.19041 7.90E+17' was not found.

Please advise on how I am supposed to have the columns in the .csv

Thanks Again, Ishac

timabrmsn commented 2 years ago

Two things I see here:

ishackigozi commented 2 years ago

Hello, My apologies for not communicating ahead of time. I was able to get the csv file. Although, the deactivation does not work Any pointers please. deactivation_results.csv