-
Notifications
You must be signed in to change notification settings - Fork 28
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
Task aborted with ERROR: Nothing was extracted from archive #249
Comments
Can you share the XML payload for this execution? At least bits for this task? Feel free to mask hostnames. |
Hello @StykMartin , job.xml for this execution:
There was no journal.xml generated for this specific task as it got aborted. |
Hey we're also running into this from time to time, is there no further comment from restraint team? |
Looks restraint should not exit quietly after failure, the error reason should be throw out. Then user can fix it accordingly. |
Error message 192 static gboolean
193 http_archive_read_callback (gpointer user_data)
194 {
195 FetchData *fetch_data = (FetchData *) user_data;
196
197 gint r;
198 struct archive_entry *entry;
199 gchar *newPath = NULL;
200
201 r = archive_read_next_header(fetch_data->a, &entry);
202 if (r == ARCHIVE_EOF) {
203 if (fetch_data->match_cnt == 0) {
204 g_set_error(&fetch_data->error, RESTRAINT_FETCH_LIBARCHIVE_ERROR, ARCHIVE_WARN,
205 "Nothing was extracted from archive");
206 }
207 g_idle_add (archive_finish_callback, fetch_data);
208 return FALSE;
209 } What we need to do next is to get the error from 82 struct archive_entry {
83 struct archive *archive;
... To get the error, let's look into 96 struct archive {
97 /*
98 * The magic/state values are used to sanity-check the
99 * client's usage. If an API function is called at a
100 * ridiculous time, or the client passes us an invalid
101 * pointer, these values allow me to catch that.
102 */
103 unsigned int magic;
104 unsigned int state;
105
106 /*
107 * Some public API functions depend on the "real" type of the
108 * archive object.
109 */
110 const struct archive_vtable *vtable;
111
112 int archive_format;
113 const char *archive_format_name;
114
115 /* Number of file entries processed. */
116 int file_count;
117
118 int archive_error_number;
119 const char *error;
120 struct archive_string error_string;
121
122 char *current_code;
123 unsigned current_codepage; /* Current ACP(ANSI CodePage). */
124 unsigned current_oemcp; /* Current OEMCP(OEM CodePage). */
125 struct archive_string_conv *sconv;
126
127 /*
128 * Used by archive_read_data() to track blocks and copy
129 * data to client buffers, filling gaps with zero bytes.
130 */
131 const char *read_data_block;
132 int64_t read_data_offset;
133 int64_t read_data_output_offset;
134 size_t read_data_remaining;
135
136 /*
137 * Used by formats/filters to determine the amount of data
138 * requested from a call to archive_read_data(). This is only
139 * useful when the format/filter has seek support.
140 */
141 char read_data_is_posix_read;
142 size_t read_data_requested;
143 }; Looks these two fields in the following can be used to address the error reason. 119 const char *error;
120 struct archive_string error_string; |
@dzickusrh just ran into this and it was curl didn't trust the self signed certs. Once he installed the trusted certs package it worked fine. So we need to also check the error from the https connection.. |
I see now that the above job had ssl_verify=off. But the issue remains the same.. We aren't reporting the real error back.. |
** Fetching task: 3 [/mnt/tests/gitlab.cee.redhat.com/identity-management/ipa-tests/-/archive/RHEL9.0/ipa-tests-RHEL9.0.tar.gz/beaker/ipa-server/acceptance/ipa-user-cli/moduser]
** Fetching task: Retries 1
** Fetching task: Retries 2
** Fetching task: Retries 3
** ERROR: Nothing was extracted from archive
** Completed Task : 3
We are hitting this issue from time to time, tried to raise max number of retries by specifying '-c 10' in restraint command but didn't help. '-vvv' didn't output more information than above.
The text was updated successfully, but these errors were encountered: