<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.8.5">
</HEAD>
<BODY>
<BR>
Am Sonntag, den 01.05.2016, 14:04 -0400 schrieb James Valleroy:
<BLOCKQUOTE TYPE=CITE>
<PRE>
On 05/01/2016 10:04 AM, Dietmar wrote:
<FONT COLOR="#737373">> By the way, trying to change the settings of a user in Plinth gives an</FONT>
<FONT COLOR="#737373">> error 500. I have no problem with that right now, but maybe there is a</FONT>
<FONT COLOR="#737373">> bug?</FONT>
<FONT COLOR="#737373">>  </FONT>
Please check /var/log/plinth/status.log.

I tried adding and editing a new user, and also ran into an issue, which
might be the same error you saw:

|subprocess.CalledProcessError: Command '['mkhomedir_helper', 'tester2']'
returned non-zero exit status 8 |
</PRE>
</BLOCKQUOTE>
Not sure if my error is the same. Trying to edit an existing user I get "Bad username" (note, the real user-name was replaced by "removedusername"):<BR>
[2016-05-01 18:37:02,537] plinth.actions INFO     Executing command - ['sudo', '-n', '/usr/share/plinth/actions/ssh', 'get-keys', '--username', 'removedusername']<BR>
[2016-05-01 18:37:03,177] plinth.actions ERROR    Error executing command - ['sudo', '-n', '/usr/share/plinth/actions/ssh', 'get-keys', '--username', 'removedusername'], Bad username<BR>
, <BR>
[2016-05-01 18:37:03,181] django.request ERROR    Internal Server Error: /plinth/sys/users/removedusername/edit/<BR>
Traceback (most recent call last):<BR>
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 149, in get_response<BR>
    response = self.process_exception_by_middleware(e, request)<BR>
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 147, in get_response<BR>
    response = wrapped_callback(request, *callback_args, **callback_kwargs)<BR>
  File "/usr/lib/python3/dist-packages/django/views/generic/base.py", line 68, in view<BR>
    return self.dispatch(request, *args, **kwargs)<BR>
  File "/usr/lib/python3/dist-packages/django/views/generic/base.py", line 88, in dispatch<BR>
    return handler(request, *args, **kwargs)<BR>
  File "/usr/lib/python3/dist-packages/django/views/generic/edit.py", line 275, in get<BR>
    return super(BaseUpdateView, self).get(request, *args, **kwargs)<BR>
  File "/usr/lib/python3/dist-packages/django/views/generic/edit.py", line 213, in get<BR>
    return self.render_to_response(self.get_context_data())<BR>
  File "/usr/lib/python3/dist-packages/plinth/modules/users/views.py", line 43, in get_context_data<BR>
    context = super(ContextMixin, self).get_context_data(**kwargs)<BR>
  File "/usr/lib/python3/dist-packages/django/views/generic/edit.py", line 122, in get_context_data<BR>
    kwargs['form'] = self.get_form()<BR>
  File "/usr/lib/python3/dist-packages/django/views/generic/edit.py", line 74, in get_form<BR>
    return form_class(**self.get_form_kwargs())<BR>
  File "/usr/lib/python3/dist-packages/plinth/modules/users/views.py", line 83, in get_form_kwargs<BR>
    kwargs = super(UserUpdate, self).get_form_kwargs()<BR>
  File "/usr/lib/python3/dist-packages/django/views/generic/edit.py", line 167, in get_form_kwargs<BR>
    kwargs = super(ModelFormMixin, self).get_form_kwargs()<BR>
  File "/usr/lib/python3/dist-packages/django/views/generic/edit.py", line 81, in get_form_kwargs<BR>
    'initial': self.get_initial(),<BR>
  File "/usr/lib/python3/dist-packages/plinth/modules/users/views.py", line 92, in get_initial<BR>
    'ssh', ['get-keys', '--username', self.object.username]).strip()<BR>
  File "/usr/lib/python3/dist-packages/plinth/actions.py", line 118, in superuser_run<BR>
    return _run(action, options, input, async, True)<BR>
  File "/usr/lib/python3/dist-packages/plinth/actions.py", line 180, in _run<BR>
    raise ActionError(action, output, error)<BR>
plinth.errors.ActionError: ('ssh', 'Bad username\n', '')<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>


I opened an issue for this one:
<A HREF="https://github.com/freedombox/Plinth/issues/449">https://github.com/freedombox/Plinth/issues/449</A>
</PRE>
</BLOCKQUOTE>
I am adding this trace to your issue.<BR>
<BR>
Dietmar
<BLOCKQUOTE TYPE=CITE>
<PRE>

--
James

_______________________________________________
Freedombox-discuss mailing list
<A HREF="mailto:Freedombox-discuss@lists.alioth.debian.org">Freedombox-discuss@lists.alioth.debian.org</A>
<A HREF="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss</A>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>