You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the line above, if globbing *:latest results in ls being sent too many arguments, ls returns an error in stderr, and the variable out gets no results. This is invisibly handled as 0 domains, rather than an error. Should check stderr or the return code to determine if this occurred.
Possible fix would include switching to using find.
The text was updated successfully, but these errors were encountered:
#109
If the file storage adapter was being used and the directory contained
too many files to perform glob matching on, the file adapter would
report no files when checking for renewals.
This should fix it by using "find" instead of shell globbing. Any errors
should also now be reported.
@mklauber: Thanks for reporting this! This should be fixed in the v0.12.0 release, since we've switched to using find, as you suggested. But give a shout if you're still seeing any issue.
@GUI Thanks for the fix, and for the shout. We actually migrated to the redis backend as a workaround for this, so I can't confirm the fix, but the code looks right to me.
https://github.com/GUI/lua-resty-auto-ssl/blob/8227d90bfa7e6abee5ecf516721df986ef2ab702/lib/resty/auto-ssl/storage_adapters/file.lua#L76-L80
In the line above, if globbing
*:latest
results inls
being sent too many arguments, ls returns an error in stderr, and the variableout
gets no results. This is invisibly handled as 0 domains, rather than an error. Should check stderr or the return code to determine if this occurred.Possible fix would include switching to using
find
.The text was updated successfully, but these errors were encountered: