Install failures: port in use and a timeout
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MicroStack |
Fix Released
|
High
|
Unassigned |
Bug Description
Hey all,
Excited to try microstack and tried to spin it up while on the road tonight. It didn't quite work, but I'm excited about it nonetheless.
tl;dr, If one of the services being install hits a port conflict because an existing service is using that port (http and mysql, particularly) the snap install fails. Resolving that leads to another failure, where a file is downloading but times out.
OS: Ubuntu 18.04.1
What I did:
$ snap install microstack --classic --candidate
error: cannot perform the following tasks:
- Start snap "microstack" (65) services ([start snap.microstack
See "systemctl status snap.microstack
journalctl -xe reports:
microstack.
As it turns out, I had another service listening on port 80, so I removed that and re-ran the install but ran into this:
Creating OpenStack Databases
Using conf file: /var/snap/
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/snap/
After stopping my existing mysql server, the install got farther but stopped again:
Run configure hook of "microstack" snap if present [68/1332]
un configure hook of "microstack" snap if present |
error: cannot perform the following tasks:
- Run configure hook of "microstack" snap if present (run hook "configure":
-----
4400K .......... .......... .......... .......... .......... 34% 24.4K 5m2s
4450K .......... .......... .......... .......... .......... 34% 35.1K 5m0s
4500K .......... .......... .......... .......... .......... 35% 52.4K 4m57s
4550K .......... .......... .......... .......... .......... 35% 72.8K 4m53s
4600K .......... .......... .......... .......... .......... 35% 60.6K 4m49s
4650K .......... .......... .......... .......... .......... 36% 124K 4m45s
4700K .......... .......... .......... .......... .......... 36% 104K 4m41s
[...]
9050K .......... .......... .......... .......... .......... 70% 98.9K 1m49s
9100K .......... .......... .......... .......... .......... 70% 88.5K 1m47s
9150K .......... .......... .......... .......... .......... 71% 90.1K 1m46s
9200K .......... .......... .......... .......... .......... 71% 98.1K 1m44s
9250K .......... .......... .......... .......... .......... 71% 78.4K 1m42s
9300K .......... ..........
<exceeded maximum runtime of 5m0s>
and dropped me back to the terminal, with no other error message.
I do see this in journalctl several times:
Feb 05 22:58:06 ronin libvirtd[18360]: ethtool ioctl error: No such device
I assume it was related to the snap, but the timeout seems to be with downloading something (and over hotel wifi, not surprising).
Changed in microstack: | |
status: | New → Confirmed |
Right now, microstack is pretty rude about port selection, hogging the default http and mysql ports. This makes it easy to find stuff, but not easy to run it alongside other projects on a laptop. I think that we should give this some thought, as possibly switch up the ports that it uses.
The second issue is probably a timeout while downloading the cirros image over hotel wifi. A workaround is to download the cirros cloud image to /images:
sudo curl -o /images/ cirros- 0.3.5-x86_ 64-disk. img http:// download. cirros- cloud.net/ 0.3.5/cirros- 0.3.5-x86_ 64-disk. img
(Note: it might be better to just bundle the cirros image, or, at the very least, put it in a place that gets cleaned up when the snap is uninstalled.)