C
C#•2y ago
Taylor

How to upgrade from Microsoft.NETCore.App 6.0.13 to Microsoft.NETCore.App 6.0.16 on Ubuntu 22.04LTS?

I recently did a micro-update on my developer machine and now my machine is running Microsoft.NETCore.App 6.0.16 on Windows 11 while my Ubuntu server is running Microsoft.NETCore.App 6.0.13. Big mistake. Now my code won't run on the server because it is 3 minor versions behind. I've tried
sudo apt-get update && sudo apt-get install -y aspnetcore-runtime-6.0
sudo apt-get update && sudo apt-get install -y aspnetcore-runtime-6.0
but that just re-installs the 6.0.13 version. I also see this downloads page contains downloads for linux but idk how to install them. https://dotnet.microsoft.com/en-us/download/dotnet/6.0 Any help would be super excellent.
Microsoft
Download .NET 6.0 (Linux, macOS, and Windows)
.NET 6.0 downloads for Linux, macOS, and Windows. .NET is a free, cross-platform, open-source developer platform for building many different types of applications.
163 Replies
jcotton42
jcotton42•2y ago
just do a normal apt upgrade
JakenVeina
JakenVeina•2y ago
separate from that, what you describe isn't really how .NET works what your program runs on isn't really tied to what is on your dev machine not really if your target environment only has 6.0.13, then don't build to target 6.0.16 (even that really doesn't make sense, your target would be "net6.0", patch version doesn't even come into play) whatever's going on here, I don't think it's a versioning issue, as you describe it
Taylor
TaylorOP•2y ago
YESSSS Aw. Okay, yeah. Lesson learned. Don't dev on latest versions when other people have earlier versions. Eh. Oh. Not a version issue. Alright. Time to find out then. Just got the right version installed.
Taylor
TaylorOP•2y ago
Dammit. I hate devops.
Taylor
TaylorOP•2y ago
K, this says something about location...
jcotton42
jcotton42•2y ago
did you do an apt upgrade?
Taylor
TaylorOP•2y ago
I'll do it now.
Taylor
TaylorOP•2y ago
jcotton42
jcotton42•2y ago
if that doesn't fix it, show us the output of dotnet --info
Taylor
TaylorOP•2y ago
Taylor
TaylorOP•2y ago
Aw man. This going to ruin plesk at all?
jcotton42
jcotton42•2y ago
plesk?
Taylor
TaylorOP•2y ago
I have no idea Idk if it is related or not
jcotton42
jcotton42•2y ago
PAM is the Linux auth stack
JakenVeina
JakenVeina•2y ago
I still fail to understand how it's possible to produce a build that runs on 6.0.16 but not on 6.0.13
Taylor
TaylorOP•2y ago
It isn't a self contained build. Maybe that means exact version matches are required. my upload speed is ass tho. lol
JakenVeina
JakenVeina•2y ago
if it's a self-contained build, then the version of .NET that's installed on the server is irrelevant that's the whole point of a self-contained build, it doesn't rely on an external installation of .NET
jcotton42
jcotton42•2y ago
they said it's not
JakenVeina
JakenVeina•2y ago
oh, well, I misread that no, exact version matches aren't how .NET works your target framework is net6.0 or maybe net6.0-windows, which has some sub-versioning but is clearly not the case here
Taylor
TaylorOP•2y ago
Upgrade is finished...
JakenVeina
JakenVeina•2y ago
enough theorizing, show your project file
Taylor
TaylorOP•2y ago
Taylor
TaylorOP•2y ago
Sure. voice?
jcotton42
jcotton42•2y ago
no just show the $code
MODiX
MODiX•2y ago
To post C# code type the following: ```cs // code here ``` Get an example by typing $codegif in chat If your code is too long, post it to: https://paste.mod.gg/
jcotton42
jcotton42•2y ago
(or the project xml rather)
JakenVeina
JakenVeina•2y ago
yeah or at least the relevant chunks of it Sdk, <TargetFramework> etc.
Taylor
TaylorOP•2y ago
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<DeleteExistingFiles>True</DeleteExistingFiles>
<ExcludeApp_Data>False</ExcludeApp_Data>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<PublishProvider>FileSystem</PublishProvider>
<PublishUrl>bin\Release\net6.0\publish\</PublishUrl>
<WebPublishMethod>FileSystem</WebPublishMethod>
<SiteUrlToLaunchAfterPublish />
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<PublishSingleFile>True</PublishSingleFile>
<ProjectGuid>c9a11bf6-429f-40ea-9ab5-529095799491</ProjectGuid>
<SelfContained>false</SelfContained>
</PropertyGroup>
</Project>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<DeleteExistingFiles>True</DeleteExistingFiles>
<ExcludeApp_Data>False</ExcludeApp_Data>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<PublishProvider>FileSystem</PublishProvider>
<PublishUrl>bin\Release\net6.0\publish\</PublishUrl>
<WebPublishMethod>FileSystem</WebPublishMethod>
<SiteUrlToLaunchAfterPublish />
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<PublishSingleFile>True</PublishSingleFile>
<ProjectGuid>c9a11bf6-429f-40ea-9ab5-529095799491</ProjectGuid>
<SelfContained>false</SelfContained>
</PropertyGroup>
</Project>
JakenVeina
JakenVeina•2y ago
oh my so you're not on .NET 6?
jcotton42
jcotton42•2y ago
<TargetFramework>net6.0</TargetFramework>
Taylor
TaylorOP•2y ago
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UserSecretsId>040632ac-2385-4d60-a6b9-dd039d525780</UserSecretsId>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DefineConstants>$(DefineConstants)</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DefineConstants>$(DefineConstants)</DefineConstants>
</PropertyGroup>

<ItemGroup>
<_WebToolingArtifacts Remove="Properties\PublishProfiles\SendToWebHost.pubxml" />
</ItemGroup>

<ItemGroup>
<None Include="..\.editorconfig" Link=".editorconfig" />
<None Include="Models\ResponseStatusCode.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>ResponseStatusCode.tt</DependentUpon>
</None>
</ItemGroup>

<ItemGroup>
<PackageReference Include="GoogleApi" Version="4.5.4" />
<PackageReference Include="IpGeolocation.IpGeolocation" Version="1.0.10" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="6.5.0" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="6.5.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\ApiCore.Common\ApiCore.Common.csproj" />
</ItemGroup>

<ItemGroup>
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
</ItemGroup>
</Project>
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UserSecretsId>040632ac-2385-4d60-a6b9-dd039d525780</UserSecretsId>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DefineConstants>$(DefineConstants)</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DefineConstants>$(DefineConstants)</DefineConstants>
</PropertyGroup>

<ItemGroup>
<_WebToolingArtifacts Remove="Properties\PublishProfiles\SendToWebHost.pubxml" />
</ItemGroup>

<ItemGroup>
<None Include="..\.editorconfig" Link=".editorconfig" />
<None Include="Models\ResponseStatusCode.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>ResponseStatusCode.tt</DependentUpon>
</None>
</ItemGroup>

<ItemGroup>
<PackageReference Include="GoogleApi" Version="4.5.4" />
<PackageReference Include="IpGeolocation.IpGeolocation" Version="1.0.10" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="6.5.0" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="6.5.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\ApiCore.Common\ApiCore.Common.csproj" />
</ItemGroup>

<ItemGroup>
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
</ItemGroup>
</Project>
JakenVeina
JakenVeina•2y ago
that's not a .NET MSBuild file, though oh, there we go what the hell was that first file?
Taylor
TaylorOP•2y ago
publish settings
JakenVeina
JakenVeina•2y ago
mm-kay
Taylor
TaylorOP•2y ago
I'm actually uploading a full project zip, if it helps
JakenVeina
JakenVeina•2y ago
anyway, yeah, none of that is gonna be affected by differing patch versions in the server and dev runtimes it won't in any case by definition, different patch versions won't cause you any breaking changes
Taylor
TaylorOP•2y ago
Okay. Great. So that rules tthat out. Kind of. Error logs all keep saying that it's that though.False alarm.
JakenVeina
JakenVeina•2y ago
that second screenshot above is the relevant errors from you trying to run this on the server?
Taylor
TaylorOP•2y ago
Different error versions though
JakenVeina
JakenVeina•2y ago
more likely, you're misreading them
Taylor
TaylorOP•2y ago
Another one of my projects on the same machine also broke today. Same error reasons
Taylor
TaylorOP•2y ago
Yep. That is the error log.
JakenVeina
JakenVeina•2y ago
You must install .NET to run this application
Taylor
TaylorOP•2y ago
JakenVeina
JakenVeina•2y ago
suggests it's not a versioning issue, it's a lack of ANY version issue
Taylor
TaylorOP•2y ago
Hmmm
JakenVeina
JakenVeina•2y ago
how are you running the app?
Taylor
TaylorOP•2y ago
I have things installed. Maybe some env var is missing.
JakenVeina
JakenVeina•2y ago
something to that effect is what I'm thinking, yeah you quite literally just installed the current version and showed the logs from it, you definitely have dotnet installed
Taylor
TaylorOP•2y ago
I have a service file installed at: /etc/systemd/system/api.taylorlove.info.service
# Install to /etc/systemd/system/api.taylorlove.info.service
[Unit]
Description=Start and stop the api.taylorlove.info website.
#
[Service]
WorkingDirectory=/var/www/vhosts/taylorlove.info/services/api.taylorlove.info
ExecStart=/var/www/vhosts/taylorlove.info/services/api.taylorlove.info/ApiCore.Web
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=dotnet-api.taylorlove.info
User=taylorlove
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
# Environment=DOTNET_BUNDLE_EXTRACT_BASE_DIR=.extract/
# If you need to run multiple services on different ports set
# the ports environment variable here:
# Environment=ASPNETCORE_URLS=http://0.0.0.0:5002
[Install]
WantedBy=multi-user.target
# ----------------------------------------
# Install to /etc/systemd/system/api.taylorlove.info.service
[Unit]
Description=Start and stop the api.taylorlove.info website.
#
[Service]
WorkingDirectory=/var/www/vhosts/taylorlove.info/services/api.taylorlove.info
ExecStart=/var/www/vhosts/taylorlove.info/services/api.taylorlove.info/ApiCore.Web
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=dotnet-api.taylorlove.info
User=taylorlove
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
# Environment=DOTNET_BUNDLE_EXTRACT_BASE_DIR=.extract/
# If you need to run multiple services on different ports set
# the ports environment variable here:
# Environment=ASPNETCORE_URLS=http://0.0.0.0:5002
[Install]
WantedBy=multi-user.target
# ----------------------------------------
JakenVeina
JakenVeina•2y ago
I'm definitely not very familiar with linux services is that saying that /var/www/vhosts/taylorlove.info/services/api.taylorlove.info/ApiCore.Web is an executable file? the executable that is your program?
Taylor
TaylorOP•2y ago
Yes it is
JakenVeina
JakenVeina•2y ago
again, not familiar with linux publishing models but you say this used to work what happens if you try to launch this manually? or even with dotnet [file]?
Taylor
TaylorOP•2y ago
let me trry it
Taylor
TaylorOP•2y ago
JakenVeina
JakenVeina•2y ago
guess dotnet isn't in your env vars?
Taylor
TaylorOP•2y ago
JakenVeina
JakenVeina•2y ago
it worked from wherever you were running it before that right there could be the entire issue it THINKS dotnet isn't installed, cause it's not in the env vars, or whatever it is on linux
Taylor
TaylorOP•2y ago
possibly Let me dump the vares
JakenVeina
JakenVeina•2y ago
PATH is the var you're looking for you need to put the dotnet install folder into PATH IIRC
Taylor
TaylorOP•2y ago
JakenVeina
JakenVeina•2y ago
echo $PATH to see what the current value is yeah
Taylor
TaylorOP•2y ago
I don' see lib in the path vars HRMMM
JakenVeina
JakenVeina•2y ago
so, I dunno what the "proper" way to do it is, for your setup, but in one way or another, you need to do that OR just manually call dotnet from its path [PathToDotnet]/dotnet ApiCore.Web supposedly export PATH="PathToAdd:$PATH" should add to the current variable, but I dunno if that's permanent, or what scope that edits PATH variables are defined in /etc/environment and /etc/profile, depending on what scope you want per user config is in ~/.bashrc
Taylor
TaylorOP•2y ago
damn I edited /etc/environment
Taylor
TaylorOP•2y ago
JakenVeina
JakenVeina•2y ago
and it didn't work? echo $PATH if it's not there, you probably need to force the shell vars to refresh
Taylor
TaylorOP•2y ago
I did source /etc/environment
JakenVeina
JakenVeina•2y ago
well, forget the path var for now
Taylor
TaylorOP•2y ago
maybe the path for DOTNET_ROOT is wrong?
JakenVeina
JakenVeina•2y ago
can you run it all manually is that an env var?
Taylor
TaylorOP•2y ago
ehhh. Yes.
JakenVeina
JakenVeina•2y ago
is the path correct?
Taylor
TaylorOP•2y ago
if I type env it shows up.
Taylor
TaylorOP•2y ago
JakenVeina
JakenVeina•2y ago
?
Taylor
TaylorOP•2y ago
Im running it manually and it ffails THat's what the pic means
JakenVeina
JakenVeina•2y ago
no, you're not you're trying to run it lazily relying on the boostrapper within the program to find dotnet for you
Taylor
TaylorOP•2y ago
hmmmm
JakenVeina
JakenVeina•2y ago
launch it through dotnet manually
Taylor
TaylorOP•2y ago
how?
JakenVeina
JakenVeina•2y ago
[dotnet] [assembly]
Taylor
TaylorOP•2y ago
Taylor
TaylorOP•2y ago
Taylor
TaylorOP•2y ago
JakenVeina
JakenVeina•2y ago
yes dotnet is not a command it's an executable file that's sitting somewhere as are all commands in linux your shell only knows it exists if it's in one of the folders defined in PATH since we couldn't figure that out, we are forgetting about that for now, and launching it manually
Taylor
TaylorOP•2y ago
Taylor
TaylorOP•2y ago
Okay idk which command to run here to do this manually. (thank you for sticking with me so long sorry it isn't figured out yet)
JakenVeina
JakenVeina•2y ago
/usr/bin/dotnet clearly executes and tells you how it works dotnet [path-to-application] so, now supply [path-to-application] and do this all from within your application directory
Taylor
TaylorOP•2y ago
JakenVeina
JakenVeina•2y ago
where the app expects to be run from
Taylor
TaylorOP•2y ago
maybe it needs an absolute path? THat wasnt it
JakenVeina
JakenVeina•2y ago
does it need to be ./usr/bin/dotnet
Taylor
TaylorOP•2y ago
no that isnt found
JakenVeina
JakenVeina•2y ago
:/
Taylor
TaylorOP•2y ago
It's a dedicated machine, so... full access.
JakenVeina
JakenVeina•2y ago
oh, I guess cause ./ means "relative to current directory" well, I dunno what the hell that's about /usr/bin/dotnet ApiCore.Web should absolutely be it if ApiCore.Web is an executable assembly file in that directory does it need to be /usr/bin/dotnet run ApiCore.Web?
Taylor
TaylorOP•2y ago
!! Maybe
JakenVeina
JakenVeina•2y ago
also
JakenVeina
JakenVeina•2y ago
GitHub
.NET runtime not found on Ubuntu · Issue #79237 · dotnet/runtime
Description My weekly GitHub actions build started failing. I suspect some change in Ubuntu .NET 6 results in the apps no longer running, and complaining no runtime found. Docker: # Build externall...
Taylor
TaylorOP•2y ago
JakenVeina
JakenVeina•2y ago
/usr/lib/dotnet --info
Taylor
TaylorOP•2y ago
-bash: cd: /etc/dotnet/install_location: Not a directory
JakenVeina
JakenVeina•2y ago
yeah I think you've got a bogus install like, an old version
Taylor
TaylorOP•2y ago
Taylor
TaylorOP•2y ago
Yeah, that would make some sense. I tried uninstalling everything before and it gogt me closer but still not perfect
JakenVeina
JakenVeina•2y ago
this definitely looks like it was a bug introduced not too long ago the logic for how a linux app searches for the dotnet install changed a bit, so when you upgraded on your dev machine, it changed the build output enough to break so, it's SORT of a version issue, but definitely not a normal scenario simplest resolution, in my mind, is to wipe and reinstall the server to latest and upgrade to latest on the dev machine
Taylor
TaylorOP•2y ago
uhhh you mean a brand new os install?
JakenVeina
JakenVeina•2y ago
nono, just the dotnet apt install other than that, dig through that github thread, all the specifics about what files and variables need to be defined to make it work appear to be in there this was from December of last year, so should still be valid info aha
Taylor
TaylorOP•2y ago
0 Step 1: Uninstall https://askubuntu.com/a/1386715/231561 Step 2: Set props in preferences.d https://stackoverflow.com/a/73899341/16454 Step 3: Install with some explicit values https://github.com/dotnet/sdk/issues/27082#issuecomment-1211181940
Ask Ubuntu
How to uninstall dotnet from Ubuntu 20.10 completely?
I have installed dotnet on my Ubuntu 20.10 but for some reason I want to remove it but I don't know how to do it please help.
Stack Overflow
A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] doe...
Ubuntu 22.04 dotnet --info Can't access dotnet after update. Reinstall dotnet and vscode didn't help
GitHub
[Ubuntu 22.04] dotnet doesn't find installed SDKs · Issue #27082 · ...
Describe the bug I've followed instructions to install dotnet sdk via the package manager and the microsoft packages repository. dotnet find runtime but not sdk. however it seems that sdk is in...
JakenVeina
JakenVeina•2y ago
yeah one comment specifically states that adding the right directory to PATH isn't sufficient for executables to work
Taylor
TaylorOP•2y ago
O_O It does? on github?
JakenVeina
JakenVeina•2y ago
yeah, the thread I linked
JakenVeina
JakenVeina•2y ago
GitHub
.NET runtime not found on Ubuntu · Issue #79237 · dotnet/runtime
Description My weekly GitHub actions build started failing. I suspect some change in Ubuntu .NET 6 results in the apps no longer running, and complaining no runtime found. Docker: # Build externall...
JakenVeina
JakenVeina•2y ago
PATH lets you use dotnet in bash, anywhere, but self-starting executables look for either the DOTNET_PATH env var, or the /etc/dotnet/install_location file STILL doesn't quite explain why you can't manually run, by pathing it all out yourself, that's why I think maybe you got a bogus install either that, or I just don't know what I'm talking about like, there was one mention that /usr/lib/dotnet isn't the normal install location I dunno I think that thread ought to get you where you need to go
Taylor
TaylorOP•2y ago
Maybe.
Taylor
TaylorOP•2y ago
maybe a missing lib...
JakenVeina
JakenVeina•2y ago
hmmm well, that seems like progress?
Taylor
TaylorOP•2y ago
It does.
JakenVeina
JakenVeina•2y ago
did you have to set that DOTNET_PATH value, or did it get setup when you reinstalled? if you set it yourself, it's probably wrong the default install directory is /usr/share/dotnet unless that's empty
Taylor
TaylorOP•2y ago
# Netcore
export PATH=$PATH:$HOME/.dotnet/tools
export DOTNET_ROOT=$HOME/.dotnet
export PATH=$PATH:$DOTNET_ROOT
# Netcore
export PATH=$PATH:$HOME/.dotnet/tools
export DOTNET_ROOT=$HOME/.dotnet
export PATH=$PATH:$DOTNET_ROOT
I had to set it
JakenVeina
JakenVeina•2y ago
well, uhhh I mean I dunno how to read those, exactly but that sure doesn't look like /usr/share/dotnet to me
Taylor
TaylorOP•2y ago
It was originally set to /usr/lib/dotnet I did "which dotnet" to see that dotnet is stored at /usr/bin/dotnet
JakenVeina
JakenVeina•2y ago
right, dotnet the executable
Taylor
TaylorOP•2y ago
Although I suppose that could be a symlink.
JakenVeina
JakenVeina•2y ago
I was about to say I would actually bet that it is it would make sense
Taylor
TaylorOP•2y ago
https://taylorlove.info/api/swagger/index.html I got it to work after uploading a self contained version, and setting the env variables above.
JakenVeina
JakenVeina•2y ago
/usr/bin is a directory that would make sense to already be in PATH welp gg, I guess?
Taylor
TaylorOP•2y ago
Let me try my pixelstacker program which is still on the non self contained version pixelstacker works when I run it manually. https://taylorlove.info/projects/pixelstacker/swagger/index.html So... yeah, gg. my god. Thank you man.
JakenVeina
JakenVeina•2y ago
I feel like we didn't REALLY resolve everything but if it works, it works
Taylor
TaylorOP•2y ago
Ehhh.... wwhagt does REALLY resolving things look like? Really ressolving means the svc actually works -_-
JakenVeina
JakenVeina•2y ago
IMO "really" resolving it would be that the build you had that was working before is working again a non-self-contained build where your execute action for the service is just ./[MyAppAssembly]
Taylor
TaylorOP•2y ago
I have two builds uploaded one that is self contained, one that is not
JakenVeina
JakenVeina•2y ago
I thought both of them were non-self-contained, before I mean, if you wanna switch up your deployment scheme, go ahead this is kinda EXACTLY the advantage of a self-contained executable "It works in the DVLP environment? Cool, deploy the whole DVLP environment."
Taylor
TaylorOP•2y ago
truee No I definitely do NOT want to switch it up if I dont have to that's why I'm still trying to get my self contained version to work
JakenVeina
JakenVeina•2y ago
only downside is redundant space usage on the server, if you have a lot of self-contained executables
Taylor
TaylorOP•2y ago
uhhh I meannnn storage is cheap
JakenVeina
JakenVeina•2y ago
also true
Taylor
TaylorOP•2y ago
the time it takes me to upload is not. lol
JakenVeina
JakenVeina•2y ago
and how many of them DO you have? is it really just 2?
Taylor
TaylorOP•2y ago
2 or 3, yeah. So it isn''t too bad. Not like I'm running a huge server farm.
JakenVeina
JakenVeina•2y ago
if it's simpler for you, go for it
Taylor
TaylorOP•2y ago
Right now the services work for self contained, but not for uncontained. I can execute the uncontained via cmdline as root user. Not as service.
JakenVeina
JakenVeina•2y ago
I'm just obsessive
Taylor
TaylorOP•2y ago
I also want it to be proper. I'm with you.
Taylor
TaylorOP•2y ago
JakenVeina
JakenVeina•2y ago
nnnnnneat did you change up the server exec command?
Taylor
TaylorOP•2y ago
Trying to this is my etc/environment file right now.
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/"
PATH=$PATH:root/.dotnet/tools
DOTNET_ROOT=root/.dotnet
PATH=$PATH:$DOTNET_ROOT
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/"
PATH=$PATH:root/.dotnet/tools
DOTNET_ROOT=root/.dotnet
PATH=$PATH:$DOTNET_ROOT
I really don't like how .dotnet is stored in root's home directory.
JakenVeina
JakenVeina•2y ago
is it? I thought it was supposed to be /usr/share/dotnet you sure that's not just, like, settings files?
Taylor
TaylorOP•2y ago
Taylor
TaylorOP•2y ago
For the record.... kind of hate everything right now.
JakenVeina
JakenVeina•2y ago
:/
Taylor
TaylorOP•2y ago
I hate having to reinstall every thing on the entire server every few months bc something gets messed udp. Alright, I'm going nuclear. I'm finding all dotnet folders on entire system and deleting them. If it works, I get fresh installs. If it fails, I reinstall everything from scratch. All 50 websites, the server, the os, the databases, everything.
JakenVeina
JakenVeina•2y ago
wraffOK
Taylor
TaylorOP•2y ago
It worked thank goodness omg
JakenVeina
JakenVeina•2y ago
well, that's something
Taylor
TaylorOP•2y ago
I ripped EVERYTHING out. I even uninstalled plesk's .net toolkit extension. Deleted ALL dotnet folders. Re-installed dotnet toolkit and then did a reboot. the services started everything up just fine and it all works now
JakenVeina
JakenVeina•2y ago
go figure so, yeah as far as .NET goes, this is NOT something you should expect on a regular basis upgrading your development SDK did in fact cause this... sort of but only as a result of A) a bug in the SDK, and B) some crazy shit with the installs on your server
Taylor
TaylorOP•2y ago
@AnievNekaj can I buy you a beer or something?
JakenVeina
JakenVeina•2y ago
do not fear upgrading your SDKs, when everything is working properly, it will not cause you harm #rules for the record, but I appreciate the thought er #info-and-rules
Taylor
TaylorOP•2y ago
hmmm I owe you a favor then. Welp. Midnight. Ima go hit the hay. Thank you so much for everything.
JakenVeina
JakenVeina•2y ago
o7
Accord
Accord•2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server