pieces-app / support

19 stars 4 forks source link

Pieces-OS not running on Ubuntu server 22.04 #434

Closed mack-at-pieces closed 1 week ago

mack-at-pieces commented 1 month ago

Software

Desktop Application, Pieces OS

Operating System / Platform

Linux

Your Pieces OS Version

10.1.10

Early Access Program

Kindly describe the bug and include as much detail as possible on what you were doing so we can reproduce the bug.

As the title says, Pieces-OS is not running on a machine I have installed Ubuntu Server 22.04. I have OpenAIs Whisper installed on this machine as well and intend to use for other Machine Learning exercises. However when I try to run Pieces-OS it completes and does nothing. I have checked to see if it is listening on a port or if there is an issue with the firewall and I see nothing. ufw is returning status of Inactive, and I don't see anything listening on port 5323 or anything in the 5000 range. I have checked under /var/log and do not see any logs there to share to try and help on this issue. I do not have any kind of UI installed on the server in case that matters. Any guidance on where to look for error messages would be appreciated.

Original Post: https://www.reddit.com/r/PiecesForDevelopers/comments/1g0rshy/piecesos_not_running_on_ubuntu_server_2204/?share_id=XSXHdDTjEZ5Mt_E3L9Bbl&utm_content=1&utm_medium=ios_app&utm_name=ioscss&utm_source=share&utm_term=1

Original User: https://www.reddit.com/user/catrone3/

catrone3 commented 1 month ago

Thanks for creating the issue on this, wasn't going to make one if it was something the community new the answer to.

mack-at-pieces commented 1 month ago

No problem. Thanks for bringing it to our attention @catrone3. @nathan-courtney-pieces do you mind taking a look here?

hra42 commented 1 month ago

As far as I'm aware piecesOS needs some UI components to work properly, so if you don't have a gui it's expected that it's not working.

@nathan-courtney-pieces maybe you can provide more details if that's still the case.

tsavo-at-pieces commented 2 weeks ago

This may work now with the new headless mode.

catrone3 commented 2 weeks ago

is that released now or is it still in testing?

nathan-courtney-pieces commented 2 weeks ago

Flutter still requires certain graphics libraries on the machine that are currently.

Try running some of these commands to install these dependencies:

X11 Libraries: These are needed to run apps with graphical output. sudo apt-get install -y libglu1-mesa xorg xvfb

Xvfb (X Virtual FrameBuffer): This tool simulates a display server, allowing you to run GUI apps on a server without an actual screen. sudo apt-get install -y xvfb

You may need to start Xvfb before running Pieces OS:

Xvfb :99 -screen 0 1024x768x24 &
export DISPLAY=:99

libgl1-mesa-glx (for OpenGL support) sudo apt-get install -y libgl1-mesa-glx

libgtk-3-dev (Our app uses GTK-based plugins) sudo apt-get install -y libgtk-3-dev

catrone3 commented 2 weeks ago

That appears to have worked, not the most elegant solution but I will take a working solution. Thank you.

rosie-at-pieces commented 1 week ago

Thanks for bearing with us while we work out a better solution for this @catrone3 !