Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

lxdock up erron on fresh ubuntu 20.04 Focal #182

Open
devopstales opened this issue Oct 20, 2020 · 5 comments
Open

lxdock up erron on fresh ubuntu 20.04 Focal #182

devopstales opened this issue Oct 20, 2020 · 5 comments

Comments

@devopstales
Copy link

Creating new container "myproject-kmaster-1839202" from image centos/7
Creating new container "myproject-kmaster-1839202" from image centos/7
/home/user/.local/lib/python3.8/site-packages/pylxd/models/operation.py:76: UserWarning: Attempted to set unknown attribute "location" on instance of "Operation"
  warnings.warn(
==> kmaster: Starting container "kmaster"...
==> kmaster: Something went wrong trying to start the container.
@robvdl
Copy link
Member

robvdl commented Oct 22, 2020

I'm only going to be able to properly look at this in early November as the project really lacks maintainers, and I don't even actively use it anymore.

Anyway in the mean time have you tried going to older stable releases of LXD, it's been a while since I tried LXDock at the start of the year and many LXD versions have come out since. Then I got completely bogged down at work and I have a bunch of other PRs to look at too.

There are some guides on the LXD getting started page for installing older stable versions:

https://linuxcontainers.org/lxd/getting-started-cli/#ubuntu

I'm pretty sure 3.x is the last version I did test it with, anyway I can get to this maybe next week, otherwise early Novermber. I'm sorry for the inconvenience but we need maintainers, I can't maintain this project by myself really.

@robvdl
Copy link
Member

robvdl commented Oct 22, 2020

Make sure you have added yourself to the lxd group as well, I recall that being a requirement. You should not really run lxdock as sudo.

@robvdl
Copy link
Member

robvdl commented Oct 22, 2020

Also how did you install lxdock? Not via pip install I hope?

Just need to make sure because the project hasn't pushed a release to pypi for years as I have not been able to maintain it properly due to always being so busy at work as a senior dev across many different projects and teams, and being the only maintainer on LXDock I often just can't get to it fast enough. We only get a few PRs every year but they tend to come in bunches then there is months and months of inactivity.

Anyway, make sure you clone the latest master then install that, don't use the version from pip, it hasn't had a release for years.

There is a PR to publish LXDock as a snap, but to be honest I think much bigger priority is to start publishing on pypi again.

@robvdl
Copy link
Member

robvdl commented Oct 22, 2020

FYj, I won't look at this further until next week but I did try to install it on KDE Neon 20.04 (which is close enough to Focal).

I ran into some compatibility issue with a library ws4py and Python 3.8, I think it needs investigation:

  File "build/bdist.linux-x86_64/egg/ws4py/server/tulipserver.py", line 43
    f = asyncio.async(self.handle_initial_handshake())
                ^
SyntaxError: invalid syntax

  File "build/bdist.linux-x86_64/egg/ws4py/async_websocket.py", line 87
    asyncio.async(closeit())
            ^
SyntaxError: invalid syntax

I have no clue at this point what is even depending on the library ws4py, I've never heard of this library until today. But that library hasn't had an update since 2018 either so not looking good.

The weird thing is it didn't seem to stop lxdock from installing, I just noticed the error in the scrollback after running setup.py install.

@robvdl
Copy link
Member

robvdl commented Oct 22, 2020

This is what I got from installing latest lxd snap, adding myself to the lxd group, installing latest lxdock master and creating a fresh project using lxdock init then lxdock up.

It seems a new step is needed to create a storage pool. This is new to me as I have not used lxd since early this year:

(lxdock) rob@deskmini:~/Projects/foo$ lxdock up
Unable to find container "default" for directory "/home/rob/Projects/foo"
Creating new container "foo-default-57450572" from image ubuntu/bionic
Can't create container: No storage pool found. Please create a new storage pool

Need to investigate what is needed to create a 'storage pool', could try downgrading lxd to 3.x but the correct solution would be to adapt to these changes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants