Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal server error when listing another account's quota #3695

Closed
davidgcameron opened this issue Jun 4, 2020 · 7 comments · Fixed by #3697 or #3698
Closed

Internal server error when listing another account's quota #3695

davidgcameron opened this issue Jun 4, 2020 · 7 comments · Fixed by #3697 or #3698
Assignees
Milestone

Comments

@davidgcameron
Copy link
Contributor

Motivation

I see this with both 1.22.5 and 1.22.7 clients:

> rucio list-account-usage cclement
+---------------------------------+------------+-----------+--------------+
| RSE                             | USAGE      | LIMIT     | QUOTA LEFT   |
|---------------------------------+------------+-----------+--------------|
| CERN-PROD_DET-TILE              | 130.917 GB | 0.000 B   | 0.000 B      |
| SE-SNIC-T2_STHLM_LOCALGROUPDISK | 8.984 TB   | 18.802 TB | 9.817 TB     |
| TRIUMF-LCG2_PERF-JETS           | 160.376 MB | 0.000 B   | 0.000 B      |
+---------------------------------+------------+-----------+--------------+
2020-06-04 18:44:32,014	ERROR	An unknown exception occurred.
Details: no error information passed (http status code: 500 ('internal_server_error', 'server_error', '/o\\', '\xe2\x9c\x97'))

however it's fine for my own quota and if I change my account to ddmadmin I don't get the error for other people's quotas, so I suspect it's a permission error when showing global quotas.

Modification

Show global quotas instead of server error.

@bari12
Copy link
Member

bari12 commented Jun 5, 2020

Hi David,
Can you try to point the client to the integration servers? (rucio-server-int-01 from within CERN)?

@davidgcameron
Copy link
Contributor Author

Hi Martin,
Still the same issue:

[dcameron@lxplus796] ~> rucio -H http://rucio-server-int-01.cern.ch list-account-usage cclement
+---------------------------------+------------+-----------+--------------+
| RSE                             | USAGE      | LIMIT     | QUOTA LEFT   |
|---------------------------------+------------+-----------+--------------|
| CERN-PROD_DET-TILE              | 130.917 GB | 0.000 B   | 0.000 B      |
| SE-SNIC-T2_STHLM_LOCALGROUPDISK | 8.984 TB   | 18.802 TB | 9.817 TB     |
| TRIUMF-LCG2_PERF-JETS           | 160.376 MB | 0.000 B   | 0.000 B      |
+---------------------------------+------------+-----------+--------------+
2020-06-05 10:22:58,640	ERROR	An unknown exception occurred.
Details: no error information passed (http status code: 500 ('internal_server_error', 'server_error', '/o\\', '\xe2\x9c\x97'))

@bari12
Copy link
Member

bari12 commented Jun 5, 2020

@bziemons can you please have a look at this? This might be related to an error in the atlas/generic permission file.

@bziemons
Copy link
Member

bziemons commented Jun 5, 2020

@bari12 The fix is similar to #3657, PR is submitted.

@bziemons bziemons linked a pull request Jun 5, 2020 that will close this issue
bziemons added a commit to bziemons/rucio that referenced this issue Jun 5, 2020
bari12 added a commit that referenced this issue Jun 8, 2020
…sion_get_global_account_limit

Core: Fix get_global_account_limit rse_expression; Fix #3695
bari12 added a commit that referenced this issue Jun 8, 2020
…sion_get_global_account_limit

Core: Fix get_global_account_limit rse_expression; Fix #3695
@bari12 bari12 added this to the 1.22.8 milestone Jun 8, 2020
@davidgcameron
Copy link
Contributor Author

This issue has reappeared since 1.23.0 was deployed.

@davidgcameron davidgcameron reopened this Jul 15, 2020
@bziemons
Copy link
Member

@bari12 do you know what happened?

@bari12
Copy link
Member

bari12 commented Jul 23, 2020

Sorry, took me a while to get back to this. I just submitted a PR for this. The workflow in the permission check was wrong. @davidgcameron as a user you won't be able to do this command anymore, only as admin/country-admin. This is equivalent to the permission check for local quotas.

@bari12 bari12 closed this as completed in 0e3b54b Aug 3, 2020
bari12 added a commit that referenced this issue Aug 3, 2020
…ount_quota_does_not_work

Core: List global account usage crashes; Fix #3695
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment