** Description changed:

  This is to keep track of the sos41 issue to fix at convenience.
- 
- https://github.com/sosreport/sos/issues/2472
  
  [Impact]
  
  UA customer can no longer instruct sos to upload the sos archive in our
  Canonical FTP automatically. One would need to manually sftp the file as
  a separate task.
  
  [Test Case]
  
  Run sos with the --upload option for instance as follow:
  
  $ sos report -o ubuntu --upload
  
  sosreport (version 4.1)
  
  This command will collect system configuration and diagnostic
  information from this Ubuntu system.
  
  For more information on Canonical visit:
  
-         Community Website  : https://www.ubuntu.com/
-         Commercial Support : https://www.canonical.com
+         Community Website  : https://www.ubuntu.com/
+         Commercial Support : https://www.canonical.com
  
  The generated archive may contain data considered sensitive and its
  content should be reviewed by the originating organization before being
  passed to any third party.
  
  No changes will be made to system configuration.
  
- 
  Press ENTER to continue, or CTRL-C to quit.
  
- Please enter the case id that you are generating this report for []: 
+ Please enter the case id that you are generating this report for []:
  Traceback (most recent call last):
-   File "/usr/bin/sos", line 22, in <module>
-     sos.execute()
-   File "/usr/lib/python3/dist-packages/sos/__init__.py", line 186, in execute
-     self._component.execute()
-   File "/usr/lib/python3/dist-packages/sos/report/__init__.py", line 1372, in 
execute
-     self.prework()
-   File "/usr/lib/python3/dist-packages/sos/report/__init__.py", line 857, in 
prework
-     self.policy.pre_work()
-   File "/usr/lib/python3/dist-packages/sos/policies/distros/__init__.py", 
line 163, in pre_work
-     if cmdline_opts.upload and self.get_upload_url():
-   File "/usr/lib/python3/dist-packages/sos/policies/distros/ubuntu.py", line 
77, in get_upload_url
-     fname = os.path.basename(self.upload_archive)
-   File "/usr/lib/python3.9/posixpath.py", line 142, in basename
-     p = os.fspath(p)
+   File "/usr/bin/sos", line 22, in <module>
+     sos.execute()
+   File "/usr/lib/python3/dist-packages/sos/__init__.py", line 186, in execute
+     self._component.execute()
+   File "/usr/lib/python3/dist-packages/sos/report/__init__.py", line 1372, in 
execute
+     self.prework()
+   File "/usr/lib/python3/dist-packages/sos/report/__init__.py", line 857, in 
prework
+     self.policy.pre_work()
+   File "/usr/lib/python3/dist-packages/sos/policies/distros/__init__.py", 
line 163, in pre_work
+     if cmdline_opts.upload and self.get_upload_url():
+   File "/usr/lib/python3/dist-packages/sos/policies/distros/ubuntu.py", line 
77, in get_upload_url
+     fname = os.path.basename(self.upload_archive)
+   File "/usr/lib/python3.9/posixpath.py", line 142, in basename
+     p = os.fspath(p)
  TypeError: expected str, bytes or os.PathLike object, not method
+ 
+ [Where problem could occur]
+ 
+ [Other information]
+ 
+ https://github.com/sosreport/sos/pull/2479
+ https://github.com/sosreport/sos/issues/2472

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1923209

Title:
  [sos4.1] Upload no longer working

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sosreport/+bug/1923209/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to