Skip to content

Instantly share code, notes, and snippets.

@KrisBuytaert
Last active February 19, 2020 15:03
Show Gist options
  • Save KrisBuytaert/eb73518acced352c00dd0561ade631fc to your computer and use it in GitHub Desktop.
Save KrisBuytaert/eb73518acced352c00dd0561ade631fc to your computer and use it in GitHub Desktop.
gunicorn-registry stdout | 2020-02-19 12:15:23,805 [594] [DEBUG] [auth.permissions] Loaded signed_jwt identity for: admin
2020-02-19 12:15:23,805 [594] [DEBUG] [auth.registry_jwt_auth] Identity changed to admin
2020-02-19 12:15:23,805 [594] [DEBUG] [auth.registry_jwt_auth] Auth context set to {u'entity_kind': u'user', u'kind': u'user', u'entity_reference': u'9d04e1c8-a8e3-4c50-8f36-eb257cfa8f5c', u'com.apostille.roots': {u'admin/myfirstrepo': u'$disabled'}, u'version': 2, u'com.apostille.root': u'$disabled', u'user': u'admin'}
2020-02-19 12:15:23,806 [594] [DEBUG] [endpoints.v2] Checking permission <class 'auth.permissions.ModifyRepositoryPermission'> for repo: admin/myfirstrepo
gunicorn-registry stdout | 2020-02-19 12:15:23,808 [594] [DEBUG] [peewee] ('SELECT `t1`.`id`, `t1`.`namespace_user_id`, `t1`.`name`, `t1`.`visibility_id`, `t1`.`description`, `t1`.`badge_token`, `t1`.`kind_id`, `t1`.`trust_enabled`, `t1`.`state`, `t2`.`id`, `t2`.`uuid`, `t2`.`username`, `t2`.`password_hash`, `t2`.`email`, `t2`.`verified`, `t2`.`stripe_id`, `t2`.`organization`, `t2`.`robot`, `t2`.`invoice_email`, `t2`.`invalid_login_attempts`, `t2`.`last_invalid_login`, `t2`.`removed_tag_expiration_s`, `t2`.`enabled`, `t2`.`invoice_email_address`, `t2`.`given_name`, `t2`.`family_name`, `t2`.`company`, `t2`.`location`, `t2`.`maximum_queued_builds_count`, `t2`.`creation_date`, `t2`.`last_accessed` FROM `repository` AS `t1` INNER JOIN `user` AS `t2` ON (`t1`.`namespace_user_id` = `t2`.`id`) WHERE (((`t2`.`username` = %s) AND (`t1`.`name` = %s)) AND (`t1`.`state` != %s)) LIMIT %s OFFSET %s', [u'admin', u'myfirstrepo', 3, 1, 0])
gunicorn-registry stdout | 2020-02-19 12:15:23,812 [594] [DEBUG] [peewee] ('SELECT `t1`.`id`, `t1`.`namespace_user_id`, `t1`.`name`, `t1`.`visibility_id`, `t1`.`description`, `t1`.`badge_token`, `t1`.`kind_id`, `t1`.`trust_enabled`, `t1`.`state` FROM `repository` AS `t1` WHERE (`t1`.`id` = %s) LIMIT %s OFFSET %s', [2, 1, 0])
gunicorn-registry stdout | 2020-02-19 12:15:23,814 [594] [DEBUG] [peewee] ('SELECT `t1`.`id`, `t1`.`name` FROM `imagestoragelocation` AS `t1`', [])
gunicorn-registry stdout | 2020-02-19 12:15:23,816 [594] [DEBUG] [peewee] ('INSERT INTO `blobupload` (`repository_id`, `uuid`, `byte_count`, `sha_state`, `location_id`, `storage_metadata`, `chunk_count`, `created`) VALUES (%s, %s, %s, %s, %s, %s, %s, %s)', [2, u'0fe154a7-1994-4530-801e-8b812ea52426', 0, '[[1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225], 0, 0, "", 1, 32]', 9, '{}', 0, datetime.datetime(2020, 2, 19, 12, 15, 23, 815981)])
gunicorn-registry stdout | 2020-02-19 12:15:23,822 [594] [DEBUG] [app] Ending request: urn:request:c014bdcf-7cc0-4c47-a38b-3dd554575663 (/v2/admin/myfirstrepo/blobs/uploads/)
gunicorn-registry stdout | 2020-02-19 12:15:23,823 [594] [DEBUG] [data.database] Disconnecting from database.
2020-02-19 12:15:23,823 [594] [DEBUG] [peewee.pool] Returning 140388981909392 to pool.
gunicorn-registry stdout | 2020-02-19 12:15:23,823 [594] [INFO] [gunicorn.access] 172.17.0.1 - - [19/Feb/2020:12:15:23 +0000] "POST /v2/admin/myfirstrepo/blobs/uploads/ HTTP/1.1" 202 0 "-" "docker/19.03.5 go/go1.12.12 git-commit/633a0ea838 kernel/5.1.18-300.fc30.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/18.09.8 \(linux\))"
nginx stdout | 172.17.0.1 () - - [19/Feb/2020:12:15:23 +0000] "POST /v2/admin/myfirstrepo/blobs/uploads/ HTTP/1.1" 202 0 "-" "docker/19.03.5 go/go1.12.12 git-commit/633a0ea838 kernel/5.1.18-300.fc30.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/18.09.8 \x5C(linux\x5C))" (0.021 1343 0.021)
gunicorn-registry stdout | 2020-02-19 12:15:23,825 [594] [DEBUG] [app] Starting request: urn:request:97011a78-3fb3-490c-b25c-167043d5223a (/v2/admin/myfirstrepo/blobs/uploads/0fe154a7-1994-4530-801e-8b812ea52426)
2020-02-19 12:15:23,826 [594] [DEBUG] [auth.registry_jwt_auth] Called with params: (), {'namespace_name': 'admin', 'upload_uuid': u'0fe154a7-1994-4530-801e-8b812ea52426', 'repo_name': 'myfirstrepo'}
2020-02-19 12:15:23,826 [594] [DEBUG] [auth.registry_jwt_auth] No auth header.
2020-02-19 12:15:23,826 [594] [DEBUG] [endpoints.v2] Checking permission <class 'auth.permissions.ModifyRepositoryPermission'> for repo: admin/myfirstrepo
gunicorn-registry stdout | 2020-02-19 12:15:23,826 [594] [DEBUG] [endpoints.v2] sending response: {"errors":[{"code":"UNAUTHORIZED","detail":{},"message":"access to the requested resource is not authorized"}]}
gunicorn-registry stdout | 2020-02-19 12:15:23,827 [594] [DEBUG] [app] Ending request: urn:request:97011a78-3fb3-490c-b25c-167043d5223a (/v2/admin/myfirstrepo/blobs/uploads/0fe154a7-1994-4530-801e-8b812ea52426)
gunicorn-registry stdout | 2020-02-19 12:15:23,828 [594] [INFO] [gunicorn.access] 172.17.0.1 - - [19/Feb/2020:12:15:23 +0000] "PATCH /v2/admin/myfirstrepo/blobs/uploads/0fe154a7-1994-4530-801e-8b812ea52426 HTTP/1.1" 401 112 "-" "docker/19.03.5 go/go1.12.12 git-commit/633a0ea838 kernel/5.1.18-300.fc30.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/18.09.8 \(linux\))"
docker login -u="admin+dokker" -p="8ACS8J84SML9HSVNSBDZ09ZRNJMDHE0I0XRV3AT3FNK21S7ARIXR0EWGU014QUUX" quay
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
[root@mine27 quay]# docker push localhost/admin/myfirstrepo
The push refers to repository [localhost/admin/myfirstrepo]
195be5f8be1d: Pushing [==================================================>] 1.22MB/1.22MB
unauthorized: access to the requested resource is not authorized
docker login -u="admin+dokker" -p="8ACS8J84SML9HSVNSBDZ09ZRNJMDHE0I0XRV3AT3FNK21S7ARIXR0EWGU014QUUX" localhost
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
[root@mine27 quay-storage]# docker push localhost/admin/myfirstrepo
The push refers to repository [localhost/admin/myfirstrepo]
195be5f8be1d: Pushing [==================================================>] 1.22MB/1.22MB
unauthorized: access to the requested resource is not authorized
[root@mine27 quay-storage]# skopeo copy --dest-tls-verify=false --dest-creds admin+dokker:8ACS8J84SML9HSVNSBDZ09ZRNJMDHE0I0XRV3AT3FNK21S7ARIXR0EWGU014QUUX docker-daemon:localhost/admin/myfirstrepo:latest docker://localhost/admin/myfirstrepo
Getting image source signatures
Copying blob 195be5f8be1d skipped: already exists
Copying config c977220070 done
Writing manifest to image destination
Storing signatures
0 gunicorn-registry stdout | 2020-02-19 14:30:27,262 [593] [INFO] [gunicorn.access] 172.17.0.1 - - [19/Feb/2020:14:30:27 +0000] "POST /v2/admin/myfirstrepo/blobs/uploads/ HTTP/1.1" 202 0 "-" "docker/19.03.5 go/go1.12.12 git-commit/633❱
1 nginx stdout | 172.17.0.1 () - - [19/Feb/2020:14:30:27 +0000] "POST /v2/admin/myfirstrepo/blobs/uploads/ HTTP/1.1" 202 0 "-" "docker/19.03.5 go/go1.12.12 git-commit/633a0ea838 kernel/5.1.18-300.fc30.x86_64 os/linux arch/amd64 Upstre❱
2 gunicorn-registry stdout | 2020-02-19 14:30:27,264 [593] [DEBUG] [app] Starting request: urn:request:0fb5e759-ef54-48b1-a05b-4411455cc550 (/v2/admin/myfirstrepo/blobs/uploads/d94f2f7d-5da4-43eb-b70e-66a0bded27c3)·
3 2020-02-19 14:30:27,264 [593] [DEBUG] [auth.registry_jwt_auth] Called with params: (), {'namespace_name': 'admin', 'upload_uuid': u'd94f2f7d-5da4-43eb-b70e-66a0bded27c3', 'repo_name': 'myfirstrepo'}·
4 2020-02-19 14:30:27,264 [593] [DEBUG] [auth.registry_jwt_auth] No auth header.·
5 2020-02-19 14:30:27,264 [593] [DEBUG] [endpoints.v2] Checking permission <class 'auth.permissions.ModifyRepositoryPermission'> for repo: admin/myfirstrepo·
6 gunicorn-registry stdout | 2020-02-19 14:30:27,265 [593] [DEBUG] [endpoints.v2] sending response: {"errors":[{"code":"UNAUTHORIZED","detail":{},"message":"access to the requested resource is not authorized"}]}·
0 gunicorn-registry stdout | 2020-02-19 14:31:05,260 [594] [INFO] [gunicorn.access] 172.17.0.1 - - [19/Feb/2020:14:31:05 +0000] "POST /v2/admin/myfirstrepo/blobs/uploads/ HTTP/1.1" 202 0 "-" "docker/19.03.5 go/go1.12.12 git-commit/633❱
1 nginx stdout | 172.17.0.1 () - - [19/Feb/2020:14:31:05 +0000] "POST /v2/admin/myfirstrepo/blobs/uploads/ HTTP/1.1" 202 0 "-" "docker/19.03.5 go/go1.12.12 git-commit/633a0ea838 kernel/5.1.18-300.fc30.x86_64 os/linux arch/amd64 Upstre❱
2 gunicorn-registry stdout | 2020-02-19 14:31:05,263 [594] [DEBUG] [app] Starting request: urn:request:b6387a68-4be4-4f3c-9f93-161e48c1e30b (/v2/admin/myfirstrepo/blobs/uploads/3a525e82-f9ab-4b6f-9418-acd2be563f8e)·
3 gunicorn-registry stdout | 2020-02-19 14:31:05,263 [594] [DEBUG] [auth.registry_jwt_auth] Called with params: (), {'namespace_name': 'admin', 'upload_uuid': u'3a525e82-f9ab-4b6f-9418-acd2be563f8e', 'repo_name': 'myfirstrepo'}·
4 2020-02-19 14:31:05,263 [594] [DEBUG] [auth.registry_jwt_auth] No auth header.·
5 2020-02-19 14:31:05,263 [594] [DEBUG] [endpoints.v2] Checking permission <class 'auth.permissions.ModifyRepositoryPermission'> for repo: admin/myfirstrepo·
6 gunicorn-registry stdout | 2020-02-19 14:31:05,263 [594] [DEBUG] [endpoints.v2] sending response: {"errors":[{"code":"UNAUTHORIZED","detail":{},"message":"access to the requested resource is not authorized"}]}·
7 ·
8 gunicorn-registry stdout | 2020-02-19 14:31:05,264 [594] [DEBUG] [app] Ending request: urn:request:b6387a68-4be4-4f3c-9f93-161e48c1e30b (/v2/admin/myfirstrepo/blobs/uploads/3a525e82-f9ab-4b6f-9418-acd2be563f8e)·
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment