Bug 56135 - ucr --debug per default to get a helpfully traceback
ucr --debug per default to get a helpfully traceback
Status: NEW
Product: UCS
Classification: Unclassified
Component: UCR
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-06-09 15:55 CEST by Mirac Erdemiroglu
Modified: 2023-06-09 16:07 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.046
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mirac Erdemiroglu univentionstaff 2023-06-09 15:55:27 CEST
It would be easier for customers and for the usage if --debug is always used with every ucr input per default.

Messages like this are not clear enough.

ucr set ox/cfg/caldav.properties/com.openexchange.caldav.interval.end='two_years'
Create ox/cfg/caldav.properties/com.openexchange.caldav.interval.end
E: your request could not be fulfilled
try `univention-config-registry --help` for more information



Here the main reason why the ucrv is not set:

root@ox-mail:~# ucr --debug set ox/cfg/caldav.properties/com.openexchange.caldav.interval.end='two_years'
Create ox/cfg/caldav.properties/com.openexchange.caldav.interval.end
Traceback (most recent call last):
File "/usr/sbin/ucr", line 72, in <module>
sys.exit(ub.main(convertToUtf8(sys.argv[1:])))
File "/usr/lib/python3/dist-packages/univention/config_registry/frontend.py", line 865, in main
result = handler_func(args, cmd_opts)
File "/usr/lib/python3/dist-packages/univention/config_registry/frontend.py", line 207, in handler_set
changed = ucr.update(changes)
File "/usr/lib/python3/dist-packages/univention/config_registry/backend.py", line 506, in __exit__
self.save()
File "/usr/lib/python3/dist-packages/univention/config_registry/backend.py", line 476, in save
self._layer.save()
File "/usr/lib/python3/dist-packages/univention/config_registry/backend.py", line 706, in save
self._save_file(filename)
File "/usr/lib/python3/dist-packages/univention/config_registry/backend.py", line 666, in _save_file
self._save_to(temp_filename)
File "/usr/lib/python3/dist-packages/univention/config_registry/backend.py", line 697, in _save_to
fd.write(self.__unicode__())
OSError: [Errno 28] No space left on device


To get a traceback is definitely more helpfully then:

E: your request could not be fulfilled
try `univention-config-registry --help` for more information