Jfrog file upload failing with 403 forbidden - rest

I have been trying to upload a file into JFrog artifactory repo from the cli as below and keep getting the 403 Forbidden error. What am I missing as env variables, etc for the upload to go through from the cli?
jf rt u "xyz" --url="http://example.com/ui/repos/tree/General/asdf/cba" --username="afad" --password="********"
Log path: /home/asdf/.jfrog/logs/jfrog-cli.ss.ss.ss.log
[Info][Thread 2]Uploading artifact: xyz
[Warn][Thread 2](Attempt 1) - Failure occurred while uploading to http://example.com/ui/repos/tree/General/asdf/cba/--username=svc#esuk.com/xyz:
server response: 403 Forbidden
[Warn][Thread 2](Attempt 2) - Failure occurred while uploading to http://example.com/ui/repos/tree/General/asdf/cba/--username=svc#esuk.com/xyz:
server response: 403 Forbidden
[Warn][Thread 2](Attempt 3) - Failure occurred while uploading to http://example.com/ui/repos/tree/General/asdf/cba/--username=svc#esuk.com/xyz:
server response: 403 Forbidden
[Warn][Thread 2](Attempt 4) - Failure occurred while uploading to http://example.com/ui/repos/tree/General/asdf/cba/--username=svc#esuk.com/xyz:
server response: 403 Forbidden
[Info] [Thread 2] executor timeout after 3 attempts with 0 milliseconds wait intervals
[Error] server response: 403 Forbidden
[Error] Failed uploading 1 artifacts.
[Error] server response: 403 Forbidden

--username is not a valid argument and the target path is also missing. Use the below command to upload a file.
jf rt u "testfile.txt" "generic-local" --url="https://myartifactory.jfrog.io/artifactory" --user="youruser" --password="yourpassword"
This will upload a file called testfile.txt to the repository generic-local. If you want to deploy to a specific path, you can pass the path after generic-local.
jf rt u "testfile.txt" "generic-local/path1/subpath/" --url="https://myartifactory.jfrog.io/artifactory" --user="youruser" --password="yourpassword"

Related

Error when installing wimic in raspbery pi

I have Raspberry pi 3 x64 when I try to install Wimic I with this command "source install_wimic.sh" I got this Error.
--2023-01-14 21:08:34-- https://github.com/hiro2233/wimic/releases/download//wimic.tar.gz.md5
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2023-01-14 21:08:35 ERROR 404: Not Found.
md5sum: wimic.tar.gz.md5: No such file or directory
MD5SUM mismatch!
Install stopped.
Here is full tutorial https://github.com/hiro2233/wimic

Error uploading google action via gactions

I created a project marvin-xyz, and a json action file marvin.json
When I try to upload it with the CIA tools from google: gactions,
I get the following error:
$gactions test --action_package marvin.json --project marvin-xyz
Pushing the app for the Assistant for testing...
ERROR: Failed to test the app for the Assistant
ERROR: Internal error encountered.
2017/09/28 10:35:28 Server did not return HTTP 200
xyz is just a placeholder here - the project exists - in both cases, the real one has been used
Any advice?
EDIT: here it the update with the verbose option
$gactions --verbose test --action_package marvin.json --project marvin-xyz
Checking for updates...
Successfully fetched update metadata
Finished checking for updates -- no updates available
Pushing the app for the Assistant for testing...
POST /v2/users/me/previews/marvin-xyz:updateFromAgentDraft?updateMask=previewActionPackage.actionPackage.actions%2CpreviewActionPackage.actionPackage.conversations%2CpreviewActionPackage.actionPackage.types%2CpreviewActionPackage.startTimestamp%2CpreviewActionPackage.endTimestamp HTTP/1.1
Host: actions.googleapis.com
User-Agent: Gactions-CLI/2.0.7 (darwin; amd64; stable/XYZ)
Content-Length: 697
Content-Type: application/json
Accept-Encoding: gzip
{"name":"users/me/previews/marvin-xyz","previewActionPackage":{"actionPackage":{"actions":[{"description":"Default Welcome Intent","fulfillment":{"conversationName":"marvin"},"intent":{"name":"actions.intent.MAIN","trigger":{"queryPatterns":[{"queryPatterns":"I want to talk to marvin"},{"queryPatterns":"talk to marvin"},{"queryPatterns":"wake up marvin"},{"queryPatterns":"is marvin there?"},{"queryPatterns":"where is marvin?"},{"queryPatterns":"hello marvin"},{"queryPatterns":"pass me to marvin"},{"queryPatterns":"marvin please"}]}},"name":"MAIN"}],"conversations":{"marvin":{"name":"marvin","url":"https://example.com/sidekick/api/v1/"}}},"name":"users/me/previews/marvin-xyz"}}
Reading credentials from: creds.data
ERROR: Failed to test the app for the Assistant
ERROR: Internal error encountered.
2017/09/29 23:37:09 Server did not return HTTP 200

