CubeCoders / AMP

Issue tracking and documentation for AMP
https://cubecoders.com/AMP
205 stars 39 forks source link

can start instance but server fails to start #147

Closed Ha7cy0n closed 4 years ago

Ha7cy0n commented 5 years ago

Bug Report

System Information

I confirm:

Symptoms

Reproduction

Install Factorio module instance from WebGUI. enter valid Steam credentials when prompted Let AMP run its course with server install click start on the status page of the Factorio instance Error will occur.
PhonicUK commented 4 years ago

Does this occur on the current version of AMP? You also never posted the actual error that occurs.

Ha7cy0n commented 4 years ago

I have not had a chance to update to 1.8.6. I am still on 1.8.5.4, I will try again after I update. As to the second point you made, apologies. This issue is that the instance will start so it can be fully managed but when you start the server it doesn't actually start. There is no error message in logs or otherwise. It acts like the start button was never clicked.

Thank you for the help

PhonicUK commented 4 years ago

Closed due to inactivity, missing information.

SirComlin commented 4 years ago

I'm having a similar issue. I was not prompted for steam credentials though. I'll hit update and sometimes it'll finish other times it will hang until I cancel it. When I hit start it just says Could not complete action.

OS Windows
Platform Microsoft Windows 10 Pro
System Type x86_64
Virtualization HyperV
Module FactorioModule
Loaded Plugins FileManager, EmailSender, WebRequestPlugin, LocalFileBackupPlugin
Application Name AMP
Application Version 1.9.0.0
Release Stream Release
Build Date 07/11/2019 14:24
InstanceID 560030fe-c3ec-476f-a946-69658282f713
Last Executable  
Last Arguments  
PhonicUK commented 4 years ago

Turn on diagnostics mode and see if the scripts it generates turns up anything: https://github.com/cubecoders/amp/wiki/Diagnosing-AMP-issues - "Diagnosing application startup issues"

SirComlin commented 4 years ago

I set the following to true while the instance was down. Monitoring.ProduceStartupScripts Security.LogSensitiveProcArgs

I set Monitoring.LogLevel to 0

I started the instances and did a ctrl+f5 then tried to start the server. Attached is the log.

AMPLOG 2019-11-07 13-55-50.log

Edit: After attempting to run the update a few times it seems it's not downloading the server fully. It attempts to do it without an account and then seems to fail or just hang. I haven't been prompted for any credentials either. Is there somewhere I can enter them manually? I tried inserting them into bat files that were generated by amp but it just regenerated new bat files.

Below is the log of attempted updates.

[14:08:16] [System:SirComlin Activity] : Updating the application. [14:08:16] [steamcmdplugin:SirComlin Debug] : Starting process ./factorio/steamcmd.exe [14:08:16] [steamcmdplugin:SirComlin Debug] : Working Directory: ./factorio/ [14:08:16] [steamcmdplugin:SirComlin Debug] : Arguments: +login "anonymous" +force_install_dir 427520 +app_update 427520 validate +quit [14:08:16] [Core:SirComlin Debug] : Using Win32 console assistant. [14:08:16] [steamcmdplugin:SirComlin Debug] : Started process with ID 11540 [14:08:16] [System:SirComlin Debug] : CPID: 12864 [14:08:16] [System:SirComlin Debug] : Redirecting stderr to 'C:\AMPDatastore\Instances\Factorio01\factorio\logs\stderr.txt' [14:08:16] [System:SirComlin Debug] : [ 0%] Checking for available updates... [14:08:17] [System:SirComlin Debug] : [----] Verifying installation... [14:08:17] [System:SirComlin Debug] : Steam Console Client (c) Valve Corporation [14:08:17] [System:SirComlin Debug] : -- type 'quit' to exit -- [14:08:17] [System:SirComlin Debug] : Loading Steam API...OK. [14:08:18] [System:SirComlin Debug] : Connecting anonymously to Steam Public...Logged in OK [14:08:18] [System:SirComlin Debug] : Waiting for user info...OK [14:08:19] [steamcmdplugin:SirComlin Warning] : No subscription error! [14:08:19] [steamcmdplugin:SirComlin Warning] : No username and password [14:08:25] [Core:SirComlin Debug] : Task Updating... (Updating Factorio Server) ended: Finished [14:08:37] [System:SirComlin Activity] : Updating the application. [14:08:37] [steamcmdplugin:SirComlin Debug] : Starting process ./factorio/steamcmd.exe [14:08:37] [steamcmdplugin:SirComlin Debug] : Working Directory: ./factorio/ [14:08:37] [steamcmdplugin:SirComlin Debug] : Arguments: +login "" +force_install_dir 427520 +app_update 427520 validate +quit [14:08:37] [Core:SirComlin Debug] : Using Win32 console assistant. [14:08:37] [steamcmdplugin:SirComlin Debug] : Started process with ID 14300 [14:08:38] [System:SirComlin Debug] : CPID: 4448 [14:08:38] [System:SirComlin Debug] : Redirecting stderr to 'C:\AMPDatastore\Instances\Factorio01\factorio\logs\stderr.txt' [14:08:38] [System:SirComlin Debug] : [ 0%] Checking for available updates... [14:08:38] [System:SirComlin Debug] : [----] Verifying installation... [14:08:39] [System:SirComlin Debug] : Steam Console Client (c) Valve Corporation [14:08:39] [System:SirComlin Debug] : -- type 'quit' to exit -- [14:08:39] [System:SirComlin Debug] : Loading Steam API...OK. [14:08:39] [System:SirComlin Debug] : Logging in user '' to Steam Public ... [14:10:41] [Core:SirComlin Debug] : Task Updating... (Updating Factorio Server) ended: Finished

PhonicUK commented 4 years ago

It should be prompting you for login details - are you connected to the instance directly, or via ADS? Do you have a reverse proxy set up?

SirComlin commented 4 years ago

I am connected via ADS.

No reverse proxy.

PhonicUK commented 4 years ago

Check the F12 browser log, are there any errors relating to websockets?

SirComlin commented 4 years ago

I don't seem to be getting any websocket errors. The only errors that come up are iframe errors related to twitter. If'd it help any I can create a temporary user and dm you the creds via discord so you can look at the logs. To be honest that's not something I've done before so I'm not 100% sure if I'm looking at what you're asking.

SirComlin commented 4 years ago

So I was able to update it manually and it seems to be working now. I still can't update through AMP though. I can at least start the server and configure it.