Bug 1600799 - UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 659: invalid start byte
Summary: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 659: inv...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: fpaste
Version: 27
Hardware: x86_64
OS: Linux
low
low
Target Milestone: ---
Assignee: Ankur Sinha (FranciscoD)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1608044 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-13 04:52 UTC by Jasper O'neal Hartline
Modified: 2018-08-03 19:57 UTC (History)
5 users (show)

Fixed In Version: fpaste-0.3.9.2-1.fc28 fpaste-0.3.9.2-1.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-29 03:20:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jasper O'neal Hartline 2018-07-13 04:52:54 UTC
Description of problem:


[autopsy@localhost Scripts]$ fpaste --sysinfo
Gathering system info ...........................Traceback (most recent call last):
  File "/usr/bin/fpaste", line 764, in <module>
    main()
  File "/usr/bin/fpaste", line 681, in main
    text = sysinfo(options.debug)
  File "/usr/bin/fpaste", line 282, in sysinfo
    for line in output.decode().split('\n'):
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 659: invalid start byte
[autopsy@localhost Scripts]$



Version-Release number of selected component (if applicable):
[autopsy@localhost Scripts]$ rpm -q fpaste
fpaste-0.3.9.1-1.fc27.noarch
[autopsy@localhost Scripts]$


How reproducible:
Every time I run fpaste --sysinfo it tracebacks.
100%


Steps to Reproduce:
1. Open Terminal
2. Run: fpaste --sysinfo
3.

Actual results:
Tracebacks.

Expected results:
Paste of my system information to Fedora Paste.

Additional info:
I cannot add attachments for some reason on these bug reports.

Comment 1 Ankur Sinha (FranciscoD) 2018-07-20 21:55:39 UTC
I can't reproduce this here. Is it always reproducible on your machine? Maybe a fpaste --sysinfo --printonly would give us some ideas?

Comment 2 Jasper O'neal Hartline 2018-07-24 20:01:40 UTC
Still tracebacks 100% of the time:
autopsy@localhost:/home/liveuser/Scripts$ fpaste --sysinfo
Gathering system info ............................Traceback (most recent call last):
  File "/usr/bin/fpaste", line 764, in <module>
    main()
  File "/usr/bin/fpaste", line 681, in main
    text = sysinfo(options.debug)
  File "/usr/bin/fpaste", line 282, in sysinfo
    for line in output.decode().split('\n'):
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 659: invalid start byte
autopsy@localhost:/home/liveuser/Scripts$ fpaste --sysinfo --printonly
Gathering system info ............................Traceback (most recent call last):
  File "/usr/bin/fpaste", line 764, in <module>
    main()
  File "/usr/bin/fpaste", line 681, in main
    text = sysinfo(options.debug)
  File "/usr/bin/fpaste", line 282, in sysinfo
    for line in output.decode().split('\n'):
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 659: invalid start byte
autopsy@localhost:/home/liveuser/Scripts$

Comment 3 Ankur Sinha (FranciscoD) 2018-07-24 22:04:01 UTC
*** Bug 1608044 has been marked as a duplicate of this bug. ***

Comment 4 Ankur Sinha (FranciscoD) 2018-07-24 22:11:45 UTC
Hrm, I wonder if it's to do with some printable characters. 

Can you please try this new commit?

https://pagure.io/fpaste/blob/debug-1600799/f/fpaste

All I've done is print the commands and outputs of --sysinfo before it hits the output.decode bit, so we should get some information on exactly what command it fails at.

You can download the file here:

wget https://pagure.io/fpaste/raw/debug-1600799/f/fpaste

and then run this version and so on: 

./fpaste --sysinfo 

Cheers!
Ankur

