Getting below error when I try using this authenticator on docker
500 : Internal Server Error
Error in Authenticator.pre_spawn_start: FileNotFoundError [Errno 2] No such file or directory: 'systemctl'
You can try restarting your server from the home page.
Dockerfile
FROM jupyter/minimal-notebook:latest
RUN pip install notebook jupyterhub-tmpauthenticator jupyterhub-systemdspawner
COPY jupyterhub_config.py /home/jovyan/jupyterhub_config.py
jupyterhub_config.py
import tmpauthenticator
import systemdspawner
c=get_config()
c.JupyterHub.authenticator_class=tmpauthenticator.TmpAuthenticator
c.JupyterHub.spawner_class=systemdspawner.SystemdSpawner
c.SystemdSpawner.dynamic_users=True
Related
I am getting below mentioned error while running the protractor tests in headless mode in Unix machine.
Thinking it might be due to some permission issue, I gave execute permission to 'protractor' file in protractor/bin folder and to the protractor conf file, but no help.
[12:27:50] I/launcher - Running 1 instances of WebDriver
[12:27:50] I/direct - Using ChromeDriver directly...
[12:27:50] E/launcher - spawn EACCES
[12:27:50] E/launcher - Error: spawn EACCES
at exports._errnpException (util.js:1024:11)
at ChildProcess.spawn(internal/child_process.js:325:11)
at Object.exports.spawn(child_process.js:493:9)
at exec (/Ruser1/home/user1/Project1/node_modules/protractor/node_modules/selenium-webdriver/io/exec.js:116:27
at resolveCommandLineFlags.then.args (/Ruser1/home/user1/Project1/node_modules/protractor/node_modules/selenium-webdriver/remote/index.js:219:25)
at <anonymous>
I tried running my tests from terminal as well as from jenkins using command:
./node_modules/protractor/bin/protractor config/test1_cucumber.conf
But getting the same error. I have set directConnect=true in my conf file and passing --headless in chromeOptions.
I install symfony 2 under htdocs(xampp) folder, I start apache then I try to open app_dev.php file using this url :
http://localhost/symfony2/web/app_dev.php
I get this error :
Warning: require(C:\xampp\htdocs\symfony2\app/../vendor/autoload.php):
failed to open stream: No such file or directory in
C:\xampp\htdocs\symfony2\app\autoload.php on line 9
Fatal error: require(): Failed opening required
'C:\xampp\htdocs\symfony2\app/../vendor/autoload.php'
(include_path='C:\xampp\php\PEAR') in
C:\xampp\htdocs\symfony2\app\autoload.php on line 9
the tutorial that I follow (here) say that it will open a page
I reistall symfony using this command :
$ composer create-project symfony/framework-standard-edition my_project_name "2.7.*"
it works perfectly
Best way is to start symfony via the console to get the development enviroment:
bin/console server:run
http://symfony.com/doc/current/book/installation.html#running-the-symfony-application
Also check the read and write privileges, and check the composer installation.
I'm trying to install my first Blueprints following website: http://getcloudify.org/guide/3.2/getting-started-deploy-blueprint-locally.html, but when running the command:
D:\cloudify-manager\cloudify-nodecellar-example>cfy local init --blueprint-path aws-ec2-blueprint.yaml
I get the following error:
'ami-d05e75b8' is not of type 'object'; Path to error: inputs.image
My aws-ec2-blueprint.yaml:
...
inputs:
image: ami-d05e75b8
size: m4.large
agent_user: ubuntu
node_templates:
...
Any suggestion?
You are trying to deploy locally a blueprint that should be run on an AWS VM.
If you wish to run Nodecellar locally please try to run: https://github.com/cloudify-cosmo/cloudify-nodecellar-example/blob/master/local-blueprint.yaml
BR,
Jonathan
I'm running into an issue when trying to initialize Vagrant. Got a folder set up with a Vagrantfile along with VirtualBox and Vagrant installed. Using the hashicorp/precise32 box, I get this error when running vagrant up in console:
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'hashicorp/precise32'...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["import", "/Users/staffanestberg/.vagrant.d/boxes/hashicorp-VAGRANTSLASH-precise32/1.0.0/virtualbox/box.ovf", "--vsys", "0", "--vmname", "precise32_1406521581335_85787", "--vsys", "0", "--unit", "9", "--disk", "/Users/staffanestberg/VirtualBox VMs/precise32_1406521581335_85787/box-disk1.vmdk"]
Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting /Users/staffanestberg/.vagrant.d/boxes/hashicorp-VAGRANTSLASH-precise32/1.0.0/virtualbox/box.ovf...
OK.
0%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage: error: Appliance import failed
VBoxManage: error: Could not create the imported medium '/Users/staffanestberg/VirtualBox VMs/precise32_1406521581335_85787/box-disk1.vmdk'.
VBoxManage: error: VMDK: Compressed image is corrupted '/Users/staffanestberg/.vagrant.d/boxes/hashicorp-VAGRANTSLASH-precise32/1.0.0/virtualbox/box-disk1.vmdk' (VERR_ZIP_CORRUPTED)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Appliance, interface IAppliance
VBoxManage: error: Context: "int handleImportAppliance(HandlerArg*)" at line 779 of file VBoxManageAppliance.cpp
OSX 10.9.4 and Vagrant 1.6.3. I saw some threads regarding a similar error which suggested restarting VirtualBox but that didn't help. Any ideas?
I fix this error (VERR_ZIP_CORRUPTED), deleting the old folders
C:\Users\admin\.vagrant.d\boxes\ubuntu-VAGRANTSLASH-trusty64
And
F:\Maquinas Virtuales\VagrantDemo_default_1456853777482_45208
... (Where the virtualbox tried to create the virtual machine)
And then closing all the application that consume ports, like Dropbox, Skype, torrent, firewall,
and then I run again 2 more times (every time deleting the old folder) and it works perfectly.
I downloaded the latest symfony2 (2.0.10) and tried to run bin/vendors install but it prints the following:
Installing/Updating symfony
Cloning into /Users/i/sf2_proj/vendor/symfony...
error: Failed connect to github.com:80; Operation timed out while accessing http://github.com/symfony/symfony.git/info/refs
fatal: HTTP request failed
try using git:// instead of http:// in your deps file
Changing http:// to https:// also works