Linux Konsole Syntax Error

Antworten
Nippilein
Beiträge: 2
Registriert: So 8. Aug 2021, 00:23
Hat sich bedankt: 0
Danksagung erhalten: 0

Linux Konsole Syntax Error

Beitrag von Nippilein »

Einen schönen guten Abend.
Ich habe ein kleines Problem, und zwar habe ich heute meinen Server Bot geupdatet und auch von meiner GUI Version die neue Acc.ini hochgeladen (da ich dort ja auch neue Einstellungen vorgenommen habe).

Ok, nochmal neu installiert, alle links und Befehle manuell getätigt und nu kommts noch länger
SPOILER
Loaded assembly

Unhandled Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. - --> System.Configuration.ConfigurationErrorsException: Root element is missing. (/root/.local/share/mfbo t.de/Console.exe_Url_cac4d7c61d53a86048078bc072f1a08bfcd99dc2/user.config) ---> System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) [0x00027] in <dc0757ce36454b0b9a9299e0c944b 915>:0
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo (System.String res) [0x00017] in <dc0757ce36454b0 b9a9299e0c944b915>:0
at System.Xml.XmlTextReaderImpl.ParseDocumentContent () [0x0035d] in <dc0757ce36454b0b9a9299e0c944b915 >:0
at System.Xml.XmlTextReaderImpl.Read () [0x0008c] in <dc0757ce36454b0b9a9299e0c944b915>:0
at System.Xml.XmlTextReader.Read () [0x00000] in <dc0757ce36454b0b9a9299e0c944b915>:0
at System.Xml.XmlReader.MoveToContent () [0x0003a] in <dc0757ce36454b0b9a9299e0c944b915>:0
at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileN ame) [0x00000] in <a93aef1331f0472f816421bd7d6e3fa1>:0
at System.Configuration.Configuration.Load () [0x00043] in <a93aef1331f0472f816421bd7d6e3fa1>:0
at System.Configuration.Configuration.Init (System.Configuration.Internal.IConfigSystem system, System .String configPath, System.Configuration.Configuration parent) [0x0005d] in <a93aef1331f0472f816421bd7d6 e3fa1>:0
--- End of inner exception stack trace ---
at System.Configuration.Configuration.Init (System.Configuration.Internal.IConfigSystem system, System .String configPath, System.Configuration.Configuration parent) [0x0007a] in <a93aef1331f0472f816421bd7d6 e3fa1>:0
at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00056] in <a93aef1331f0472f816421bd7d6e3fa1>:0
at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object [] hostInitConfigurationParams) [0x0000d] in <a93aef1331f0472f816421bd7d6e3fa1>:0
at System.Configuration.ConfigurationManager.OpenMappedExeConfiguration (System.Configuration.ExeConfi gurationFileMap fileMap, System.Configuration.ConfigurationUserLevel userLevel) [0x00005] in <a93aef1331 f0472f816421bd7d6e3fa1>:0
at System.Configuration.CustomizableFileSettingsProvider.LoadProperties (System.Configuration.ExeConfi gurationFileMap exeMap, System.Configuration.SettingsPropertyCollection collection, System.Configuration .ConfigurationUserLevel level, System.String sectionGroupName, System.Boolean allowOverwrite, System.Str ing groupName) [0x00000] in <1a0168907d2042858c12ff7b2c118a26>:0
at System.Configuration.CustomizableFileSettingsProvider.GetPropertyValues (System.Configuration.Setti ngsContext context, System.Configuration.SettingsPropertyCollection collection) [0x0006a] in <1a0168907d 2042858c12ff7b2c118a26>:0
at System.Configuration.LocalFileSettingsProvider.GetPropertyValues (System.Configuration.SettingsCont ext context, System.Configuration.SettingsPropertyCollection properties) [0x00000] in <1a0168907d2042858 c12ff7b2c118a26>:0
at System.Configuration.ApplicationSettingsBase.CacheValuesByProvider (System.Configuration.SettingsPr ovider provider) [0x0005b] in <1a0168907d2042858c12ff7b2c118a26>:0
at System.Configuration.ApplicationSettingsBase.GetPropertyValue (System.String propertyName) [0x00040 ] in <1a0168907d2042858c12ff7b2c118a26>:0
at System.Configuration.ApplicationSettingsBase.get_Item (System.String propertyName) [0x00014] in <1a 0168907d2042858c12ff7b2c118a26>:0
at de.mfbot.MFBot_NG.Basisbibliothek.Properties.Settings.get_HWID () [0x00000] in <25726cf54e3346bfb50 1aecf14426b94>:0
at de.mfbot.MFBot_NG.Basisbibliothek.GlobalSettings.get_HWID () [0x00005] in <25726cf54e3346bfb501aecf 14426b94>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMetho d,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [ 0x00032] in <a6f810169ec746eeb2789b925e2858c0>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [ 0x00048] in <a6f810169ec746eeb2789b925e2858c0>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <a 6f810169ec746eeb2789b925e2858c0>:0
at de.mfbot.MFBot_NG.Basisbibliothek.GlobalSettings.SaveDefaults () [0x00072] in <25726cf54e3346bfb501 aecf14426b94>:0
at de.mfbot.MFBot_NG.Basisbibliothek.GlobalSettings.get_Settings () [0x00014] in <25726cf54e3346bfb501 aecf14426b94>:0
at de.mfbot.MFBot_NG.Konsole.Program.Main (System.String[] args) [0x00010] in <ce8a99b27e44424b88dc251 186737328>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.Reflection.TargetInvocationException: Exception has been throw n by the target of an invocation. ---> System.Configuration.ConfigurationErrorsException: Root element i s missing. (/root/.local/share/mfbot.de/Console.exe_Url_cac4d7c61d53a86048078bc072f1a08bfcd99dc2/user.co nfig) ---> System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) [0x00027] in <dc0757ce36454b0b9a9299e0c944b 915>:0
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo (System.String res) [0x00017] in <dc0757ce36454b0 b9a9299e0c944b915>:0
at System.Xml.XmlTextReaderImpl.ParseDocumentContent () [0x0035d] in <dc0757ce36454b0b9a9299e0c944b915 >:0
at System.Xml.XmlTextReaderImpl.Read () [0x0008c] in <dc0757ce36454b0b9a9299e0c944b915>:0
at System.Xml.XmlTextReader.Read () [0x00000] in <dc0757ce36454b0b9a9299e0c944b915>:0
at System.Xml.XmlReader.MoveToContent () [0x0003a] in <dc0757ce36454b0b9a9299e0c944b915>:0
at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileN ame) [0x00000] in <a93aef1331f0472f816421bd7d6e3fa1>:0
at System.Configuration.Configuration.Load () [0x00043] in <a93aef1331f0472f816421bd7d6e3fa1>:0
at System.Configuration.Configuration.Init (System.Configuration.Internal.IConfigSystem system, System .String configPath, System.Configuration.Configuration parent) [0x0005d] in <a93aef1331f0472f816421bd7d6 e3fa1>:0
--- End of inner exception stack trace ---
at System.Configuration.Configuration.Init (System.Configuration.Internal.IConfigSystem system, System .String configPath, System.Configuration.Configuration parent) [0x0007a] in <a93aef1331f0472f816421bd7d6 e3fa1>:0
at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00056] in <a93aef1331f0472f816421bd7d6e3fa1>:0
at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object [] hostInitConfigurationParams) [0x0000d] in <a93aef1331f0472f816421bd7d6e3fa1>:0
at System.Configuration.ConfigurationManager.OpenMappedExeConfiguration (System.Configuration.ExeConfi gurationFileMap fileMap, System.Configuration.ConfigurationUserLevel userLevel) [0x00005] in <a93aef1331 f0472f816421bd7d6e3fa1>:0
at System.Configuration.CustomizableFileSettingsProvider.LoadProperties (System.Configuration.ExeConfi gurationFileMap exeMap, System.Configuration.SettingsPropertyCollection collection, System.Configuration .ConfigurationUserLevel level, System.String sectionGroupName, System.Boolean allowOverwrite, System.Str ing groupName) [0x00000] in <1a0168907d2042858c12ff7b2c118a26>:0
at System.Configuration.CustomizableFileSettingsProvider.GetPropertyValues (System.Configuration.Setti ngsContext context, System.Configuration.SettingsPropertyCollection collection) [0x0006a] in <1a0168907d 2042858c12ff7b2c118a26>:0
at System.Configuration.LocalFileSettingsProvider.GetPropertyValues (System.Configuration.SettingsCont ext context, System.Configuration.SettingsPropertyCollection properties) [0x00000] in <1a0168907d2042858 c12ff7b2c118a26>:0
at System.Configuration.ApplicationSettingsBase.CacheValuesByProvider (System.Configuration.SettingsPr ovider provider) [0x0005b] in <1a0168907d2042858c12ff7b2c118a26>:0
at System.Configuration.ApplicationSettingsBase.GetPropertyValue (System.String propertyName) [0x00040 ] in <1a0168907d2042858c12ff7b2c118a26>:0
at System.Configuration.ApplicationSettingsBase.get_Item (System.String propertyName) [0x00014] in <1a 0168907d2042858c12ff7b2c118a26>:0
at de.mfbot.MFBot_NG.Basisbibliothek.Properties.Settings.get_HWID () [0x00000] in <25726cf54e3346bfb50 1aecf14426b94>:0
at de.mfbot.MFBot_NG.Basisbibliothek.GlobalSettings.get_HWID () [0x00005] in <25726cf54e3346bfb501aecf 14426b94>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMetho d,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [ 0x00032] in <a6f810169ec746eeb2789b925e2858c0>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [ 0x00048] in <a6f810169ec746eeb2789b925e2858c0>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <a 6f810169ec746eeb2789b925e2858c0>:0
at de.mfbot.MFBot_NG.Basisbibliothek.GlobalSettings.SaveDefaults () [0x00072] in <25726cf54e3346bfb501 aecf14426b94>:0
at de.mfbot.MFBot_NG.Basisbibliothek.GlobalSettings.get_Settings () [0x00014] in <25726cf54e3346bfb501 aecf14426b94>:0
at de.mfbot.MFBot_NG.Konsole.Program.Main (System.String[] args) [0x00010] in <ce8a99b27e44424b88dc251 186737328>:0
Alter Fehler ( scheinbar behoben)
SPOILER
Nun wollte ich den Bot wie gewohnt erst normal starten bevor ich ihn im Screen starte jedoch kommt dort immer "
./MFBot_Konsole_x86_64: line 1: syntax error near unexpected token `newline'
./MFBot_Konsole_x86_64: line 1: `<!DOCTYPE html>'
"
Ich bissle Google rein gehauen, nach Info neu installiert, Acc.ini neu eingefügt, selbes Problem.

