Here you go. It's only a couple of lines though.
c = get_config()
c.Authenticator.admin_users = {'philliple'}
c.JupyterHub.spawner_class='systemdspawner.SystemdSpawner'

I also want to note that messing with it more I'm getting SElinux alers 
telling me pyhon3.4 is trying to access files like /usr/bin/systemctl which 
I'm assuming is where the permission error is, but shouldn't root be able 
to access these files?

On Monday, September 26, 2016 at 3:12:36 PM UTC-6, Yuvi Panda wrote:
>
> Hello! 
>
> That's very interesting - can you share the contents of your 
> jupyterhub_config.py file? 
>
> On Mon, Sep 26, 2016 at 11:44 AM,  <[email protected] <javascript:>> 
> wrote: 
> > I'm getting permission errors on the systemd spawner even though I'm 
> running 
> > it as root. These are the errors I'm getting. It's a fairly new spawner, 
> bu 
> > I feel like I'm missing something obvious. 
> > 
> >     Traceback (most recent call last): 
> >       File "/home/philliple/jupyterhub/jupyterhub/jupyterhub/user.py", 
> line 
> > 248, in spawn 
> >         yield self.stop() 
> >       File "/home/philliple/jupyterhub/jupyterhub/jupyterhub/user.py", 
> line 
> > 302, in stop 
> >         status = yield spawner.poll() 
> >       File 
> > "/usr/lib/python3.4/site-packages/systemdspawner/systemdspawner.py", 
> line 
> > 176, in poll 
> >         self.unit_name 
> >       File "/usr/lib64/python3.4/subprocess.py", line 607, in 
> check_output 
> >         with Popen(*popenargs, stdout=PIPE, **kwargs) as process: 
> >       File "/usr/lib64/python3.4/subprocess.py", line 859, in __init__ 
> >         restore_signals, start_new_session) 
> >       File "/usr/lib64/python3.4/subprocess.py", line 1457, in 
> > _execute_child 
> >         raise child_exception_type(errno_num, err_msg) 
> >     PermissionError: [Errno 13] Permission denied 
> > 
> > [E 2016-09-26 12:34:24.043 JupyterHub web:1548] Uncaught exception GET 
> > /hub/user/philliple (127.0.0.1) 
> >     HTTPServerRequest(protocol='http', host='localhost:8000', 
> method='GET', 
> > uri='/hub/user/philliple', version='HTTP/1.1', remote_ip='127.0.0.1', 
> > headers={'Referer': 'http://localhost:8000/hub/home', 'Connection': 
> 'close', 
> > 'Accept': 
> > 
> 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 
>
> > 'Accept-Language': 'en-US,en;q=0.8', 'Accept-Encoding': 'gzip, deflate, 
> > sdch', 'Cookie': 
> > 
> 'jupyter-hub-token="2|1:0|10:1474912415|17:jupyter-hub-token|44:ZjU0OWE1MjNmYjBhNGEwOGE4YTFmMjg3MGM2MjQwZjQ=|1df692d9b3f6146b5d4d76f1024a1ab5de455c04f2b4eebe855d58614329a41f"',
>  
>
> > 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 
> (KHTML, 
> > like Gecko) Chrome/52.0.2743.82 Safari/537.36', 
> 'Upgrade-Insecure-Requests': 
> > '1', 'Host': 'localhost:8000'}) 
> >     Traceback (most recent call last): 
> >       File "/usr/lib64/python3.4/site-packages/tornado/web.py", line 
> 1469, 
> > in _execute 
> >         result = yield result 
> >       File 
> > "/home/philliple/jupyterhub/jupyterhub/jupyterhub/handlers/base.py", 
> line 
> > 510, in get 
> >         yield self.spawn_single_user(current_user) 
> >       File 
> > "/home/philliple/jupyterhub/jupyterhub/jupyterhub/handlers/base.py", 
> line 
> > 323, in spawn_single_user 
> >         yield 
> gen.with_timeout(timedelta(seconds=self.slow_spawn_timeout), 
> > f) 
> >       File "/home/philliple/jupyterhub/jupyterhub/jupyterhub/user.py", 
> line 
> > 254, in spawn 
> >         raise e 
> >       File "/home/philliple/jupyterhub/jupyterhub/jupyterhub/user.py", 
> line 
> > 228, in spawn 
> >         ip_port = yield 
> > gen.with_timeout(timedelta(seconds=spawner.start_timeout), f) 
> >       File 
> > "/usr/lib/python3.4/site-packages/systemdspawner/systemdspawner.py", 
> line 
> > 85, in start 
> >         self.unit_name 
> >       File "/usr/lib64/python3.4/subprocess.py", line 607, in 
> check_output 
> >         with Popen(*popenargs, stdout=PIPE, **kwargs) as process: 
> >       File "/usr/lib64/python3.4/subprocess.py", line 859, in __init__ 
> >         restore_signals, start_new_session) 
> >       File "/usr/lib64/python3.4/subprocess.py", line 1457, in 
> > _execute_child 
> >         raise child_exception_type(errno_num, err_msg) 
> >     PermissionError: [Errno 13] Permission denied 
> > 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "Project Jupyter" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to [email protected] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/jupyter/78f3ba50-b2d1-4647-9867-cf7eb9a2e697%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
> Yuvi Panda T 
> http://yuvi.in/blog 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/8bbf4ce4-2bc8-43f9-895c-e0e0ff09b135%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to