Closed RonnyLV closed 3 years ago
I got the same error when accessing apache from Ajenti.
Info | Value |
---|---|
Ajenti | 1.2.23.0 |
Platform | debian / ubuntu / Ubuntu 14.04.1 LTS |
Architecture | x86_64 x86_64 |
Python | 2.7.6 |
Installation | 10982843 |
Debug | False |
Catcher report |
404, sorry
Loaded plugins | ajenti_org, apache, codemirror, configurator, cron, dashboard, db_common, fail2ban, fm, fstab, hdparm, hosts, iptables, logs, main, mysql, network, notepad, packages, plugins, power, resolv, resources, scripts, sensors, services, supervisor, taskmgr, tasks, terminal, uname, users, webserver_common
Library | Version |
---|---|
gevent | 1.0 |
greenlet | 0.4.2 |
reconfigure | 0.1.72 |
requests | 2.2.1 |
psutil | 1.2.1 |
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/ajenti/plugins/main/main.py", line 163, in handle_message
self.send_ui()
File "/usr/lib/pymodules/python2.7/ajenti/plugins/main/main.py", line 192, in send_ui
data = json.dumps(self.ui.render())
File "/usr/lib/python2.7/json/__init__.py", line 243, in dumps
return _default_encoder.encode(obj)
File "/usr/lib/python2.7/json/encoder.py", line 207, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python2.7/json/encoder.py", line 270, in iterencode
return _iterencode(o, 0)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xab in position 18: invalid start byte
Log content:
2015-10-05 06:15:05,710 DEBUG compat.Popen(): Popen: ['/etc/init.d/apache2', 'status']
2015-10-05 06:15:05,725 DEBUG compat.Popen(): Popen: ['/etc/init.d/apache2', 'status']
2015-10-05 06:15:05,740 DEBUG compat.Popen(): Popen: ['/etc/init.d/apache2', 'status']
2015-10-05 06:15:05,754 DEBUG compat.Popen(): Popen: ['/etc/init.d/apache2', 'status']
Turns out my sites-available directory has some leftover .conf.swo and .conf.swp file with gibberish text inside when opened. Ajenti's Apache module runs perfectly after this two files were deleted.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days unless you comment. Thank you for your contributions.
Error after upgrading Ajenti " UnicodeDecodeError: 'utf8' codec can't decode byte 0xc9 in position 1: invalid continuation byte"
Ajenti bug report
Loaded plugins | ajenti_org, codemirror, configurator, cron, dashboard, db_common, fm, fstab, hdparm, hosts, iptables, logs, main, mysql, network, nginx, notepad, packages, plugins, power, resolv, resources, scripts, sensors, services, supervisor, taskmgr, tasks, terminal, uname, users, vh, vh-mysql, vh-nginx, vh-php-fpm, webserver_common
Log content: