Docker for Azure CE VM Mount Issues
So we have a Docker for Azure CE VM in Azure. We've pulled the eclipse-mosquitto package into docker. However when we try to run it we keep getting the following error message.
AzureVM-Docker-Production:/mosquitto/config$ docker run -it -p 1883:1883 -p 8883:8883 -p 9001:9001 --mount type=bind,source=/mosquitto,target=/mosquitto eclipse-mosquitto Error: Unable to open config file /mosquitto/config/mosquitto.conf Error found at /mosquitto/config/mosquitto.conf:32765. Error: Unable to open configuration file.
In troubleshooting i've created an Ubuntu VM onprem and installed Docker CE and did all the same steps and it runs without issue. Anyone have any suggestions as to what is going on or why this isn't working?
See also questions close to this topic
Enabling App Insights profiler in Azure functions
Is it possible to use the application insights profiler on azure functions? Either via the portal or a more manual means.
I haven't found a way in the portal and I haven't seen explicit documentation stating either way nor github tickets.
I'd assume probably not, as many of the automagic features of application insights don't seem to be supported yet.
If it's not possible, out of interest is it because of the azure functions sandbox not giving enough permissions for profiling?
How to troubleshoot run_customscriptaction stuck at 35% in HDInsight
Thanks in advance for all help ,
we are installing a 3rd party s/w on edge node of an azure HDInsight Cluster using shell custom script action. Though our script has completed the deployment successfully, yet run_customscriptaction stuck at 35% and we are not able to provision the edge node on the HDInsight cluster.
We have iterated over the logs located at /var/lib/ambari-agent/data/output-*.txt and couldn’t find any relevant information as to why the script action stuck at 35% .
please guide in the troubleshooting the aforesaid issue.
What are the lternative approaches to install Azure CLI on Ubuntu without root access?
I am struggling to install Azure CLI on a Ubuntu machine without root access.
The instructions here assume that we have root access (or reasonable sudo access).
I am trying to run this on a Ubuntu machine (provided by IBM DevOps toolchain - root access will never be granted) where executing the sudo command results in:
AZ_REPO=$(lsb_release -cs) echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \ sudo tee /etc/apt/sources.list.d/azure-cli.list
This results in sudo: no tty present and no askpass program specified
Why do I need a tty to run sudo? has some answers however I am not able to use them as I don't have control over the login to the shell via ssh.
I am using the IBM Cloud's DevOps toolchain to deploy applications to both IBM Cloud and Azure.
The DevOps toolchain provides me a shell for me to execute commands.
Are there other alternatives
Deploying jhipster registry on Amazon ECS
I am developing microservice based app with jHipster (but the question is for spring cloud config in general), for development purposes I was using docker-compose and now I'm creating stage environment on Amazon Elastic Container Service.
I'm facing a problem with connecting registry to bitbucket to download spring cloud config files. With docker-compose I was mounting a volume which contained ssh key, that is required to access BitBucket:
services: jhipster-registry: image: jhipster/jhipster-registry:v3.2.3 volumes: - /home/ubuntu/bb-key:/root/.ssh
I don't know how I can pass this key to container running in ECS?
I can't put it directly on EC2 - I don't know on which instance in cluster registry will start. Maybe I must put it on s3 and change registry image to download it from s3? But it sounds somehow not right.
How do you set the ChromeDriver port in Canopy (selenium library)?
I'm using Canopy within a Docker container and would like to specify the port to 4444 instead of the final random one assigned when calling canopy.core.start because of multiple connectivity errors Error: ConnectFailure (Connection refused) --or a failure to launch the driver.
let chromeOptions = OpenQA.Selenium.Chrome.ChromeOptions() chromeOptions.AddArgument("--no-sandbox") chromeOptions.AddArgument("--disable-extensions") chromeOptions.AddArgument("--disable-gpu") chromeOptions.AddArgument("--disable-client-side-phishing-detection") chromeOptions.AddArgument("--disable-suggestions-service") chromeOptions.AddArgument("--safebrowsing-disable-download-protection") chromeOptions.AddArgument("--no-first-run") chromeOptions.AddArgument("--allow-insecure-localhost"); chromeOptions.AddArgument("--port=4444"); // Not taking effect; see below let chromeNoSandbox = ChromeWithOptions(chromeOptions) canopy.configuration.chromeDir <- "." start chromeNoSandbox
Error: ConnectFailure (Connection refused) <--- Multiple of these in a docker container
Starting ChromeDriver 2.35.528139 (47ead77cb35ad2a9a83248b292151462a66cd881) on port 36479 <-- How to specify this?
Connect timeout while connecting to mongodb docker container running on VirtualBox (Windows 7)
Trying to connect to mongodb docker container running on VirtualBox (as I have a windows setup). I'm making the connection using spring-boot project running on intellij on my Local Windows Machine.
Is there a configuration file in spring-boot I could use to specify host and port before attempting the connection to mongodb?
I already tried modifying application.properties (added ip for the VM that docker threw up initially - see docker console image) but it didn't work.
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.0.M7</version> <relativePath/> <!-- lookup parent from repository --> </parent> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <java.version>1.8</java.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-mongodb</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> <repositories> <repository> <id>spring-snapshots</id> <name>Spring Snapshots</name> <url>https://repo.spring.io/snapshot</url> <snapshots> <enabled>true</enabled> </snapshots> </repository> <repository> <id>spring-milestones</id> <name>Spring Milestones</name> <url>https://repo.spring.io/milestone</url> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>spring-snapshots</id> <name>Spring Snapshots</name> <url>https://repo.spring.io/snapshot</url> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> <pluginRepository> <id>spring-milestones</id> <name>Spring Milestones</name> <url>https://repo.spring.io/milestone</url> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories>
Mount AD windows network drive in Gnu/Linux
Iam trying since this morning to mount a Network drive on linux but no chance so far.
I did install Cifs-utils, but its seems that it doesn't want to mount (printing every time the "how to" mount).
lsmod | grep cifsdoest not show anything btw even if i did install it.
[root@---- ~]# yum install cifs-utils Loaded plugins: security Setting up Install Process Package cifs-utils-4.8.1-18.el6.x86_64 already installed and latest version Nothing to do
I can ping the drive but https/wget is blocked. No Ssh of corse so i can't test the
Any one can tell me how i can do it ? Thank you :)
Here is so far what i've tried :
mkdir -p /mnt/ntserver mount -t cifs "//@IP/the/location" -o username=@ADuser, password=@pwd /mnt/ntserver/
With and without quotes.
Usage: mount -V : print version mount -h : print this help mount : list mounted filesystems mount -l : idem, including volume labels So far the informational part. Next the mounting. The command is `mount [-t fstype] something somewhere'. Details found in /etc/fstab may be omitted. mount -a [-t|-O] ... : mount all stuff from /etc/fstab mount device : mount device at the known place mount directory : mount known device here mount -t type dev dir : ordinary mount command Note that one does not really mount a device, one mounts a filesystem (of the given type) found on the device. One can also mount an already visible directory tree elsewhere: mount --bind olddir newdir or move a subtree: mount --move olddir newdir One can change the type of mount containing the directory dir: mount --make-shared dir mount --make-slave dir mount --make-private dir mount --make-unbindable dir One can change the type of all the mounts in a mount subtree containing the directory dir: mount --make-rshared dir mount --make-rslave dir mount --make-rprivate dir mount --make-runbindable dir A device can be given by name, say /dev/hda1 or /dev/cdrom, or by label, using -L label or by uuid, using -U uuid . Other options: [-nfFrsvw] [-o options] [-p passwdfd]. For many more details, say man 8 mount .
Reasons why fdisk "write partition table" makes systemd to mount partition?
I have a partition configured in my fstab
UUID=xxx /srv/bla ext4 errors=remount-ro 0 2
Now if I
umountthe partition, then go in
fdisk. Delete the partition and re-create it (identical). At the time I press "
Enter, I see that in system log that systemd is issuing a fsck then a mount.
I understand that systemd has generated a
/run/systemd/generator/bla.mountbut what I don't understand why it is run while writing partition table ? I don't want that to happen especially in the case where I'm resizing the partition as it requires additional step (as if I prefer growing the filesystem with the partition umounted).
How to Install Guest Editions CD Image on Hortonworks Docker Sandbox 2.5 and share folder?
My HDP runs on Linux Redhat which basically has no GUI. In Vbox, I clicked on Insert Guest Editions CD Image under the Devices tab and it added an optical drive to the Storage settings of my VM. What are the next steps I need to follow? How do I install the ISO file. Also, how can I confirm the ISO has entered the VM.