Habt ihr eine Lösung die ich vielleicht übersehen habe? Vielen Dank im voraus
F0restbear
Moderator
Beiträge: 1139
Registriert: Mo 8. Jun 2015, 17:36
Hat sich bedankt: 39 Mal
Danksagung erhalten: 214 Mal

Re: Linux Konsole Syntax Error

Beitrag von F0restbear »

Hi,

versuch mal bitte alle Dateien unter /home/mfbot/.local/share/mfbot.de/ (rm -rf /home/mfbot/.local/share/mfbot.de/) zu löschen und den Bot dann nochmal neuzustarten.
Viele Grüße / Best regards

F0restbear
Nippilein
Beiträge: 2
Registriert: So 8. Aug 2021, 00:23
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: Linux Konsole Syntax Error

Beitrag von Nippilein »

Guten Morgen und danke für deine Hilfe.

Leider hat dies auch den Fehler nicht behoben.
Habe den Ordner gelöscht und einen neuen erstellt, dort den Download nochmal gemacht, chmod etc ausgeführt, Bot gestartet selbiger Fehler.
Installiere ich den Bot direkt im Home Ordner, ohne unter Ordner läuft er merkwürdigerweise ...

Ich habe ihn nun erstmal am laufen, werde mich, wenn mehr Zeit zur Verfügung habe, weiterhin mit dem Problem beschäftigen.

