Docker on Windows: Unable to create: Inconsistent parameters PolicyStore PersistentStore and Dhcp Enabled - docker-for-windows

Any clue? Can't seem to run Docker on Windows 10 to save my life :(
Installed and reinstalled this thing multiple times, disabled/enabled HyperV, nothing. Does the log file indicate anything to anyone?
Version: 17.03.1-ce-win5 (10743)
Channel: stable
Sha1: b18e2a50ccf296bcd637b330c0ca9faaab9d790c
Started on: 2017/05/09 15:23:22.316
Resources: C:\Program Files\Docker\Docker\Resources
OS: Windows 10 Pro
Edition: Professional
Id: 1607
Build: 14393
BuildLabName: 14393.953.amd64fre.rs1_release_inmarket.170303-1614
File: C:\Users\akamen\AppData\Local\Docker\log.txt
CommandLine: "C:\Program Files\Docker\Docker\Docker for Windows.exe"
You can send feedback, including this log file, at https://github.com/docker/for-win/issues
[15:23:22.505][GUI ][Info ] Starting...
[15:23:22.912][Tracking ][Info ] Crash report and usage statistics are enabled
[15:23:22.925][SegmentApi ][Info ] Usage statistic: appLaunched
[15:23:23.198][NamedPipeClient][Info ] Sending Version()...
[15:23:23.239][NamedPipeClient][Info ] Received response for Version
[15:23:23.242][SegmentApi ][Info ] Usage statistic: heartbeat
[15:23:15.514][BackendServer ][Info ] Started
[15:23:23.235][NamedPipeServer][Info ] Version()
[15:23:23.235][NamedPipeServer][Info ] Version done in 00:00:00.0005001.
[15:23:23.739][Updater ][Info ] Checking for updates on channel stable...
[15:23:23.740][Notifications ][Info ] Docker is starting...
[15:23:23.754][NamedPipeClient][Info ] Sending Start(Docker.Core.Settings)...
[15:23:23.757][NamedPipeServer][Info ] Start(Docker.Core.Settings)
[15:23:23.762][PowerMode ][Info ] Stop
[15:23:23.765][HyperV ][Info ] Stop
[15:23:23.774][PowerShell ][Info ] Run script with parameters: -Stop True...
[15:23:23.777][PowerShell ][Info ] Creating a Runspace Pool...
[15:23:23.845][Updater ][Info ] Local build 10743 is as good as the remote 10743 on channel stable
[15:23:23.931][PowerShell ][Info ] Runspace Pool created (Min=1, Max=2)
[15:23:23.994][HyperV ][Info ] Script started at 15:23:23.988
[15:23:25.562][HyperV ][Info ] Module loaded at 15:23:25.561
[15:23:25.773][HyperV ][Info ] VM MobyLinuxVM does not exist
[15:23:25.774][HyperV ][Debug ] [stop] took 00:00:02.0072553 to run
[15:23:25.774][OptimizeDisk ][Info ] Optimize
[15:23:25.775][PowerShell ][Info ] Run script...
[15:23:25.791][Moby ][Info ] Stop
[15:23:25.816][HyperVGuids ][Info ] Installing GUIDs...
[15:23:25.816][PowerMode ][Info ] Start
[15:23:25.817][HyperV ][Info ] Create
[15:23:25.817][PowerShell ][Info ] Run script with parameters: -Create True -VhdPathOverride -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso...
[15:23:25.818][HyperVGuids ][Info ] GUIDs installed
[15:23:25.821][Firewall ][Info ] Removing all existing rules...
[15:23:25.826][HyperV ][Info ] Script started at 15:23:25.826
[15:23:25.890][HyperV ][Info ] Module loaded at 15:23:25.890
[15:23:25.908][Firewall ][Info ] All existing rules are removed.
[15:23:25.908][Firewall ][Info ] Opening ports for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe...
[15:23:25.919][Firewall ][Info ] Opening ports for SMB...
[15:23:25.963][Firewall ][Info ] Ports are opened
[15:23:26.112][HyperV ][Info ] Creating Switch: DockerNAT...
[15:23:27.678][HyperV ][Info ] Switch created.
[15:23:28.481][Linux ][Error ] Failed to start: Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Inconsistent parameters PolicyStore PersistentStore and Dhcp Enabled
. Let's retry
[15:23:28.484][PowerShell ][Info ] Run script...
[15:23:30.094][HyperV ][Info ] Hyper-V is running
[15:23:30.095][PowerMode ][Info ] Stop
[15:23:30.095][HyperV ][Info ] Stop
[15:23:30.095][PowerShell ][Info ] Run script with parameters: -Stop True...
[15:23:30.118][HyperV ][Info ] Script started at 15:23:30.117
[15:23:30.136][HyperV ][Info ] Module loaded at 15:23:30.136
[15:23:30.152][HyperV ][Info ] VM MobyLinuxVM does not exist
[15:23:30.152][HyperV ][Debug ] [stop] took 00:00:00.0570078 to run
[15:23:30.152][OptimizeDisk ][Info ] Optimize
[15:23:30.152][PowerShell ][Info ] Run script...
[15:23:30.168][Moby ][Info ] Stop
[15:23:30.200][HyperV ][Info ] Destroy
[15:23:30.201][PowerShell ][Info ] Run script with parameters: -Destroy True -KeepVolume True...
[15:23:30.209][HyperV ][Info ] Script started at 15:23:30.209
[15:23:30.229][HyperV ][Info ] Module loaded at 15:23:30.224
[15:23:30.242][HyperV ][Info ] VM MobyLinuxVM does not exist
[15:23:30.244][HyperV ][Info ] Destroying Switch DockerNAT...
[15:23:30.829][HyperV ][Info ] Removing VM MobyLinuxVM...
[15:23:30.844][HyperV ][Debug ] [destroy] took 00:00:00.6434914 to run
[15:23:30.844][Firewall ][Info ] Closing ports...
[15:23:30.844][Firewall ][Info ] Removing all existing rules...
[15:23:30.958][Firewall ][Info ] All existing rules are removed.
[15:23:30.958][Firewall ][Info ] Ports are closed
[15:23:30.958][HyperVGuids ][Info ] Removing GUIDs...
[15:23:30.960][HyperVGuids ][Info ] GUIDs removed
[15:23:30.960][HyperV ][Info ] Create
[15:23:30.961][PowerShell ][Info ] Run script with parameters: -Create True -VhdPathOverride -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso...
[15:23:30.968][HyperV ][Info ] Script started at 15:23:30.968
[15:23:30.983][HyperV ][Info ] Module loaded at 15:23:30.983
[15:23:31.074][HyperV ][Info ] Creating Switch: DockerNAT...
[15:23:32.184][HyperV ][Info ] Switch created.
[15:23:32.325][PowerMode ][Info ] Stop
[15:23:32.325][HyperV ][Info ] Stop
[15:23:32.325][PowerShell ][Info ] Run script with parameters: -Stop True...
[15:23:32.333][HyperV ][Info ] Script started at 15:23:32.333
[15:23:32.346][HyperV ][Info ] Module loaded at 15:23:32.346
[15:23:32.358][HyperV ][Info ] VM MobyLinuxVM does not exist
[15:23:32.358][HyperV ][Debug ] [stop] took 00:00:00.0325014 to run
[15:23:32.358][OptimizeDisk ][Info ] Optimize
[15:23:32.358][PowerShell ][Info ] Run script...
[15:23:32.369][Moby ][Info ] Stop
[15:23:32.386][HyperV ][Info ] Destroy
[15:23:32.386][PowerShell ][Info ] Run script with parameters: -Destroy True -KeepVolume True...
[15:23:32.393][HyperV ][Info ] Script started at 15:23:32.393
[15:23:32.406][HyperV ][Info ] Module loaded at 15:23:32.406
[15:23:32.418][HyperV ][Info ] VM MobyLinuxVM does not exist
[15:23:32.419][HyperV ][Info ] Destroying Switch DockerNAT...
[15:23:32.999][HyperV ][Info ] Removing VM MobyLinuxVM...
[15:23:33.010][HyperV ][Debug ] [destroy] took 00:00:00.6234920 to run
[15:23:33.010][Firewall ][Info ] Closing ports...
[15:23:33.010][Firewall ][Info ] Removing all existing rules...
[15:23:33.047][Firewall ][Info ] All existing rules are removed.
[15:23:33.047][Firewall ][Info ] Ports are closed
[15:23:33.047][HyperVGuids ][Info ] Removing GUIDs...
[15:23:33.048][HyperVGuids ][Info ] GUIDs removed
[15:23:33.050][NamedPipeServer][Error ] Unable to execute Start: Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Inconsistent parameters PolicyStore PersistentStore and Dhcp Enabled
at Docker.Backend.HyperV.RunScript(String action, Dictionary`2 parameters)
at Docker.Backend.ContainerEngine.Linux.Start(Settings settings)
at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass8_0.<Register>b__0(Object[] parameters)
at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters)
[15:23:33.148][NamedPipeClient][Error ] Unable to send Start: Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Inconsistent parameters PolicyStore PersistentStore and Dhcp Enabled
[15:23:33.150][Notifications ][Error ] Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Inconsistent parameters PolicyStore PersistentStore and Dhcp Enabled
[15:27:28.054][ErrorReportWindow][Info ] Open logs

Related

PYTHONPATH issue on google colab

From different forum and tutorial it seem that the command
!python object_detection/builders/model_builder_test.py supposed to give an output like:
Running tests under Python 3.6.9: /usr/bin/python3
[ RUN ] ModelBuilderTest.test_create_experimental_model
[ OK ] ModelBuilderTest.test_create_experimental_model
[ RUN ] ModelBuilderTest.test_create_faster_rcnn_model_from_config_with_example_miner
[ OK ] ModelBuilderTest.test_create_faster_rcnn_model_from_config_with_example_miner
[ RUN ] ModelBuilderTest.test_create_faster_rcnn_models_from_config_faster_rcnn_with_matmul
[ OK ] ModelBuilderTest.test_create_faster_rcnn_models_from_config_faster_rcnn_with_matmul
[ RUN ] ModelBuilderTest.test_create_faster_rcnn_models_from_config_faster_rcnn_without_matmul
[ OK ] ModelBuilderTest.test_create_faster_rcnn_models_from_config_faster_rcnn_without_matmul
[ RUN ] ModelBuilderTest.test_create_faster_rcnn_models_from_config_mask_rcnn_with_matmul
[ OK ] ModelBuilderTest.test_create_faster_rcnn_models_from_config_mask_rcnn_with_matmul
[ RUN ] ModelBuilderTest.test_create_faster_rcnn_models_from_config_mask_rcnn_without_matmul
[ OK ] ModelBuilderTest.test_create_faster_rcnn_models_from_config_mask_rcnn_without_matmul
[ RUN ] ModelBuilderTest.test_create_rfcn_model_from_config
[ OK ] ModelBuilderTest.test_create_rfcn_model_from_config
[ RUN ] ModelBuilderTest.test_create_ssd_fpn_model_from_config
[ OK ] ModelBuilderTest.test_create_ssd_fpn_model_from_config
[ RUN ] ModelBuilderTest.test_create_ssd_models_from_config
[ OK ] ModelBuilderTest.test_create_ssd_models_from_config
[ RUN ] ModelBuilderTest.test_invalid_faster_rcnn_batchnorm_update
[ OK ] ModelBuilderTest.test_invalid_faster_rcnn_batchnorm_update
[ RUN ] ModelBuilderTest.test_invalid_first_stage_nms_iou_threshold
[ OK ] ModelBuilderTest.test_invalid_first_stage_nms_iou_threshold
[ RUN ] ModelBuilderTest.test_invalid_model_config_proto
[ OK ] ModelBuilderTest.test_invalid_model_config_proto
[ RUN ] ModelBuilderTest.test_invalid_second_stage_batch_size
[ OK ] ModelBuilderTest.test_invalid_second_stage_batch_size
[ RUN ] ModelBuilderTest.test_session
[ SKIPPED ] ModelBuilderTest.test_session
[ RUN ] ModelBuilderTest.test_unknown_faster_rcnn_feature_extractor
[ OK ] ModelBuilderTest.test_unknown_faster_rcnn_feature_extractor
[ RUN ] ModelBuilderTest.test_unknown_meta_architecture
[ OK ] ModelBuilderTest.test_unknown_meta_architecture
[ RUN ] ModelBuilderTest.test_unknown_ssd_feature_extractor
[ OK ] ModelBuilderTest.test_unknown_ssd_feature_extractor
----------------------------------------------------------------------
Ran 17 tests in 0.149s
But in my case it is not throwing any out put. Is it normal?
Here are my whole codes and output:
%cd /content
!git clone --quiet https://github.com/tensorflow/models.git
!apt-get install -qq protobuf-compiler python-pil python-lxml python-tk
!pip install -q Cython contextlib2 pillow lxml matplotlib
!pip install -q pycocotools
%cd /content/models/research
!protoc object_detection/protos/*.proto --python_out=.
import os
os.environ['PYTHONPATH'] += ':/content/models/research/:/content/models/research/slim/'
!python object_detection/builders/model_builder_test.py
/content
fatal: destination path 'models' already exists and is not an empty directory.
/content/models/research

Rabbitmq management plugins - RMQ 3.6.5

I am having hard time here in enabling rmq management console on company laptop. I dont have admin rights to run cmd as admin here.
I am trying to enable console and see following output after that when I restart rabbit mq service and try to access console using http://localhost:15672, I am not able to access. I have also pasted output of list command for plugins.
(I am able to connect to broker via spring application though but cant access this console to view queues.)
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmq-plugins enable rabbitmq_management
The following plugins have been enabled:
mochiweb
webmachine
rabbitmq_web_dispatch
amqp_client
rabbitmq_management_agent
rabbitmq_management
Applying plugin configuration to rabbit#PCNAME... failed.
* Could not contact node rabbit#PCNAME.
Changes will take effect at broker restart.
* Options: --online - fail if broker cannot be contacted.
--offline - do not try to contact broker.
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmq-plugins list
Configured: E = explicitly enabled; e = implicitly enabled
| Status: [failed to contact rabbit#PCNAME - status not shown]
|/
[e ] amqp_client 3.6.5
[ ] cowboy 1.0.3
[ ] cowlib 1.0.1
[e ] mochiweb 2.13.1
[ ] rabbitmq_amqp1_0 3.6.5
[ ] rabbitmq_auth_backend_ldap 3.6.5
[ ] rabbitmq_auth_mechanism_ssl 3.6.5
[ ] rabbitmq_consistent_hash_exchange 3.6.5
[ ] rabbitmq_event_exchange 3.6.5
[ ] rabbitmq_federation 3.6.5
[ ] rabbitmq_federation_management 3.6.5
[ ] rabbitmq_jms_topic_exchange 3.6.5
[E ] rabbitmq_management 3.6.5
[e ] rabbitmq_management_agent 3.6.5
[ ] rabbitmq_management_visualiser 3.6.5
[ ] rabbitmq_mqtt 3.6.5
[ ] rabbitmq_recent_history_exchange 1.2.1
[ ] rabbitmq_sharding 0.1.0
[ ] rabbitmq_shovel 3.6.5
[ ] rabbitmq_shovel_management 3.6.5
[ ] rabbitmq_stomp 3.6.5
[ ] rabbitmq_top 3.6.5
[ ] rabbitmq_tracing 3.6.5
[ ] rabbitmq_trust_store 3.6.5
[e ] rabbitmq_web_dispatch 3.6.5
[ ] rabbitmq_web_stomp 3.6.5
[ ] rabbitmq_web_stomp_examples 3.6.5
[ ] sockjs 0.3.4
[e ] webmachine 1.10.3

What Happens If I Delete ".erlang.cookie" File of Rabbitmq?

I accidentally deleted the ".erlang.cookie" file in $HOME on one of rabbitmq cluster nodes.
I found that the cluster status is ok and rabbitmqctl cli works well.
It seems that deleting the cookie file is not a problem but I can not be sure that the cluster is really ok.
so I'd like to know whether the deletion I describe above could be no problem.
please help me, I would take any advice gratefully.
additional info
there are 3 nodes for rabbitmq cluster.
all of them have the same ".erlang.cookie" file in /var/lib/rabbitmq/ , but they have different ".erlang.cookie" file in $HOME .
and the file I accidentally deleted was in $HOME on node1
rabbitmq.conf:
[
{rabbit, [
{cluster_partition_handling, autoheal},
{default_permissions, [<<".*">>, <<".*">>, <<".*">>]},
{default_vhost, <<"/">>},
{log_levels, [{connection,info}]},
{mnesia_table_loading_timeout, 10000},
{tcp_listen_options, [
binary,
{packet, raw},
{reuseaddr, true},
{backlog, 128},
{nodelay, true},
{exit_on_close, false},
{keepalive, true}
]},
{default_user, <<"nova">>},
{default_pass, <<"hq33cCIU">>}
]},
{kernel, [
{inet_default_connect_options, [{nodelay,true}]},
{inet_dist_listen_max, 41055},
{inet_dist_listen_min, 41055},
{net_ticktime, 10}
]}
,
{rabbitmq_management, [
{listener, [
{port, 15672}
]}
]}
].
The RabbitMQ team monitors this mailing list and only sometimes answers questions on StackOverflow.
RabbitMQ and its associated commands use the cookie file in /var/lib/rabbitmq. Deleting the file in $HOME will be fine.

Rabbitmqctl command throws error

I am trying to create a 3 node cluster on RabbitMQ. I have the first node up and running. When I issue join cluster command from node 2, it is throwing an error that node is down.
rabbitmqctl join_cluster rabbit#hostname02
I am getting the following error:
Status of node rabbit#hostname02 ...
Error: unable to connect to node rabbit#hostname02: nodedown
DIAGNOSTICS
===========
attempted to contact: [rabbit#hostname02]
rabbit#hostname02:
* connected to epmd (port 4369) on hostname02
* epmd reports: node 'rabbit' not running at all
no other nodes on hostname02
* suggestion: start the node
current node details:
- node name: 'rabbitmq-cli-30#hostname02'
- home dir: /var/lib/rabbitmq
- cookie hash: bygafwoj/ISgb3yKej1pEg==
This is my config file.
[
{rabbit, [
{cluster_nodes, {[rabbit#hostname01, rabbitmq#hostname02, rabbit#hostname03], disc}},
{cluster_partition_handling, ignore},
{tcp_listen_options,
[binary,
{packet, raw},
{reuseaddr, true},
{backlog, 128},
{nodelay, true},
{exit_on_close, false}]
},
{default_user, <<"guest">>},
{default_pass, <<"guest">>},
{log_levels, [{autocluster, debug}, {connection, info}]}
]},
{kernel, [
]},
{rabbitmq_management, [
{listener, [
{port, 15672}
]}
]}
].
% EOF
I have updated the /etc/hosts file with the details of all 3 nodes on all the 3 servers. I am not sure where I am getting this wrong.

Not able to add Rabbitmq plugin

I was following this http://www.rabbitmq.com/plugin-development.html link to build rabbitmq plugin https://github.com/rabbitmq/rabbitmq-web-mqtt
after building i ONLY copied rabbitmq_mqtt.ez to /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.2/plugins
running sudo rabbitmq-plugins enable rabbitmq_web_mqtt
shows :
The following plugins have been enabled:
cowlib
cowboy
rabbitmq_web_mqtt
Applying plugin configuration to rabbit#manish-Lenovo-G510... failed.
Error: {could_not_start,rabbitmq_web_mqtt,
{undef,
[{lager_config,get,
[{rabbit_log_lager_event,loglevel},{0,[]}],
[]},
{rabbit_web_mqtt_app,mqtt_init,0,
[{file,"src/rabbit_web_mqtt_app.erl"},{line,69}]},
{rabbit_web_mqtt_app,start,2,
[{file,"src/rabbit_web_mqtt_app.erl"},{line,31}]},
{application_master,start_it_old,4,
[{file,"application_master.erl"},{line,269}]}]}}
Running sudo rabbitmq-plugins list
Configured: E = explicitly enabled; e = implicitly enabled
| Status: * = running on rabbit#manish-Lenovo-G510
|/
[e*] amqp_client 3.6.2
[e ] cowboy 1.0.3
[e ] cowlib 1.0.1
[e*] mochiweb 2.13.1
[ ] rabbitmq_amqp1_0 3.6.2
[ ] rabbitmq_auth_backend_ldap 3.6.2
[ ] rabbitmq_auth_mechanism_ssl 3.6.2
[ ] rabbitmq_consistent_hash_exchange 3.6.2
[ ] rabbitmq_event_exchange 3.6.2
[ ] rabbitmq_federation 3.6.2
[ ] rabbitmq_federation_management 3.6.2
[E*] rabbitmq_management 3.6.2
[e*] rabbitmq_management_agent 3.6.2
[ ] rabbitmq_management_visualiser 3.6.2
[E*] rabbitmq_mqtt 3.6.2
[ ] rabbitmq_recent_history_exchange 1.2.1
[ ] rabbitmq_sharding 0.1.0
[ ] rabbitmq_shovel 3.6.2
[ ] rabbitmq_shovel_management 3.6.2
[ ] rabbitmq_stomp 3.6.2
[ ] rabbitmq_tracing 3.6.2
[e*] rabbitmq_web_dispatch 3.6.2
[E ] rabbitmq_web_mqtt
[ ] rabbitmq_web_stomp 3.6.2
[ ] rabbitmq_web_stomp_examples 3.6.2
[ ] sockjs 0.3.4
[e*] webmachine 1.10.3
I am not able to connect using paho JS client. So what is causing the issue? I tried port 1888, 8083,8883,15675
Applying plugin configuration to rabbit#manish-Lenovo-G510... failed.
Error: {could_not_start,rabbitmq_web_mqtt,
{undef,
[{lager_config,get,
Lager is only in the version 3.7.0, most likely you built the master branch.
To build the plugin version 3.6.2 you should:
git clone https://github.com/rabbitmq/rabbitmq-public-umbrella.git .
make up BRANCH=rabbitmq_v3_6_2
cd deps/rabbitmq_web_mqtt
make dist
EDIT
you have to disable and remove the old .ez file, after copied the new one, you have to enable the plugin.
just tried and it works correctly, see the test: