Bug 233548 - fortune typo: upload dmesg with curl
Summary: fortune typo: upload dmesg with curl
Status: Closed Not Enough Information
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 12.0-STABLE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2018-11-26 21:52 UTC by David Marec
Modified: 2020-05-01 15:13 UTC (History)
1 user (show)

See Also:

fortune datfiles patch (615 bytes, patch)
2018-11-26 21:52 UTC, David Marec
no flags Details | Diff
append email field (643 bytes, patch)
2018-11-26 22:29 UTC, David Marec
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Marec 2018-11-26 21:52:43 UTC
Created attachment 199583 [details]
fortune datfiles patch

MFC r340649 
Add a fortune describing how to upload a machine's dmesg information to the
  NYCBUG database.
This can be done by calling curl from the command line, but the POST command may be "add" not "addd".
Comment 1 Yuri Pankov freebsd_committer 2018-11-26 22:04:52 UTC
No, it's correct.  Did you actually try using it as is? :-)
Comment 2 David Marec 2018-11-26 22:14:17 UTC
Your are right, the former python script used "addd". 
Unfortunately, I got server errors on every  attempt. And no error with "add". But it sounds that this  doesnt work either.
Comment 3 Yuri Pankov freebsd_committer 2018-11-26 22:16:24 UTC
Indeed, I couldn't submit dmesg for last few days as well getting "500 internal server error", but it finally worked for me few minutes ago.
Comment 4 David Marec 2018-11-26 22:19:27 UTC
Ok, it sounds that the field
 -d "email=$USER@$(hostname)"
is somehow mandatory.
Comment 5 David Marec 2018-11-26 22:29:13 UTC
Created attachment 199584 [details]
append email field

-d "email=$USER@$(hostname)"
Comment 6 David Marec 2018-11-26 22:32:08 UTC
To be confirmed. POST: email data field is mandatory