Comment 5 Jasper O'neal Hartline 2018-07-24 22:42:17 UTC
That helped a little bit. It printed something this time:
[root@localhost ~]# ./fpaste --sysinfo --printonly                       OS Release (lsb_release -ds): b'"Fedora release 27 (Twenty Seven)"\n'    Kernel (uname -r ; cat /proc/cmdline): b'4.17.3-100.fc27.x86_64\nBOOT_IMAGE=//vmlinuz-4.17.3-100.fc27.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet LANG=en_US.UTF-8\n'    Desktop(s) Running (ps -eo comm= | grep -E '(gnome-session|startkde|startactive|xfce.?-session|fluxbox|blackbox|hackedbox|ratpoison|enlightenment|icewm-session|od-session|wmaker|wmx|openbox-lxde|openbox-gnome-session|openbox-kde-session|mwm|e16|fvwm|xmonad|sugar-session|mate-session|lxqt-session|cinnamon)' ): b'gnome-session-b\ngnome-session-b\n'                 Desktop(s) Installed (ls -m /usr/share/xsessions/ | sed 's/\.desktop//g' ): b'gnome-classic, gnome, gnome-xorg\n'                                 SELinux Status (sestatus): b'SELinux status:                 enabled\nSELinuxfs mount:                /sys/fs/selinux\nSELinux root directory:         /etc/selinux\nLoaded policy name:             targeted\nCurrent mode:                   enforcing\nMode from config file:          enforcing\nPolicy MLS status:              enabled\nPolicy deny_unknown status:     allowed\nMemory protection checking:     actual (secure)\nMax kernel policy version:      31\n'                                                  SELinux Errors (selinuxenabled && journalctl --since yesterday |grep avc: | grep -Eo comm="[^ ]+" | sort |uniq -c |sort -rn): b'      8 comm="rpm"\n      4 comm="abrt-action-sav"\n      2 comm="setroubleshootd"\n'      CPU Model (grep 'model name' /proc/cpuinfo | awk -F: '{print $2}' | uniq -c |                                                                              sed -re 's/^ +//' ): b'4  Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz\n'                                                                    64-bit Support (grep -q ' lm ' /proc/cpuinfo && echo Yes || echo No): b'Yes\n'                                                                    Hardware Virtualization Support (grep -Eq '(vmx|svm)' /proc/cpuinfo && echo Yes || echo No): b'Yes\n'                                             Load average (uptime): b' 15:39:25 up 8 days,  2:11,  4 users,  load average: 0.82, 0.74, 0.51\n'                                                 Memory usage (free -m): b'              total        used        free      shared  buff/cache   available\nMem:           7871        2441        2572         435        2857        4594\nSwap:          1859           1        1858\n'                                                          Top 5 CPU hogs (ps axuScnh | awk '$2!=15839' | sort -rnk3 | head -5): b'    1000 13992 10.2  3.1 1083820 257652 tty2   Sl+  15:36   0:15 chrome\n    1000 14961  4.3  1.1 848840 92240 tty2     Sl+  15:38   0:02 chrome\n    1000 13235  3.9  0.1 539652 14880 tty2     S+   11:01  11:02 chrome\n    1000 15583  3.8  3.3 1116368 273644 tty2   Sl+  11:24   9:52 chrome\n    1000 13511  3.6  3.3 1123044 268232 tty2   Sl+  11:01  10:11 chrome\n'Top 5 Memory hogs (ps axuScnh | sort -rnk4 | head -5): b'    1000  2198  0.4  4.2 4280292 346112 tty2   Sl+  Jul16  53:50 gnome-shell\n    1000 15583  3.8  3.3 1116368 273644 tty2   Sl+  11:24   9:52 chrome\n    1000 13511  3.6  3.3 1123044 268232 tty2   Sl+  11:01  10:11 chrome\n    1000 13992 10.2  3.1 1083820 257652 tty2   Sl+  15:36   0:15 chrome\n    1000 13220  2.7  3.0 1471864 241988 tty2   SLl+ 11:01   7:42 chrome\n'          Disk space usage (df -hT): b'Filesystem              Type      Size  Used Avail Use% Mounted on\ndevtmpfs                devtmpfs  3.9G     0  3.9G   0% /dev\ntmpfs                   tmpfs     3.9G   43M  3.9G   2% /dev/shm\ntmpfs                   tmpfs     3.9G  2.0M  3.9G   1% /run\ntmpfs                   tmpfs     3.9G     0  3.9G   0% /sys/fs/cgroup\n/dev/mapper/fedora-root ext4       49G   17G   31G  35% /\ntmpfs                   tmpfs     3.9G  148K  3.9G   1% /tmp\n/dev/sda5               btrfs     1.2G   17M  1.2G   2% /mnt/sda5\n/dev/sda1               ext3      9.8G  6.6G  2.8G  71% /mnt/sda1\n/dev/sda3               ext4      5.8G  143M  5.3G   3% /boot\n/dev/sda2               vfat      200M   18M  183M   9% /boot/efi\n/dev/mapper/fedora-home ext4      161G  2.0G  151G   2% /home\ntmpfs                   tmpfs     788M   16K  788M   1% /run/user/42\ntmpfs                   tmpfs     788M  4.3M  783M   1% /run/user/1000\ntmpfs                   tmpfs     788M     0  788M   0% /run/user/0\n'   Block devices (blkid): b'/dev/sda1: UUID="2fab353c-aaae-4189-be7b-f6b5a5ddf683" TYPE="ext3" PARTUUID="98519bd9-b488-4ecf-ae57-dfe6b87b9451"\n/dev/sda2: SEC_TYPE="msdos" UUID="D5E5-7C84" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="808f73ad-b08f-416e-ad5f-b92a917ce3ba"\n/dev/sda3: UUID="cd10d1f1-2e7e-40d7-807f-1c4cc9030a2e" TYPE="ext4" PARTUUID="0fb99843-6914-48d9-9323-922821cd81df"\n/dev/sda4: UUID="hsPkEc-bsRY-SYBL-2LLl-2kxY-UL3t-jpKHRh" TYPE="LVM2_member" PARTUUID="10974c8f-6a1f-46dc-9ff0-23684fec4dbf"\n/dev/sda5: UUID="5878fd73-598f-4116-9541-4e2d0a0e3a41" UUID_SUB="7a3457ad-eb10-4339-8414-dca4af4b0fb7" TYPE="btrfs" PARTUUID="b3efd285-9ea9-4ba1-bba4-0454a7624dd0"\n/dev/mapper/fedora-root: LABEL="FEDORA ROOT" UUID="f37e9ccd-8558-4568-80f1-dc4e3a65a070" TYPE="ext4"\n/dev/mapper/fedora-swap: LABEL="FEDORA SWAP" UUID="3756e82f-b068-4cad-9fa4-70ae57495d8b" TYPE="swap"\n/dev/mapper/fedora-home: UUID="4bd9eeff-2856-4ccc-b9ff-447519f828d8" TYPE="ext4"\n'                                                 PCI devices (lspci): b'00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)\n00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)\n00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)\n00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)\n00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)\n00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)\n00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)\n00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)\n00:1f.0 ISA bridge: Intel Corporation HM77 Express Chipset LPC Controller (rev 04)\n00:1f.2 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 04)\n00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)\n01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411 PCI Express Card Reader (rev 01)\n01:00.2 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0a)\n' USB devices (lsusb): b'Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub\nBus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub\nBus 001 Device 004: ID 413c:2005 Dell Computer Corp. RT7D50 Keyboard\nBus 001 Device 003: ID 064e:c336 Suyin Corp. \nBus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub\nBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub\nBus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub\nBus 003 Device 003: ID 138a:0018 Validity Sensors, Inc. Fingerprint scanner\nBus 003 Device 007: ID 04e8:6863 Samsung Electronics Co., Ltd GT-I9500 [Galaxy S4] / GT-I9250 [Galaxy Nexus] (network tethering)\nBus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub\n'                                                 DRM Information (journalctl -k -b | grep -o 'kernel:.*drm.*$' | cut -d ' ' -f 2- ): b'fb: switching to inteldrmfb from EFI VGA\n[drm] Replacing VGA console driver\n[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).\n[drm] Driver supports precise vblank timestamp query.\n[drm] Initialized i915 1.6.0 20180308 for 0000:00:02.0 on minor 0\nfbcon: inteldrmfb (fb0) is primary device\ni915 0000:00:02.0: fb0: inteldrmfb frame buffer device\n'                                                                Xorg modules (grep LoadModule /var/log/Xorg.0.log ~/.local/share/xorg/Xorg.0.log | cut -d \" -f 2 | xargs): b'\n'                                 GL Support (without results: "glxinfo | grep -E "OpenGL version|OpenGL renderer""): b''                                                           Xorg errors (without results: "grep '^\[.*(EE)' /var/log/Xorg.0.log ~/.local/share/xorg/Xorg.0.log | cut -d ':' -f 2- "): b''                     Kernel buffer tail (dmesg | tail): b'[71123.680988] fileread2[19793]: segfault at 0 ip 00007f295a83701b sp 00007ffe52b795f0 error 4 in libc-2.26.so[7f295a7ca000+1ac000]\n[71129.193003] fileread2[19836]: segfault at 60 ip 00007efe50a504a3 sp 00007ffeff916dd8 error 4 in libc-2.26.so[7efe509bb000+1ac000]\n[71135.920215] fileread2[19913]: segfault at 0 ip 00007f26edd0b01b sp 00007ffe341a4490 error 4 in libc-2.26.so[7f26edc9e000+1ac000]\n[71287.212762] fileread2[20497]: segfault at 0 ip 00000000004005e8 sp 00007fffc6e77520 error 4 in fileread2[400000+1000]\n[71291.413139] fileread2[20551]: segfault at ffffffffffffff88 ip 00007fd1ad8f301b sp 00007ffeabda8dd0 error 5 in libc-2.26.so[7fd1ad886000+1ac000]\n[75448.057537] nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based  firewall rule not found. Use the iptables CT target to attach helpers instead.\n[77955.848601] fgets[27460]: segfault at 0 ip 00000000004006fb sp 00007fff91690be0 error 4 in fgets[400000+1000]\n[77964.359898] fgets[27524]: segfault at 0 ip 00000000004006fb sp 00007ffd0ab39140 error 4 in fgets[400000+1000]\n[77969.447366] fgets[27586]: segfault at 0 ip 00000000004006fb sp 00007ffc1c7e8dd0 error 4 in fgets[400000+1000]\n[78139.603430] perf: interrupt took too long (4966 > 4950), lowering kernel.perf_event_max_sample_rate to 40000\n'                        Last few reboots (last -x -n10 reboot runlevel): b'runlevel (to lvl 5)   4.17.3-100.fc27. Mon Jul 16 13:29   still running\nreboot   system boot  4.17.3-100.fc27. Mon Jul 16 13:27   still running\nrunlevel (to lvl 5)   4.17.3-100.fc27. Fri Jul 13 08:17 - 13:29 (3+05:12)\nreboot   system boot  4.17.3-100.fc27. Fri Jul 13 08:15   still running\nrunlevel (to lvl 5)   4.17.3-100.fc27. Fri Jul 13 04:02 - 08:14  (04:12)\nreboot   system boot  4.17.3-100.fc27. Fri Jul 13 04:00 - 08:14  (04:14)\nrunlevel (to lvl 5)   4.17.3-100.fc27. Fri Jul 13 01:13 - 04:02  (02:48)\nreboot   system boot  4.17.3-100.fc27. Fri Jul 13 01:12 - 08:14  (07:02)\nrunlevel (to lvl 5)   4.17.3-100.fc27. Thu Jul 12 08:05 - 01:08  (17:03)\nreboot   system boot  4.17.3-100.fc27. Thu Jul 12 08:03 - 01:08  (17:05)\n\nwtmp begins Sat Jun  9 03:03:34 2018\n'                                              DNF Repositories (dnf -C repolist): b'repo id                     repo name                                     status\nadobe-linux-x86_64          Adobe Systems Incorporated                         3\n*fedora                     Fedora 27 - x86_64                            54,801\ngoogle-chrome-beta          google-chrome-beta                                 3\n*rpmfusion-free             RPM Fusion for Fedora 27 - Free                  574\n*rpmfusion-free-updates     RPM Fusion for Fedora 27 - Free - Updates        248\n*updates                    Fedora 27 - x86_64 - Updates                  15,358\n'                                            DNF Extras (dnf -C list extras): b'Last metadata expiration check: 2:33:05 ago on Tue 24 Jul 2018 01:06:23 PM MST.\nExtra Packages\nglibc-debuginfo.x86_64                             2.26-28.fc27          @System\nglibc-debuginfo-common.x86_64                      2.26-28.fc27          @System\ngpgme.x86_64                                       1.10.0-4.fc28         @System\ngpgmepp.x86_64                                     1.10.0-4.fc28         @System\niputils.x86_64                                     20161105-9.fc28       @System\nkernel-devel.x86_64                                4.16.13-200.fc27      @System\nkernel-devel.x86_64                                4.16.14-200.fc27      @System\nkmod-VirtualBox-4.17.3-100.fc27.x86_64.x86_64      5.2.14-1.fc27         @System\nlibglade2.x86_64                                   2.6.4-18.fc28         @System\nnewt.x86_64                                        0.52.20-8.fc28        @System\nnmap.x86_64                                        2:7.70-1              @System\nnping.x86_64                                       2:0.7.70-1            @System\npygtk2.x86_64                                      2.24.0-21.fc28        @System\npygtk2-libglade.x86_64                             2.24.0-21.fc28        @System\npyliblzma.x86_64                                   0.5.3-21.fc28         @System\npython2-dbus.x86_64                                1.2.4-13.fc28         @System\npython2-gpg.x86_64                                 1.10.0-4.fc28         @System\npython2-iniparse.noarch                            0.4-30.fc28           @System\npython2-kickstart.noarch                           3.12-1.fc28           @System\npython2-newt.x86_64                                0.52.20-8.fc28        @System\npython2-ordered-set.noarch                         2.0.2-3.fc28          @System\npython2-pyxattr.x86_64                             0.5.3-16.fc28         @System\npython3-gpg.x86_64                                 1.10.0-4.fc28         @System\npython3-newt.x86_64                                0.52.20-8.fc28        @System\nsystem-config-keyboard.noarch                      1.4.0-15.fc28         @System\nsystem-config-keyboard-base.noarch                 1.4.0-15.fc28         @System\nsystem-config-kickstart.noarch                     2.10.0-1.fc28         @System\nsystem-config-language.noarch                      3.4.2-6.fc28          @System\nyum.noarch                                         3.4.3-517.fc28        @System\nyum-metadata-parser.x86_64                         1.1.4-21.fc28         @System\nzenmap.noarch                                      2:7.70-1              @System\n'                          Last 20 packages installed (rpm -qa --nodigest --nosignature --last | head -20): b'google-chrome-beta-68.0.3440.68-1.x86_64      Tue 24 Jul 2018 01:09:57 PM MST\nrpmfusion-free-appstream-data-27-3.fc27.noarch Tue 24 Jul 2018 01:09:50 PM MST\nffmpeg-3.3.8-1.fc27.x86_64                    Tue 24 Jul 2018 01:09:49 PM MST\nlibavdevice-3.3.8-1.fc27.x86_64               Tue 24 Jul 2018 01:09:48 PM MST\nffmpeg-libs-3.3.8-1.fc27.x86_64               Tue 24 Jul 2018 01:09:47 PM MST\npreload-0.6.4-16.fc27.x86_64                  Tue 17 Jul 2018 12:32:13 AM MST\nflex-2.6.1-5.fc27.x86_64                      Mon 16 Jul 2018 10:24:36 PM MST\nanyterm-1.1.29-41.fc27.x86_64                 Mon 16 Jul 2018 10:58:30 AM MST\niotop-0.6-15.fc27.noarch                      Fri 13 Jul 2018 05:25:28 AM MST\npython3-3.6.5-1.fc27.x86_64                   Fri 13 Jul 2018 05:13:30 AM MST\npython2-2.7.15-2.fc27.x86_64                  Fri 13 Jul 2018 05:13:30 AM MST\ngperf-3.1-4.fc27.x86_64                       Fri 13 Jul 2018 02:28:38 AM MST\nbzip2-devel-1.0.6-24.fc27.x86_64              Fri 13 Jul 2018 02:28:38 AM MST\nlibcurl-devel-7.55.1-12.fc27.x86_64           Fri 13 Jul 2018 02:28:37 AM MST\nlibcap-devel-2.25-7.fc27.x86_64               Fri 13 Jul 2018 02:28:36 AM MST\ndbus-devel-1.12.8-1.fc27.x86_64               Fri 13 Jul 2018 02:28:36 AM MST\nlz4-devel-1.8.0-1.fc27.x86_64                 Fri 13 Jul 2018 02:28:35 AM MST\nlibseccomp-devel-2.3.3-1.fc27.x86_64          Fri 13 Jul 2018 02:28:35 AM MST\nlibidn-devel-1.34-1.fc27.x86_64               Fri 13 Jul 2018 02:28:35 AM MST\nlibxkbcommon-devel-0.7.1-5.fc27.x86_64        Fri 13 Jul 2018 02:28:34 AM MST\n'              EFI boot manager output (efibootmgr -v): b'BootCurrent: 0000\nTimeout: 0 seconds\nBootOrder: 001F,3000,3001,3002,3003,3006,3007,3008,3009,300A,300B,300C,300D,300E,300F,2001,2002,2003\nBoot0000* EFI HDD Device\tPciRoot(0x0)/Pci(0x1f,0x2)/EDD10(0x2a010400)/HD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)RC\nBoot0001* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot0002* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot0003* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot0004* Network Adapter (IPv4 Legacy)\tBBS(128,\x80\x7f\xff\x04,0x0)........................&..............................................\nBoot0005* Notebook Hard Drive\tBBS(HD,\xc5\x7f\xff\x04,0x0).......................................................................\nBoot0006* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot0007* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot0008* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot0009* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot000A* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot000B* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot000C* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot000D* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot000E* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot000F* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot0010* Internal CD/DVD ROM Drive\tBBS(CDROM,\x18\x7f\xff\x04,0x500)................-...........A......#...................................\nBoot0011* Internal CD/DVD ROM Drive (UEFI)\tPciRoot(0x0)/Pci(0x1f,0x2)/Sata(2,0,0)/CDROM(1,0x31,0x48e0)RC\nBoot0012* USB Hard Drive - SanDisk\tBBS(7,\x18\x7f\xff\x04,0x500).......................................................................\nBoot0013* USB Hard Drive - WalgreenInfinitive\tBBS(7,\x18\x7f\xff\x04,0x500).......................................................................\nBoot0014* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot0015* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot0016* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot0017* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot0018* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot0019* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot001A* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot001B* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot001C* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot001D* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot001E* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot001F* Fedora\tHD(2,GPT,808f73ad-b08f-416e-ad5f-b92a917ce3ba,0x1400800,0x64000)/File(\\EFI\\fedora\\shimx64.efi)\nBoot2001* USB Drive (UEFI)\tRC\nBoot2002* Internal CD/DVD ROM Drive (UEFI)\tRC\nBoot3000* Internal Hard Disk or Solid State Disk\tRC\nBoot3001* Internal Hard Disk or Solid State Disk\tRC\nBoot3002* Internal Hard Disk or Solid State Disk\tRC\nBoot3003* Internal Hard Disk or Solid State Disk\tRC\nBoot3006* Internal Hard Disk or Solid State Disk\tRC\nBoot3007* Internal Hard Disk or Solid State Disk\tRC\nBoot3008* Internal Hard Disk or Solid State Disk\tRC\nBoot3009* Internal Hard Disk or Solid State Disk\tRC\nBoot300A* Internal Hard Disk or Solid State Disk\tRC\nBoot300B* Internal Hard Disk or Solid State Disk\tRC\nBoot300C* Internal Hard Disk or Solid State Disk\tRC\nBoot300D* Internal Hard Disk or Solid State Disk\tRC\nBoot300E* Internal Hard Disk or Solid State Disk\tRC\nBoot300F* Internal Hard Disk or Solid State Disk\tRC\n'                                                                   Gathering system info ...........................Traceback (most recent call last):                                                                 File "./fpaste", line 765, in <module>                                     main()                                                                 File "./fpaste", line 682, in main                                         text = sysinfo(options.debug)                                          File "./fpaste", line 283, in sysinfo                                      for line in output.decode().split('\n'):                             UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 659: invalid start byte                                                      [root@localhost ~]#

