Closed kenrmayfield closed 6 months ago
Does the software work if done manually?
best regards
Frank,
What do you mean by Done Manually? Can you please Explain?
Is the Code that I Sent in the Previous Posting Correct?
Also, will CV4PVE-ADMIN install on FreeBSD?
Thanks, Kenneth
If you try to run it from shell does it work? Yes, the creation of service in Ubuntu or Debian is correct.
Yes I did Run from the Shell. My Original First Message was done with the Shell. It does not work. I am using CentOS 8 from Shell.
Also, will CV4PVE-ADMIN install on FreeBSD?
Hello @kenrmayfield,
Could you try to go inside /home/cv4pve-admin
and run ./Corsinvest.ProxmoxVE.Admin
?
Do you get an error?
Hello @kenrmayfield, did you tried?
Matteo,
The Services have a Problem: [root@localhost /]# systemctl status cv4pve-admin ● cv4pve-admin.service - cv4pve-admin Web Application Loaded: loaded (/etc/systemd/system/cv4pve-admin.service; enabled; vendor preset: disabled) Active: activating (auto-restart) (thawing) (Result: exit-code) since Thu 2023-07-06 21:14:40 EDT; 4s ago Process: 5346 ExecStart=/var/cv4pve-admin/Corsinvest.ProxmoxVE.Admin (code=exited, status=217/USER) Main PID: 5346 (code=exited, status=217/USER)
I did run ./Corsinvest.ProxmoxVE.Admin which Resulted with this Output:
[root@localhost cv4pve-admin]# ./Corsinvest.ProxmoxVE.Admin
2023-07-06 21:41:37.683 -04:00 [INF] Start cv4pve-admin....
Kenneth
manually it works. Open port 5000.
let's investigate why services on centos give problems
The service log is: cv4pve-admin[542812]: Default extraction directory [/var/www] either doesn't exist or is not accessible for read/write.
The problem was https://learn.microsoft.com/en-us/dotnet/core/runtime-config/globalization set DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 and try
best regards
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0
Frank,
I am using CentOS 8 not Windows.
On 2023-08-16 8:32 am, Daniele Corsini wrote:
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0
-- Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. You are receiving this because you were mentioned.Message ID: @.***>
[1] https://github.com/Corsinvest/cv4pve-admin/issues/66#issuecomment-1680614363 [2] https://github.com/notifications/unsubscribe-auth/AVOGFIJSKMQ4OFYPF7DMNTDXVTDXFANCNFSM6AAAAAAZZ7WQB4
I test "export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0" on CentOS 8 and work.
Frank,
Ok.
I have no idea were this Settings needs to be placed?
On 2023-08-16 10:18 am, Daniele Corsini wrote:
I test "export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0" on CentOS 8 and work.
-- Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. You are receiving this because you were mentioned.Message ID: @.***>
[1] https://github.com/Corsinvest/cv4pve-admin/issues/66#issuecomment-1680811478 [2] https://github.com/notifications/unsubscribe-auth/AVOGFIOVOLZOKWFFYZJWOHDXVTQF3ANCNFSM6AAAAAAZZ7WQB4
In service or shell
Frank,
I should have been more Detailed.
How do you Add to the Service?
I guess by the Shell part you mention, I would have to Run export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 at the Shell before I Run ./Corsinvest.ProxmoxVE.Admin..........Right?
On 2023-08-16 5:50 pm, Daniele Corsini wrote:
In service or shell
-- Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. You are receiving this because you were mentioned.Message ID: @.***>
[1] https://github.com/Corsinvest/cv4pve-admin/issues/66#issuecomment-1681367150 [2] https://github.com/notifications/unsubscribe-auth/AVOGFIOH6ECTY5SBI6EVW7LXVVFC3ANCNFSM6AAAAAAZZ7WQB4
Frank,
I should have been more Detailed.
How do you Add to the Service?
I guess by the Shell part you mention, I would have to Run export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 at the Shell before I Run ./Corsinvest.ProxmoxVE.Admin..........Right?
My Journal Logs show: Aug 16 18:41:09 localhost.localdomain systemd[4099]: cv4pve-admin.service: Failed to determine user credentials: No such process Aug 16 18:41:09 localhost.localdomain systemd[4099]: cv4pve-admin.service: Failed at step USER spawning /home/cv4pve-admin/Corsinvest.ProxmoxVE.Admin: No such process Aug 16 18:41:09 localhost.localdomain systemd[1]: cv4pve-admin.service: Main process exited, code=exited, status=217/USER Aug 16 18:41:09 localhost.localdomain systemd[1]: cv4pve-admin.service: Failed with result 'exit-code'.
I did run export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 at the Shell and then Ran ./Corsinvest.ProxmoxVE.Admin and the Error is the same.
================================================================== I did also try and Add export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 to the /etc/skel/.bashrc as: ######## .bashrc
######## Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi
######## User specific environment if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]] then PATH="$HOME/.local/bin:$HOME/bin:$PATH" fi export PATH export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 ######## Uncomment the following line if you don't like systemctl's auto-paging feature: ######## export SYSTEMD_PAGER=
######## User specific aliases and functions
=========================================================================
The Error still the same.
add DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0
in service file
@franklupo
Do you mean Add it too the RC.CONF File?
cv4pve-admin.service
@franklupo
Running on CentOS 8 Stream
Still same Error.
I have Added DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 to: /etc/systemd/system/cv4pve-admin.service
This is what My Service File for cv4pve-admin.service looks like with DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 added: [Unit] Description=cv4pve-admin Web Application
[Service] WorkingDirectory=/home/cv4pve-admin ExecStart=/home/cv4pve-admin/Corsinvest.ProxmoxVE.Admin Restart=always RestartSec=10 SyslogIdentifier=cv4pve-admin User=www-data Environment=ASPNETCORE_ENVIRONMENT=Production DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 [Install] WantedBy=multi-user.target
@franklupo
I was checking back on this?
@franklupo @matteocv
I was checking back on this?
@franklupo @matteocv
I still Receive the Same Errors that are listed on My Comments from July 6.
Running CV4PVE-ADMIN on CentOS 8 Stream.
I have Added DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 to: /etc/systemd/system/cv4pve-admin.service
This is what My Service File for cv4pve-admin.service looks like with DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 added to the Service File: [Unit] Description=cv4pve-admin Web Application
[Service] WorkingDirectory=/home/cv4pve-admin ExecStart=/home/cv4pve-admin/Corsinvest.ProxmoxVE.Admin Restart=always RestartSec=10 SyslogIdentifier=cv4pve-admin User=www-data Environment=ASPNETCORE_ENVIRONMENT=Production DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 [Install] WantedBy=multi-user.target
Does using Debian or another distribution work?
have you tried using docker?
@franklupo @matteocv
Does everything look correct?
================================================================== BASHRC File :
I did also try and Add export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 to the /etc/skel/.bashrc as: ######## .bashrc
######## Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi
######## User specific environment if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]] then PATH="$HOME/.local/bin:$HOME/bin:$PATH" fi export PATH export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 ######## Uncomment the following line if you don't like systemctl's auto-paging feature: ######## export SYSTEMD_PAGER=
######## User specific aliases and functions
========================================================================= SERVICE File:
I have Added DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 to: /etc/systemd/system/cv4pve-admin.service
This is what My Service File for cv4pve-admin.service looks like with DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 added: [Unit] Description=cv4pve-admin Web Application
[Service] WorkingDirectory=/home/cv4pve-admin ExecStart=/home/cv4pve-admin/Corsinvest.ProxmoxVE.Admin Restart=always RestartSec=10 SyslogIdentifier=cv4pve-admin User=www-data Environment=ASPNETCORE_ENVIRONMENT=Production DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 [Install] WantedBy=multi-user.target
I installed CV4PVE-ADMIN on CentOS 8. However the Install is not working. I did use the Linux Instruction from the Guide CV4PVE-ADMIN v1.0.0-rc.3.
On the Services for CV4PVE-ADMIN I receive the Errors:
This is the Code I used to Install: wget https://github.com/Corsinvest/cv4pve-admin/releases/download/vXX.XX.XX/cv4pve-admin-linux-x64.zip unzip /home/cv4pve-admin-linux-x64.zip -d /home/cv4pve-admin chmod 777 /home/cv4pve-admin/Corsinvest.ProxmoxVE.Admin chmod -R 0755 /home/cv4pve-admin/wwwroot
Use vi Editor to Edit: /etc/systemd/system/cv4pve-admin.service
[Unit] Description=cv4pve-admin Web Application [Service] WorkingDirectory=/home/cv4pve-admin ExecStart=/home/cv4pve-admin/Corsinvest.ProxmoxVE.Admin Restart=always RestartSec=10 SyslogIdentifier=cv4pve-admin User=www-data Environment=ASPNETCORE_ENVIRONMENT=Production [Install] WantedBy=multi-user.target
Start the Service: systemctl enable cv4pve-admin.service systemctl start cv4pve-admin.service
I also tried with the Original VAR variables from the Guide however it is the same Errors.
Also, will CV4PVE-ADMIN install on FreeBSD?
Thanks,
Kenneth