On Fri, 2 Feb 2024 12:29:04 -0600, -pj via openSUSE Users <users@lists.opensuse.org> wrote:
On 02-02-2024 12:00noon, Carlos E. R. wrote:
On 2024-02-01 23:06, -pj via openSUSE Users wrote:
Thinkcentre-M57p:/tmp # susepaste -t "-pj susepaste-test-0.txt" -e "1080" -n "-pj" "strace.log" Paste failed :-( Thinkcentre-M57p:/tmp # susepaste -t "-pj susepaste-test-0.txt" -e "1080" -n "-pj" "strace.log.gz" Paste failed :-( Thinkcentre-M57p:/tmp # susepaste -t "-pj susepaste-test-0.txt" -e "1080" -n "-pj" "strace.txt" Paste failed :-( Thinkcentre-M57p:/tmp #
The small text file was able to uploaded to susepaste and the other files were not.
The man page has ' *not* " in [file] SYNOPSIS usage. Is that the error you left intact?
No, the hyphen.🙁
So, the manpage is using hypen-minus in it's example and there is only one minus used (in the title of the manpage). So don't try to copy/paste the command example in for any sort of template is the motto here. Must issue the - from your own machine not from manpage copy (which is actually a hyphen minus). I have had success with a small test file and a small screenshot so far. I do not know what the data cap on uploading to susepaste is.
You took away the right message, but to correct a couple of details - You mixed up where the different hyphens are in the susepaste man page (as displayed to me, but not to Carlos. You never said what you saw there, BTW). The Unicode Hyphen-minus, alternately known as the ASCII (hex 2D) hyphen, is used for command-line options. It is NOT the same as the Unicode Hyphen, and the Unicode Minus is unique from those two. For me, all of the "hyphens" in the man page, except the first one, show as *Unicode Hyphen*, not "hyphen-minus". That is, of course, wrong, and to copy and paste those from the man page would not work. You're correct about that. As a work-around, 'LC_CTYPE=C man susepaste' will display all the "hyphens" as the hex '2d' version.
That 23 MB trace file fails for me also.
cer@Telcontar:~/Downloads/Thunderbird_downloads> susepaste -n "Carlos E.R." -t "test" -e 60 strace.txt Paste failed :-( cer@Telcontar:~/Downloads/Thunderbird_downloads>
Try using the command you issued above with quotes also around "strace.txt" *not* strace.txt without quotes. See this example below.Also probably create a small text file for testing because, susepaste does not want even 4 MB files uploaded it seems. Let alone 24 MB files.
It would be helpful to see the errors. I modified the susepaste script to write a log file from the paste operation done by the 'curl' command: susepaste-curl_log.sh pasted to: https://paste.opensuse.org/9dd778c3c9d2 (expire: 1 month) Specify a path for a log file to be written as the first argument. usage: susepaste-curl_log.sh <curl_log> [options] [FILE] To run it, you still need susepaste installed to get this sed script called by the susepaste script: /usr/share/susepaste/lang-mappings.sed I have attached a diff of the changes to the script: susepaste-curl_log.diff When pasting the script, I was getting "Paste failed" whenever I set an expire time greater than one month. In the log were the messages: "We are completely uploaded and fine" but then later: "We're sorry, but something went wrong." "If you are the application owner check the logs for more information." 'curl' then exited without an error. The script, though, didn't get the URL location info from the curl output, and so failed. -- Robert Webb