Code Monkey home page Code Monkey logo

Comments (11)

dg410a avatar dg410a commented on August 23, 2024

So, at the moment, I got a Windows 10 VM running and also installed WebOne there. That worked just fine. Was able to configure my proxy settings on my retro machines through there.

But for whatever reason, the Linux distros that I've tried so far (CentOS 7, Ubuntu Server 22.04.1 LTS, and Xubuntu 22.04 LTS) has not worked for me at all. Once again, they were clean OS installs with WebOne downloaded and configured afterwards. Even followed the Linux install instructions. No dice.

from webone.

way5 avatar way5 commented on August 23, 2024

@dg410a please try this to change webone.service like the following #75 (comment)

and then systemctl enable webone

from webone.

atauenis avatar atauenis commented on August 23, 2024

What if run WebOne as regular app, not a service? Does it starts or returning an error?

from webone.

dg410a avatar dg410a commented on August 23, 2024

@way5 Configuring webone.service as suggested did not work.

@atauenis Actually did run webone as normally and got this:

You must install .NET to run this application.

App: /usr/share/webone/webone
Architecture: x64
App host version: 6.0.11
.NET location: Not found

Learn about runtime installation:
https://aka.ms/dotnet/app-launch-failed

Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=ubuntu.22.04-x64&apphost_version=6.0.11

I even tried wget to download the .NET runtime as indicated above to see if I could fix it, but got a 301 at first before it timed out.

Though strangely enough, the apt package manager DID recognize and install NET 6.0 alongside WebOne as seen below:

The following additional packages will be installed:
  ... 
dotnet-host
  dotnet-hostfxr-6.0 dotnet-runtime-6.0
Selecting previously unselected package dotnet-host.
Preparing to unpack .../054-dotnet-host_6.0.111-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet-host (6.0.111-0ubuntu1~22.04.1) ...
Selecting previously unselected package dotnet-hostfxr-6.0.
Preparing to unpack .../055-dotnet-hostfxr-6.0_6.0.111-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet-hostfxr-6.0 (6.0.111-0ubuntu1~22.04.1) ...
...
Selecting previously unselected package dotnet-runtime-6.0.
Preparing to unpack .../059-dotnet-runtime-6.0_6.0.111-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet-runtime-6.0 (6.0.111-0ubuntu1~22.04.1) ...

So, my guess is that somehow, the path configurations were not set up properly in order for this to work right out of the box.

from webone.

dg410a avatar dg410a commented on August 23, 2024

Just got it to work.

So... the Linux instructions specifically said to use 'sudo apt install ./webone.0.12.3.linux-amd64.deb'. It did install the program and acquired the dependencies needed to run the app, but then I got this:

N: Download is performed unsandboxed as root as file '/home/dg410/webone.0.12.3.linux-amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

After that, it would just refuse to run, either via the service or just normally.

However, when removing webone on its own and leaving the dependencies installed, and then reinstalling the program, but using 'sudo dpkg -i webone.0.12.3.linux-amd64.deb' in favor of 'sudo apt install', running WebOne as normally does work that way. Still can't get the service to work properly though.

EDIT: Nevermind. Recent attempts to reproduce this to find the cause just ended up with the same previous errors again with WebOne refusing to work at all.

EDIT 2: So... I followed the Linux instructions again to install WebOne and did a system restart. Afterwards, the program now works as normally. Service is still not functional though.

EDIT 3: After further testing, WebOne even fails to start on boot when using crontab or rc.local.

from webone.

atauenis avatar atauenis commented on August 23, 2024

Tried on my VM with Ubuntu 22.04 .0 , everything is working correctly.

2022-12-04_19-23-05

The VM haven't updated from approximately June. Now I've attempted to install all updates (simply sudo apt upgrade -y), and got WebOne broken here with same problem. Even I can't get list of runtimes.

$ dotnet --list-runtimes
A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] does not exist

Reinstall ($ sudo apt purge dotnet-runtime-deps-6.0 dotnet-hostfxr-6.0 dotnet-runtime-6.0 dotnet-host && $ sudo apt install dotnet-runtime-6.0) doesn't helps.

Seems that it is a bug of updated Ubuntu .NET packages. Maintainers has broken something.

Interesting that .NET 7.0 installs correctly. But it's not LTS and have no support for Windows pre-10, so there are currently no plans on updating to .NET 7 (probably WebOne will go to .NET 8 when .NET 6 became out of support).

from webone.

atauenis avatar atauenis commented on August 23, 2024

Continuing investigation.
Ubuntu's Snap Store containing a half-valid .NET 6 Runtime, but it still not usable with regular binaries.

ibm5170@ibm5170-VirtualBox:~$ sudo snap install dotnet-runtime-60
dotnet-runtime-60 6.0.11 от Microsoft .NET Core (dotnetcore✓) установлен
ibm5170@ibm5170-VirtualBox:~$ cd /snap/dotnet-runtime-60/current
ibm5170@ibm5170-VirtualBox:/snap/dotnet-runtime-60/current$ ./dotnet --list-runtimes
Microsoft.NETCore.App 6.0.11 [/snap/dotnet-runtime-60/26/shared/Microsoft.NETCore.App]

May be creation of some links in system will solve?

from webone.

atauenis avatar atauenis commented on August 23, 2024

Found a solution:

$ sudo apt purge dotnet-runtime-deps-6.0 dotnet-hostfxr-6.0 dotnet-runtime-6.0 dotnet-host
$ sudo apt install dotnet-apphost-pack-6.0=6.0.8-1 dotnet-host=6.0.8-1 dotnet-hostfxr-6.0=6.0.8-1 dotnet-runtime-6.0=6.0.8-1
$ sudo apt-mark hold aspnetcore-runtime-6.0=6.0.8-1 dotnet-apphost-pack-6.0=6.0.8-1 dotnet-host=6.0.8-1 dotnet-hostfxr-6.0=6.0.8-1 dotnet-runtime-6.0=6.0.8-1 dotnet-sdk-6.0=6.0.400-1 dotnet-targeting-pack-6.0=6.0.8-1
$ sudo apt install ./webone.0.12.3.linux-amd64.deb

The 6.0.8 version of .NET Runtime is working great on Ubuntu 22.04.1, unlike 6.0.11.
Inspired by dotnet/sdk#27082 .

from webone.

dg410a avatar dg410a commented on August 23, 2024

Found a solution:

$ sudo apt purge dotnet-runtime-deps-6.0 dotnet-hostfxr-6.0 dotnet-runtime-6.0 dotnet-host
$ sudo apt install dotnet-apphost-pack-6.0=6.0.8-1 dotnet-host=6.0.8-1 dotnet-hostfxr-6.0=6.0.8-1 dotnet-runtime-6.0=6.0.8-1
$ sudo apt-mark hold aspnetcore-runtime-6.0=6.0.8-1 dotnet-apphost-pack-6.0=6.0.8-1 dotnet-host=6.0.8-1 dotnet-hostfxr-6.0=6.0.8-1 dotnet-runtime-6.0=6.0.8-1 dotnet-sdk-6.0=6.0.400-1 dotnet-targeting-pack-6.0=6.0.8-1
$ sudo apt install ./webone.0.12.3.linux-amd64.deb

The 6.0.8 version of .NET Runtime is working great on Ubuntu 22.04.1, unlike 6.0.11. Inspired by dotnet/sdk#27082 .

Can confirm that this solution works 100%.

Although, I had to refer to here in order to get 6.0.8 to even install. The default apt repository for 22.04.1 would not download the earlier version unless if I configure it to use the PMC feed for NET 6.0. Only then was I able to install 6.0.8 without any issues.

from webone.

atauenis avatar atauenis commented on August 23, 2024

Good news. Microsoft has released the 6.0.12-1 Runtime where the bug is fixed. But Ubuntu repositories still have 6.0.111 version (6.0.11 rebuilt by Canonical), so the package version holding still need.

sudo apt purge dotnet-*-6.0 dotnet-host packages-microsoft-prod
sudo apt-mark unhold dotnet*
wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
sudo apt update
sudo apt install dotnet-runtime-deps-6.0=6.0.12-1 dotnet-host=6.0.12-1 dotnet-hostfxr-6.0=6.0.12-1 dotnet-runtime-6.0=6.0.12-1
sudo apt-mark hold dotnet-runtime-deps-6.0=6.0.12-1 dotnet-host=6.0.12-1 dotnet-hostfxr-6.0=6.0.12-1 dotnet-runtime-6.0=6.0.12-1

wget https://github.com/atauenis/webone/releases/download/v0.13.0/webone.0.13.0.linux-amd64.deb
sudo apt install ./webone.0.13.0.linux-amd64.deb

from webone.

atauenis avatar atauenis commented on August 23, 2024

Good news! Canonical pushed 6.0.113-0ubuntu1~22.04.1 version of .NET 6.0 Runtime to repositories, and it is working. The bug has gone.

For test, I've reinstalled Ubuntu 22.04.1 from scratch, then downloaded webone.0.14.0.linux-amd64.deb, double-clicked on it, and after 1 min of waiting, WebOne is ready for incoming connections.

On existing systems Microsoft considers remove packages.microsoft.com repository from system, purge dotnet-*, delete both /usr/lib64/dotnet and /usr/share/dotnet directories (it's where the problem! multiple possible paths for a same things), and install the dotnet-runtime-6.0 (6.0.113).

from webone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.