Trying to recursively download zip files with wget fails with 401 error

I am trying to download all the zip files from the website http://www.minetad.gob.es/energia/balances/Publicaciones/ElectricasMensuales/Paginas/ElectricasMensuales.aspx
Note that the .zip files listed have the route (By using right click over the link and selecting copy link address) in the form, for example the first one http://www.minetad.gob.es/energia/balances/Publicaciones/ElectricasMensuales/2015/Abril_2015.zip
I have tried all the combinations listed here How to download multiple .zip files?, but none of them works. They either download an empty structure of directories, or I get this error message:
For example, this one
wget -r -l1 -nd -H -t1 -nd -N -np -A.zip -erobots=off -U mozilla --random-wait http://www.minetad.gob.es/energia/balances/Publicaciones/ElectricasMensuales/2015
gives me the following error message:
Resolving www.minetad.gob.es (www.minetad.gob.es)... 193.146.1.81, 2001:720:438:400::81
Connecting to www.minetad.gob.es (www.minetad.gob.es)|193.146.1.81|:80... connected.
HTTP request sent, awaiting response... 302 Redirect
Location: http://www.minetad.gob.es/energia/balances/Publicaciones/ElectricasMensuales/2015/Forms/AllItems.aspx [following]
--2017-02-05 18:52:40-- http://www.minetad.gob.es/energia/balances/Publicaciones/ElectricasMensuales/2015/Forms/AllItems.aspx
Reusing existing connection to www.minetad.gob.es:80.
HTTP request sent, awaiting response... 401 Unauthorized
Username/Password Authentication Failed.
Note that I can download every file individually by using the complete url, like this:
wget http://www.minetad.gob.es/energia/balances/Publicaciones/ElectricasMensuales/2015/Abril_2015.zip

/linux-.tar.xz: Scheme missing with buildroot

I followed all the instructions mentioned on this link:http://free-electrons.com/doc/training/buildroot/buildroot-labs.pdf
but when I run :
make
I got these message errors:
>>> linux Downloading
/linux-.tar.xz: Scheme missing.
--2015-08-10 09:19:10-- http://sources.buildroot.net/linux-.tar.xz
Resolving sources.buildroot.net (sources.buildroot.net)... 176.9.16.109
Connecting to sources.buildroot.net (sources.buildroot.net)|176.9.16.109|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-08-10 09:19:10 ERROR 404: Not Found.
make: *** [/home/slim/Downloads/buildroot/output/build/linux-/.stamp_downloaded] Error 1

Dropbox API returning http 500 status instead of http 400 status for a non-existant user in a team

Starting at around 21:00 PM GMT today , when we query for a user which doesn't exist in dropbox team, we are receiving an http 500 status with internal error message. In comparison earlier we use to receive http 400 message with message that user doesn't exist in team.
Has something regressed at dropbox end, or is this change intentional and hence we should consider http 500 internal error as equivalent to user not found?
For example RESPONSE#1 is what we expected as valid behavior , while RESPONSE#2 is what we are receiving currently
RESPONSE#1
Resource: https://api.dropbox.com/1/idm/get_profile?email=dummy#authentication.test
Operation: GET
Headers: Authorization: Bearer XXX
Content Type:
Data:
%% Time: 08/28/2014 17:06:51 GMT
Message: The remote server returned an error: (400) Bad Request. Web Response: {"error": "User not on this team"} ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
RESPONSE#2
Resource: https://api.dropbox.com/1/idm/get_profile?email=dummy#authentication.test
Operation: GET
Headers: Authorization: Bearer XXX
Content Type:
Data:
Time: 08/28/2014 22:40:29
(500) Internal Server Error. Web Response: {"error": "Internal Server Error"} ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
Thanks
Somesh