Comment 6 Ankur Sinha (FranciscoD) 2018-07-24 23:47:58 UTC
Does this work, by any chance? I've made the decoding from bytes to strings more relaxed. It should now replace bits it doesn't understand with "??":

https://docs.python.org/3/library/io.html


wget https://pagure.io/fpaste/raw/check-input-encoding/f/fpaste

./fpaste --sysinfo

Comment 7 Jasper O'neal Hartline 2018-07-25 01:12:05 UTC
Yes it works now using the new code you put in.
 Please make an updated package build and introduce it to the repos.

It prints out a URL now with this:
autopsy@localhost:~$ su - root
Password: 
[root@localhost ~]# ./fpaste --sysinfo
Gathering system info ...........................Uploading (21.0KiB)...
https://paste.fedoraproject.org/paste/eTPQ0JcMmOp7ry5uMfLREQ
[root@localhost ~]#

Comment 8 Ankur Sinha (FranciscoD) 2018-07-25 01:53:48 UTC
Lovely. Thanks for testing it out. I'll have to make a new release, and will push a fedora update soon.

Comment 9 Fedora Update System 2018-07-25 02:23:58 UTC
fpaste-0.3.9.2-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-55b893cab2

Comment 10 Fedora Update System 2018-07-25 02:24:08 UTC
fpaste-0.3.9.2-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-bfb9df0afc

Comment 11 Fedora Update System 2018-07-25 19:36:59 UTC
fpaste-0.3.9.2-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-55b893cab2

Comment 12 Fedora Update System 2018-07-26 12:01:35 UTC
fpaste-0.3.9.2-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-bfb9df0afc

Comment 13 Fedora Update System 2018-07-29 03:20:51 UTC
fpaste-0.3.9.2-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2018-08-03 19:57:28 UTC
fpaste-0.3.9.2-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.