evilbeaver / odminus Goto Github PK
View Code? Open in Web Editor NEWКонсоль администрирования серверов 1С
License: GNU General Public License v3.0
Консоль администрирования серверов 1С
License: GNU General Public License v3.0
git clone https://github.com/EvilBeaver/odminus.git
cd odminus/src
opm install -l
FROM evilbeaver/onescript:1.6.0
COPY src /app
WORKDIR /app
RUN opm install -l # возможно, не нужно, если ранее вручную было запущено, но и с ней отрабатывает норм
FROM evilbeaver/oscript-web:0.9.0
COPY --from=a4neg/1c-centos7-docker /opt/1C/v8.3/x86_64 /opt/1C/v8.3/x86_64
ENV ASPNETCORE_ENVIRONMENT=Production
COPY --from=0 /app .
cd ..
docker build -t odminus .
docker run -p 0.0.0.0:5000:5000 -d odminus
``
Request starting HTTP/1.1 GET http://localhost:5000/agents
fail: Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HM1O8V4QIOP1", Request id "0HM1O8V4QIOP1:00000005": An unhandled exception was thrown by the application.
ScriptEngine.Machine.RuntimeException: {Модуль /var/osp.net/oscript_modules/package-loader.os / Ошибка в строке: 56 / Невозможно загрузить модуль Служебный. Такой символ уже определен.}
---> System.InvalidOperationException: Symbol already defined in the scope (Служебный)
docker run somenamespaces/odminus
Доменную авторизацию в кластере поддерживает или надо специального администратора создавать?
Application startup exception: ScriptEngine.Compiler.CompilerException: {Модуль /app/models/modules/АдминистрированиеАгента.os / Ошибка в строке: 3 / Библиотека не найдена logos}
Функция Авторизовать(Знач Маршрутизатор) Экспорт
at ScriptEngine.HostedScript.LibraryResolver.LoadLibrary (System.String value) [0x00054] in <cf57a22073e84bbab71e0a9157501f04>:0
at ScriptEngine.HostedScript.LibraryResolver.Resolve (System.String directive, System.String value, System.Boolean codeEntered) [0x0000e] in <cf57a22073e84bbab71e0a9157501f04>:0
at ScriptEngine.HostedScript.DirectiveMultiResolver.Resolve (System.String directive, System.String value, System.Boolean codeEntered) [0x00010] in <cf57a22073e84bbab71e0a9157501f04>:0
at ScriptEngine.CompilerService.ResolveDirective (System.String directive, System.String value, System.Boolean codeEntered) [0x0000e] in <46cb4f63791641bfba3c1db9d43db287>:0
at ScriptEngine.Compiler.Compiler.HandleDirective (System.Boolean codeEntered) [0x00031] in <46cb4f63791641bfba3c1db9d43db287>:0
at ScriptEngine.Compiler.Compiler.DispatchModuleBuild () [0x00073] in <46cb4f63791641bfba3c1db9d43db287>:0
at ScriptEngine.Compiler.Compiler.BuildModule () [0x0003a] in <46cb4f63791641bfba3c1db9d43db287>:0
at ScriptEngine.Compiler.Compiler.Compile (ScriptEngine.Compiler.Parser parser, ScriptEngine.Compiler.ICompilerContext context) [0x00035] in <46cb4f63791641bfba3c1db9d43db287>:0
at ScriptEngine.CompilerService.CompileInternal (ScriptEngine.Environment.ICodeSource source) [0x00079] in <46cb4f63791641bfba3c1db9d43db287>:0
at ScriptEngine.CompilerService.Compile (ScriptEngine.Environment.ICodeSource source) [0x00000] in <46cb4f63791641bfba3c1db9d43db287>:0
at ScriptEngine.Machine.Contexts.AttachedScriptsFactory.CompileModuleFromSource (ScriptEngine.CompilerService compiler, ScriptEngine.Environment.ICodeSource code, ScriptEngine.Machine.ExternalContextData externalContext) [0x00049] in <46cb4f63791641bfba3c1db9d43db287>:0
at ScriptEngine.HostedScript.LibraryLoader.CompileDelayedModules () [0x00079] in <cf57a22073e84bbab71e0a9157501f04>:0
at ScriptEngine.HostedScript.LibraryLoader.ProcessLibrary (System.String libraryPath) [0x0001d] in <cf57a22073e84bbab71e0a9157501f04>:0
at ScriptEngine.HostedScript.LibraryResolver.ProcessLibrary (ScriptEngine.HostedScript.LibraryResolver+Library lib) [0x00018] in <cf57a22073e84bbab71e0a9157501f04>:0
at ScriptEngine.HostedScript.LibraryResolver.LoadLibraryInternal (System.String libraryPath) [0x000f4] in <cf57a22073e84bbab71e0a9157501f04>:0
at ScriptEngine.HostedScript.LibraryResolver.LoadByPath (System.String libraryPath) [0x00008] in <cf57a22073e84bbab71e0a9157501f04>:0
at ScriptEngine.HostedScript.LibraryResolver.LoadByRelativePath (System.String libraryPath) [0x0003e] in <cf57a22073e84bbab71e0a9157501f04>:0
at ScriptEngine.HostedScript.LibraryResolver.LoadLibrary (System.String value) [0x00031] in <cf57a22073e84bbab71e0a9157501f04>:0
at ScriptEngine.HostedScript.LibraryResolver.Resolve (System.String directive, System.String value, System.Boolean codeEntered) [0x0000e] in <cf57a22073e84bbab71e0a9157501f04>:0
at ScriptEngine.HostedScript.DirectiveMultiResolver.Resolve (System.String directive, System.String value, System.Boolean codeEntered) [0x00010] in <cf57a22073e84bbab71e0a9157501f04>:0
at ScriptEngine.CompilerService.ResolveDirective (System.String directive, System.String value, System.Boolean codeEntered) [0x0000e] in <46cb4f63791641bfba3c1db9d43db287>:0
at ScriptEngine.Compiler.Compiler.HandleDirective (System.Boolean codeEntered) [0x00031] in <46cb4f63791641bfba3c1db9d43db287>:0
at ScriptEngine.Compiler.Compiler.DispatchModuleBuild () [0x00073] in <46cb4f63791641bfba3c1db9d43db287>:0
at ScriptEngine.Compiler.Compiler.BuildModule () [0x0003a] in <46cb4f63791641bfba3c1db9d43db287>:0
at ScriptEngine.Compiler.Compiler.Compile (ScriptEngine.Compiler.Parser parser, ScriptEngine.Compiler.ICompilerContext context) [0x00035] in <46cb4f63791641bfba3c1db9d43db287>:0
at ScriptEngine.CompilerService.CompileInternal (ScriptEngine.Environment.ICodeSource source) [0x00079] in <46cb4f63791641bfba3c1db9d43db287>:0
at ScriptEngine.CompilerService.Compile (ScriptEngine.Environment.ICodeSource source) [0x00000] in <46cb4f63791641bfba3c1db9d43db287>:0
at OneScript.WebHost.Application.ApplicationInstance.Create (ScriptEngine.Environment.ICodeSource src, OneScript.WebHost.Infrastructure.IApplicationRuntime webApp) [0x00038] in <82bafc6d18204688a5a2f091205f6b0d>:0
at OneScript.WebHost.Infrastructure.AppStarter.CreateApp () [0x00043] in <82bafc6d18204688a5a2f091205f6b0d>:0
at OneScript.WebHost.Infrastructure.OneScriptServicePlugin+<>c.<InitializeScriptedLayer>b__3_0 (System.IServiceProvider sp) [0x00016] in <82bafc6d18204688a5a2f091205f6b0d>:0
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory (Microsoft.Extensions.DependencyInjection.ServiceLookup.FactoryCallSite factoryCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x00006] in <824e19d8b53a48d8867d85feb58265d3>:0
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x0003a] in <824e19d8b53a48d8867d85feb58265d3>:0
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped (Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite scopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0002d] in <824e19d8b53a48d8867d85feb58265d3>:0
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitSingleton (Microsoft.Extensions.DependencyInjection.ServiceLookup.SingletonCallSite singletonCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0000d] in <824e19d8b53a48d8867d85feb58265d3>:0
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00072] in <824e19d8b53a48d8867d85feb58265d3>:0
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x00000] in <824e19d8b53a48d8867d85feb58265d3>:0
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine+<>c__DisplayClass1_0.<RealizeService>b__0 (Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0003e] in <824e19d8b53a48d8867d85feb58265d3>:0
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService (System.Type serviceType, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope serviceProviderEngineScope) [0x00032] in <824e19d8b53a48d8867d85feb58265d3>:0
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService (System.Type serviceType) [0x00013] in <824e19d8b53a48d8867d85feb58265d3>:0
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T] (System.IServiceProvider provider) [0x0000e] in <4b47b422bc4c4615bbdebe1df9b21b0d>:0
��
at OneScript.WebHost.Startup.Configure (Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Hosting.IHostingEnvironment env, System.IServiceProvider services) [0x0001f] in <82bafc6d18204688a5a2f091205f6b0d>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,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 <9bbab8f8a2a246e98480e70b0839fd67>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <9bbab8f8a2a246e98480e70b0839fd67>:0
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure (Microsoft.AspNetCore.Builder.IApplicationBuilder app) [0x00027] in <6ac88ff998174be78f0d6ab05b5f222b>:0
at Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter+<>c__DisplayClass0_0.<Configure>b__0 (Microsoft.AspNetCore.Builder.IApplicationBuilder app) [0x00018] in <c62b89f6c6b6464889f462ea2d60e3c8>:0
at Microsoft.AspNetCore.Hosting.Internal.AutoRequestServicesStartupFilter+<>c__DisplayClass0_0.<Configure>b__0 (Microsoft.AspNetCore.Builder.IApplicationBuilder builder) [0x0000c] in <6ac88ff998174be78f0d6ab05b5f222b>:0
at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication () [0x0008b] in <6ac88ff998174be78f0d6ab05b5f222b>:0
Добрый день.
Направьте, пожалуйста, куда смотреть.
Не могу понять про какой тип мне ругается система?
Есть windows сервер. есть служба 1с сервера, есть сервер ras.
Утилитой rac в консоли удается получать данные из ras.
Запустил odminus локально на этом же сервере.
В веб морду зашел.
Добавил свой сервер как localhost (порт 1541) в список.
Проваливаюсь внутрь - вижу ошибку.
Ошибка выглядит так:
An unhandled exception occurred while processing the request.
RuntimeException: {Модуль / Ошибка в строке: -1 / Тип не зарегистрирован (АдминистрированиеКластера)}
ScriptEngine.Machine.StandartTypeManager.GetTypeByName(string name)
RuntimeException: {Модуль C:\Odminus\odminus\src\models\modules\ОбщегоНазначения.os / Ошибка в строке: 63 / Конструктор не найден (АдминистрированиеКластера)}
Администрирование = Новый АдминистрированиеКластера(
ScriptEngine.Machine.TypeManager.GetFactoryFor(string typeName)
Stack
Query
Cookies
Headers
Routing
RuntimeException: {Модуль / Ошибка в строке: -1 / Тип не зарегистрирован (АдминистрированиеКластера)}
ScriptEngine.Machine.StandartTypeManager.GetTypeByName(string name)
ScriptEngine.Machine.TypeManager.GetFactoryFor(string typeName)
У меня есть 1С сервера, в нем есть RAC
стартуя я его через скрипт
Хочу вызывать примерно следующее
curl odminus.int.example.com/agent/selfregister?token=fhkfjhskfjhsdkfjhsdkfjhsdkfjhskfjhsdf
То есть чтобы агенты 1С регистрировались сами в консоли, чтобы руками не вставлять
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.