Grüße Pierre
Benutzeravatar
Robin
Administrator
Beiträge: 1723
Registriert: So 30. Jun 2013, 18:12
Wohnort: Rheinland-Pfalz
Hat sich bedankt: 303 Mal
Danksagung erhalten: 354 Mal

Re: Linux Konsole Syntax Error

Beitrag von Robin »

Guten Abend auch,
ich habe die Vermutung, dass der selbe Fehler, den du vorher hattest, auch für eine Korruption innerhalb der user.config gesorgt hat. Die enthält nämlich unter anderem bestimmte Konfigurationslisten und -werte, die von unserem Server aus regelmäßig auf den neusten Stand gebracht werden.
Wenn da dann aus irgendeinem Grund plötzlich HTML drin stünde, wäre das ungünstig.

Bis eben hat für eine Weile ein Teil unserer API etwas gezickt, möglicherweise kam dadurch nach dem Update das ein oder andere Problem zustande.
In einem anderen als dem Home-Verzeichnis sollte der Bot auf jeden Fall unter normalen Umständen laufen können.

Grüße
Robin
MFBot-VersionCode-Zeilen*In Dateien*Letzte Version
MFBot 1.5.x64851Juli 2013
MFBot 2.x1436316März 2014
MFBot 3.x2209536März 2015
MFBot 4.x55242241Juli 2018
MFBot 5.x66000440Tbc
*Ohne automatisch generierten Designer-Code
Antworten

Wer ist online?

Mitglieder in diesem Forum: Ahrefs [Bot] und 4 Gäste