Project

General

Profile

Segnalazione #227

Octonet crash quote

Added by Michael Guggenberg about 7 years ago. Updated about 7 years ago.

Status:
Risolto
Priority:
Normale
Start date:
04/11/2017
Due date:
% Done:

0%

Estimated time:

Description

Octonet va in crash clicando su un filesystem con le quote attivate.

root@server:~# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=504557,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,relatime,size=812128k,mode=755)
/dev/vda3 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/vda2 on /var type ext4 (rw,relatime,data=ordered)
/dev/vda4 on /home type ext4 (rw,relatime,quota,usrquota,grpquota,data=ordered)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
tmpfs on /run/user/106 type tmpfs (rw,nosuid,nodev,relatime,size=406064k,mode=700,uid=106,gid=113)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=406064k,mode=700)

UnknownException at /quota/edit/home

Type str doesn't support the buffer API

Request Method: GET
Request URL: http://10.0.10.131:13402/quota/edit/home
Django Version: 1.8.16
Exception Type: UnknownException
Exception Value:

Type str doesn't support the buffer API

Exception Location: /usr/lib/python3/dist-packages/octofuss/xmlrpc.py in _wrap_call, line 44
Python Executable: /usr/bin/python3
Python Version: 3.4.2
Python Path:

['/usr/share/octonet',
'/usr/bin',
"/usr/share/octonet/'/usr/share/octonet'",
'/usr/lib/python3.4',
'/usr/lib/python3.4/plat-x86_64-linux-gnu',
'/usr/lib/python3.4/lib-dynload',
'/usr/local/lib/python3.4/dist-packages',
'/usr/lib/python3/dist-packages']

History

#1

Updated by Christopher R. Gabriel about 7 years ago

  • Status changed from Nuovo to Commenti
  • Assignee changed from TRUELITE to Michael Guggenberg

Ciao Michaal, grazie per la segnalazione. Riesci a mandare il traceback? La pagina "gialla" che mostra l'errore ha un link "Copy&paste version", puoi mandarci il contenuto di quanto ti fornisce quel link, completo?

#2

Updated by Michael Guggenberg about 7 years ago

Environment:

Request Method: GET
Request URL: http://10.0.10.131:13402/quota/edit/home

Django Version: 1.8.16
Python Version: 3.4.2
Installed Applications:
['django.contrib.sessions',
'django.contrib.messages',
'whitenoise.runserver_nostatic',
'django.contrib.staticfiles',
'octonet',
'hostqueue.apps.HostQueue',
'firewall.apps.Firewall',
'dhcp.apps.Dhcp',
'dansguardian.apps.DansGuardian',
'host.apps.Host',
'polygen.apps.Polygen',
'upgrade.apps.Upgrade',
'asterisk.apps.Asterisk',
'samba.apps.Samba',
'users.apps.Users',
'script.apps.Script',
'quota.apps.Quota',
'printers.apps.Printers',
'auth.apps.Auth']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.middleware.locale.LocaleMiddleware',
'octonet.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']

Traceback:
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py" in get_response
132. response = wrapped_callback(request, callback_args, **callback_kwargs)
File "/usr/lib/python3/dist-packages/django/views/generic/base.py" in view
71. return self.dispatch(request, *args, **kwargs)
File "/usr/share/octonet/octonet/mixins.py" in dispatch
105. return super().dispatch(request, *args, **kw)
File "/usr/lib/python3/dist-packages/django/views/generic/base.py" in dispatch
89. return handler(request, *args, **kwargs)
File "/usr/lib/python3/dist-packages/django/views/generic/base.py" in get
158. context = self.get_context_data(
*kwargs)
File "/usr/share/octonet/quota/views.py" in get_context_data
64. ctx["quota_user"] = self.root_tree.lget(["quota", self.fs, "user"])
File "/usr/lib/python3/dist-packages/octofuss/xmlrpc.py" in lget
60. return self._wrap_call(self.server.get, "/".join(path))
File "/usr/lib/python3/dist-packages/octofuss/xmlrpc.py" in _wrap_call
44. raise UnknownException(msg)

Exception Type: UnknownException at /quota/edit/home
Exception Value: Type str doesn't support the buffer API

#3

Updated by Christopher R. Gabriel about 7 years ago

  • Status changed from Commenti to In elaborazione
  • Assignee changed from Michael Guggenberg to Mark Caglienzi

Grazie, verifichiamo.

#4

Updated by Mark Caglienzi about 7 years ago

  • Status changed from In elaborazione to Commenti
  • Assignee changed from Mark Caglienzi to Christopher R. Gabriel
Cose fatte nel repository di octofussd:
  • 1f565150 - Fix imports, avoiding from subprocess import *
  • bc2f94d7 - Avoid exception when clicking on a quota-enabled filesystem [Questo ha poi reso palese il problema di differenza di costruzione dati tra octofussd mock e non: uno dà una lista, l'altro un dict]
  • 4c49f4aa - Make the real octofussd construct a list and not a dict, to be coherent with template and mock octofussd
  • Ora octofussd funziona sia in versione mock che reale

Pushato in master, nel repository di octofussd.

#5

Updated by Elena Grandi about 7 years ago

  • Assignee changed from Christopher R. Gabriel to Elena Grandi
#6

Updated by Elena Grandi about 7 years ago

  • Assignee changed from Elena Grandi to Michael Guggenberg

Uploadate sul repository nuove versioni di octonet (0.2.3-1) e octofussd (8.0.17-1): si può aggiornare e verificare se il problema è stato correttamente risolto.

#7

Updated by Michael Guggenberg about 7 years ago

risolto

#8

Updated by Elena Grandi about 7 years ago

  • Status changed from Commenti to Risolto

Also available in: Atom PDF