bbj-dev / bbj

Bulletin Butter & Jelly: An HTTP bulletin board server for small communities
https://bbj-dev.github.io/bbj/site/
MIT License
71 stars 10 forks source link

Error on posting #15

Open gbmor opened 5 years ago

gbmor commented 5 years ago

One of my users is getting this error when posting using the urwid client on OpenBSD. I was able to replicate. env: Python 3.6.6

\226Traceback (most recent call last): File "/home/ahriman/tildefun/bbj/clients/urwid/main.py", line 2591, in main() File "/home/ahriman/tildefun/bbj/clients/urwid/main.py", line 2585, in main app.loop.run() File "/usr/local/lib/python3.6/site-packages/urwid/main_loop.py", line 286, in run self._run() File "/usr/local/lib/python3.6/site-packages/urwid/main_loop.py", line 384, in _run self.event_loop.run() File "/usr/local/lib/python3.6/site-packages/urwid/main_loop.py", line 788, in run self._loop() File "/usr/local/lib/python3.6/site-packages/urwid/main_loop.py", line 825, in _loop self._watch_files[fd]() File "/usr/local/lib/python3.6/site-packages/urwid/raw_display.py", line 404, in event_loop, callback, self.get_available_raw_input()) File "/usr/local/lib/python3.6/site-packages/urwid/raw_display.py", line 502, in parse_input callback(processed, processed_codes) File "/usr/local/lib/python3.6/site-packages/urwid/main_loop.py", line 411, in _update self.process_input(keys) File "/usr/local/lib/python3.6/site-packages/urwid/main_loop.py", line 511, in process_input k = self._topmost_widget.keypress(self.screen_size, k) File "/usr/local/lib/python3.6/site-packages/urwid/container.py", line 595, in keypress *self.calculate_padding_filler(size, True)), key) File "/usr/local/lib/python3.6/site-packages/urwid/container.py", line 1590, in keypress key = self.focus.keypress(tsize, key) File "/usr/local/lib/python3.6/site-packages/urwid/container.py", line 2271, in keypress key = w.keypress((mc,) + size[1:], key) File "/home/ahriman/tildefun/bbj/clients/urwid/main.py", line 2109, in keypress os.write(self.master, key.encode("utf8")) OSError: [Errno 5] Input/output error

MineRobber9000 commented 5 years ago

@desvox any ideas?

benharri commented 5 years ago

posting hangs on freebsd as well

No-one-afk commented 2 years ago

Hello! I have this exact same issue! Only difference is the last "line 2194, in keypress" instead of "line 2109, in keypress" python version Python 3.9.13 OpenBSD 7.1 amd64 No other users on the server have this issue

No-one-afk commented 2 years ago

Hello! I didn't fix the issue BUT, you can edit .bbjrc and change the line from: "integrate_external_editor": true, to "integrate_external_editor": false,

It seems there is an integration issue (my editor is Nano, the best in the world) and when we updated our sever, something broke on MY end because i was the onlyone with this issue. Changing .profile didn't help so no idea what could be the culprit.