Incompatibility with freebsd sed? #490

Closed
opened 2025-12-29 01:26:08 +01:00 by adam · 6 comments
Owner

Originally created by @lukas2511 on GitHub (Aug 18, 2020).

There seem to be some issues using dehydrated under FreeBSD atm, need to investigate further...

Originally created by @lukas2511 on GitHub (Aug 18, 2020). There seem to be some issues using dehydrated under FreeBSD atm, need to investigate further...
adam closed this issue 2025-12-29 01:26:09 +01:00
Author
Owner

@oranenj commented on GitHub (Sep 7, 2020):

These issues are likely similar on OpenBSD too. At a cursory glance, things like using \s with grep and/or sed instead of [[:space:]] seem to be the primary gnuisms.

I hacked my copy of dehydrated to work by forcing it to use gsed, gawk and ggrep; if making the script POSIX-compliant is too much work, then making it so that it checks for and explicitly uses those commands on non-Linux platforms is a good idea.

@oranenj commented on GitHub (Sep 7, 2020): These issues are likely similar on OpenBSD too. At a cursory glance, things like using `\s` with `grep` and/or `sed` instead of `[[:space:]]` seem to be the primary gnuisms. I hacked my copy of dehydrated to work by forcing it to use gsed, gawk and ggrep; if making the script POSIX-compliant is too much work, then making it so that it checks for and explicitly uses those commands on non-Linux platforms is a good idea.
Author
Owner

@oranenj commented on GitHub (Sep 7, 2020):

I made #761 which works for me; more testing needed though.

@oranenj commented on GitHub (Sep 7, 2020): I made #761 which works for me; more testing needed though.
Author
Owner

@morganwdavis commented on GitHub (Sep 20, 2020):

After upgrading from 0.6.5 (which works) to 0.6.6 I'm getting this error:

# INFO: Using main config file /usr/local/etc/dehydrated/config
+ Fetching account URL...
ERROR: Problem connecting to server (head for ; curl returned with 3)
ERROR: Problem connecting to server (post for ; curl returned with 3)

... and it bails out here without doing anything.

This is running on FreeBSD 12.1-RELEASE-p10 FreeBSD 12.1-RELEASE-p10 GENERIC amd64

Using oranenj's patched version is working with http-01, although a --cron run has only processed domains.txt with no renewals yet needed.

Hopefully there's a universally working version again soon.

@morganwdavis commented on GitHub (Sep 20, 2020): After upgrading from 0.6.5 (which works) to 0.6.6 I'm getting this error: ``` # INFO: Using main config file /usr/local/etc/dehydrated/config + Fetching account URL... ERROR: Problem connecting to server (head for ; curl returned with 3) ERROR: Problem connecting to server (post for ; curl returned with 3) ``` ... and it bails out here without doing anything. This is running on FreeBSD 12.1-RELEASE-p10 FreeBSD 12.1-RELEASE-p10 GENERIC amd64 Using oranenj's patched version is working with http-01, although a --cron run has only processed domains.txt with no renewals yet needed. Hopefully there's a universally working version again soon.
Author
Owner

@lukas2511 commented on GitHub (Sep 30, 2020):

@morganwdavis could you check if you are still getting errors with the current master branch?

@lukas2511 commented on GitHub (Sep 30, 2020): @morganwdavis could you check if you are still getting errors with the current master branch?
Author
Owner

@morganwdavis commented on GitHub (Sep 30, 2020):

Version 0.6.6 confirmed working again on FreeBSD 12.1.

MD5 (dehydrated.sh) = 44d2ff6866cc31dddeef935f099f6690

Thank you, Lukas, and contributors.

@morganwdavis commented on GitHub (Sep 30, 2020): Version 0.6.6 confirmed working again on FreeBSD 12.1. MD5 (dehydrated.sh) = 44d2ff6866cc31dddeef935f099f6690 Thank you, Lukas, and contributors.
Author
Owner

@lukas2511 commented on GitHub (Nov 14, 2020):

Closing as this should be fixed by now.

@lukas2511 commented on GitHub (Nov 14, 2020): Closing as this should be fixed by now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#490