$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>"Invalid JWT token - 'exp' claim expired" error from ansible-galaxy - Stack Overflow|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

"Invalid JWT token - 'exp' claim expired" error from ansible-galaxy - Stack Overflow

matteradmin13PV0评论

I'm building an execution environment and it fails running ansible-galaxy collection install. I get this error:

ERROR! Error when getting collection version metadata for redhat.satellite_operations:3.0.0 from automation_hub (/) (HTTP Code: 401, Message: Invalid JWT token - 'exp' claim expired at Fri, 15 Nov 2024 21:50:24 GMT Code: Unknown)

This is the command:

ANSIBLE_GALAXY_DISABLE_GPG_VERIFY=1 ansible-galaxy collection install --pre --verbose -r requirements.yml --collections-path "/usr/share/ansible/collections"

There are a number of collections and this step takes quite long (fails at ~17min). I think this is the reason for the error. When I limit the number of collections to 4 or so, it runs ~12min and completes successfully.

I'm trying to figure out a way around it. I tried adding --timeout 1000 to ansible-galaxy, but no luck.

Is there any way to prevent the JWT from expiring when the command takes too long to run? Or another way to fix this issue?

Post a comment

comment list (0)

  1. No comments so far