LXDMosaic: Web GUI

@turtle0x1 plz help

root@lxdMosaic:~# mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 18
Server version: 8.0.25-0ubuntu0.20.04.1 (Ubuntu)

Copyright (c) 2000, 2021, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

mysql> use LXD_Manager;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select User_ID, User_Name from Users;
±--------±----------+
| User_ID | User_Name |
±--------±----------+
| 1 | admin |
±--------±----------+
1 row in set (0.00 sec)

mysql> update user set User_Password = “$2y$10$gDLdVHx2DEuoB81DobEcn…FIGScRjFg6hoN/kDmvJfn6SmMP0OW2” where User_ID = 1;
ERROR 1146 (42S02): Table ‘LXD_Manager.user’ doesn’t exist
mysql> update User set User_Password = “$2y$10$gDLdVHx2DEuoB81DobEcn…FIGScRjFg6hoN/kDmvJfn6SmMP0OW2” where User_ID = 1;
ERROR 1146 (42S02): Table ‘LXD_Manager.User’ doesn’t exist
mysql>

Its because you used user/User instead of Users - I see the docs are wrong tracking here

So it should be;

update `Users` set `User_Password` = “$2y$10$gDLdVHx2DEuoB81DobEcnFIGScRjFg6hoN/kDmvJfn6SmMP0OW2” where User_ID = 1;
1 Like

After login I am going to add server then given admin with password. but when I have click on
Launch LXD mosaic it shows “Cant run first run /var/www/LxdMosaic/src/classes/Tools/InstanceSettings/FirstRun.php 31”

Set the admin password to NULL and you will be able to run first run again.

Because you have no servers it wants you to run first run, the admin password should not be set when first run is run - this prevents people abusing “first run”. If you have deleted all the hosts you need to set the admin password back to NULL.

how can I set it nul?

update `Users` set `User_Password` = NULL where User_ID = 1;

mysql> use LXD_Manager;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> update Users set User_Password = NULL where User_ID = 1;
ERROR 1048 (23000): Column ‘User_Password’ cannot be null

Please can you open an issue on Github instead of continuing to comment here if this doesn’t work, this really just a release thread! I was wrong its;

update `Users` set`User_Password` = '' where User_ID = 1;
1 Like

@turtle0x1 why the snap lxdmosaic has no aarch64 support?

cause i have no aarch64 to test snap on (all my RPI’s are to old which is just ridiculous)

You can install using the container method instead, shouldn’t have any problems (from memory)

Just released version 0.13.0

If your running a manually installed instance upgrades instructions are here

:warning: READ THE WARNING ABOUT TIME ZONE CHANGES

Added

  • Setting for storing server time zone
  • Support for copying instances between projects
  • Optionally copying profiles when copying instance
  • Show image variants when searching images from remotes
  • Support managing instance providers & their types
  • Toggle admin status
  • Toggle login status

Changed

  • Store all dates in UTC
  • Display dates in local browser time
  • Run cron jobs at time specified by time zone setting

Fixed

  • Enforcing backup retention limit
  • Typo in the reset admin password docs
  • Hosts that don’t support projects break project analytics
1 Like

After a year without a release, 0.14.0 is the latest release for LXDMosaic.

The full changelog is to long to post here so here are some highlights.

Highlights

  • Upgrade to Bootstrap 5 improving UI / UX
  • Upgrade xterm to v4 and support correct terminal width and resizing
  • Manage storage volumes
  • LXD instance snapshot scheduling
  • Deploy cloud-config to instance and watch /var/log/cloud-input-out.log with some error highlighting
  • Delete a host
  • Manage instance proxy devices
  • Frontend router
  • Project analytics overview improvements
  • Improve server overview
  • Instance view improvements
  • Remove centos support
  • Unix socket access
  • First run was made better
1 Like

Just released version 0.15.0.

Please see CHANGELOG for complete list of changes.

Please Be aware of a DB migration adding an index that improves frontend response times on large systems but may take a while to run (a long while).

Added Highlights

  • Frontend updates based on events emitted from LXD
  • Add devices to profiles (includes a “device creator”)
  • Delete user

Change Highlights

  • One socket per user for all hosts “operations” information, drastically reducing browser weirdness
  • Show LXD error messages “error” string instead of a JSON string
1 Like