I am trying to start a Photon Server that I have been building. I have heard that Photon Server and Unity3D don't directly support .net5 but there has to be a work around to make this work. This is the first attempt to create a Photon Server. When starting my .net5 stand alone server I get this error in my project log:
29244: 18:45:31.948 - CService::OnException() - Exception: CManagedHost::StartApplication() - Failed to start application in AppDomain: 2 - The system cannot find the file specified.
I wish the log would tell me what file they can't find.
In my PhotonCLR.Log I notice that my ConfigurationFile and CachePath = ', which in the tutorial I am watching mentions this being a issue for Photon. Tutorial Series Thanks Christian Richards.
INFO PhotonHostRuntime.PhotonDomainManager - CreateAppDomain: name = 'TestServer' , assemblyName = 'PhotonServer'
INFO PhotonHostRuntime.PhotonDomainManager - ApplicationBase = 'C:\Users\user\Documents\Photon Server SDK\deploy'
INFO PhotonHostRuntime.PhotonDomainManager - PrivateBinPath = 'bin_Win64;Shared;C:\Users\user\Documents\Photon Server SDK\deploy\TestServer\bin;'
INFO PhotonHostRuntime.PhotonDomainManager - ConfigurationFile = ''
INFO PhotonHostRuntime.PhotonDomainManager - CachePath = ''
INFO PhotonHostRuntime.PhotonDomainManager - ApplicationPath = 'C:\Users\user\Documents\Photon Server SDK\deploy\TestServer'
INFO PhotonHostRuntime.PhotonDomainManager - BinaryPath = 'C:\Users\user\Documents\Photon Server SDK\deploy\TestServer\bin'
INFO PhotonHostRuntime.PhotonDomainManager - ApplicationRootPath = 'C:\Users\user\Documents\Photon Server SDK\deploy'
INFO PhotonHostRuntime.PhotonDomainManager - UnmanagedLogPath = 'C:\Users\user\Documents\Photon Server SDK\deploy\bin_Win64\log'
With PhotonDomainManager is there away to set the cache path and configuration file? Also what file is it expecting it you can set it?
If I can set it will that be a good workaround or is there another option to Photon Server to run? If not I will have to figure out how to migrate back my projects to .Net Framework 4.6.2 or .Net Standard? I would rather not do this because some of the projects are shared with my WebApi. One of the 2 projects that is shared is Entity Framework, which would be difficult moving to .net standard and the other is a core project that I want to be used by WebApi, Blazor, Photon, and Unity3D.
This question was answered on Photon forum here:
we did not test with .net 5. it is officially not supported yet
use .netframework 4.x
Related
The issue occurs when executing EF 6.1.2 code first migrations in an Azure Web Role (WS 2012 R2). The same migrations run fine locally, even if I point the connection string to the (Azure) Sql Database.
The StackOverflowException is thrown by Entity Framework code, and the first line of ANY of my migrations doesn´t even get hit.
I have tried running the migrations in three different ways:
DbMigrator migrator = new DbMigrator(configuration);
migrator.Update(); // Here the exception is thrown
second:
DbMigrator migrator = new DbMigrator(configuration);
pendingMigrations = migrator.GetPendingMigrations().ToList();
foreach (string pendingMigration in pendingMigrations)
{
migrator.Update(pendingMigration); // Here the exception is thrown
}
and using web.config:
<contexts>
<context type="Superb.WorkNextDoor.EFRepository.Context.WndDbContext, Superb.WorkNextDoor.EFRepository, Version=1.0.0.0, Culture=neutral">
<databaseInitializer type="System.Data.Entity.MigrateDatabaseToLatestVersion`2[[Superb.WorkNextDoor.EFRepository.Context.WndDbContext, Superb.WorkNextDoor.EFRepository], [Superb.WorkNextDoor.EFRepository.Migrations.Migrations.WndDbMigrationsConfiguration, Superb.WorkNextDoor.EFRepository.Migrations]], EntityFramework">
</databaseInitializer>
</context>
</contexts>
I see the StackOverflowException in Visual Studio when I´m remote debugging the web role. An error is recorded in windows event log of the web role (log info at the bottom of this post).
I have two migrations. I have tried running the first one from PMC and the second from the web role but no luck.
I have tried installing .Net 4.5.2 on the server, changing the VM size from XS to S and downgrading EF to version 6.1.1. Nothing worked. Also, I tried downloading the folder "E:\sites\0" from the web role to my local computer, installed the app on IIS and attached my VS Debugger and it doesn't throw that exception. There has got to be something different between my Windows 8.1 and that Windows Server 2012 R2.
I have spent a lot of time trying different things but I don´t want to give up on this and have to execute my migrations from package manager console.
Log Name: Application Source: Application Error Date:
1/11/2015 3:21:42 AM Event ID: 1000 Task Category: (100) Level:
Error Keywords: Classic User: N/A Computer:
RD0003FF508F5B Description: Faulting application name: w3wp.exe,
version: 8.5.9600.16384, time stamp: 0x5215df96 Faulting module name:
clr.dll, version: 4.0.30319.34014, time stamp: 0x52e0b86c Exception
code: 0xc00000fd Fault offset: 0x0000000000195499 Faulting process id:
0xc60 Faulting application start time: 0x01d02d4d77fdfb93 Faulting
application path: d:\windows\system32\inetsrv\w3wp.exe Faulting module
path: D:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll Report
Id: f5e4d6dc-9940-11e4-80bd-0003ff508f5b Faulting package full name:
Faulting package-relative application ID: Event Xml:
1000
2
100
0x80000000000000
467
Application
RD0003FF508F5B
w3wp.exe
8.5.9600.16384
5215df96
clr.dll
4.0.30319.34014
52e0b86c
c00000fd
0000000000195499
c60
01d02d4d77fdfb93
d:\windows\system32\inetsrv\w3wp.exe
D:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
f5e4d6dc-9940-11e4-80bd-0003ff508f5b
Easy steps to reproduce this error:
Download this sample project: http://www.asp.net/mvc/overview/getting-started/getting-started-with-ef-using-mvc/migrations-and-deployment-with-the-entity-framework-in-an-asp-net-mvc-application
Add a CloudServiceProject to the solution and add the web project as a web role
Publish it to azure
Browse the web site and go to students tab (this hits the database and the initializer tries to execute the migrations).
Happens the same.
This is identified as a bug in Microsoft Visual Studio 2013 Update 4. As a temporary work around disable "Lazy Initialization" under IntelliTrace Settings -> IntelliTrace Events. We are investigating fixing this bug in a future update for Visual Studio 2013.
The responsible for the StackOverflowException turned out to be IntelliTrace. I don't know the root cause of the issue between IntelliTrace and Code First Migrations that cause this behavior but when I downloaded the IntelliTrace logs I could see a lot of Sql exceptions:
I have already lost a lot of time with this so I won't investigate it further. The easiest workaround for me now is just disable IntelliTrace before deploying my Web Roles:
If somebody is curious, here are the IntelliTrace logs.
I hope this helps someone else solve such a problem without losing as much time as I did.
I have no idea how step over this problem:
**After amending some code where Glasfish provide an reasonable error message i got this useless message:
"Publishing to GlassFish 4 at localhost [domain 1] has encountered a problem, Cannot deploy abconlinetest" without any other expanation. Even after removing my corrections to force Glassfish to produce the old error message is not possible. Glashfish sticks with this message.
I got this message several times in the past and started always from scratch to set up the application step by step to get into a stable environment.
Below are the start messages from GlashFish.
Glassfish stops always at: 2015-01-16T18:54:02.309+0100|Information:
HV000001: Hibernate Validator 5.0.0.Final Then the messages appears
thhat glassFish is unable to deply the application.
Application uses JSF 2.2 writing the content of two formulars to an
Oracle database.
100|Information: Running GlassFish Version: GlassFish Server Open
Source Edition 4.1 (build 13)
2015-01-16T18:53:56.909+0100|Information: Server log file is using
Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter
2015-01-16T18:53:56.987+0100|Information: Realm [admin-realm] of
classtype [com.sun.enterprise.security.auth.realm.file.FileRealm]
successfully created. 2015-01-16T18:53:56.987+0100|Information: Realm
[file] of classtype
[com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
created. 2015-01-16T18:53:56.987+0100|Information: Realm [certificate]
of classtype
[com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]
successfully created. 2015-01-16T18:53:57.159+0100|Information:
Authorization Service has successfully initialized.
2015-01-16T18:53:57.159+0100|Information: Registered
org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
persistence-type = replicated in BackingStoreFactoryRegistry
2015-01-16T18:53:57.503+0100|Information: Grizzly Framework 2.3.15
started in: 47ms - bound to [/127.0.0.1:8080]
2015-01-16T18:53:57.534+0100|Information: Grizzly Framework 2.3.15
started in: 0ms - bound to [/127.0.0.1:8181]
2015-01-16T18:53:57.550+0100|Information: Grizzly Framework 2.3.15
started in: 0ms - bound to [/0.0.0.0:4848]
2015-01-16T18:53:57.565+0100|Information: Grizzly Framework 2.3.15
started in: 0ms - bound to [/0.0.0.0:3700]
2015-01-16T18:53:57.565+0100|Information: GlassFish Server Open Source
Edition 4.1 (13) startup time : Felix (1.346ms), startup
services(734ms), total(2.080ms)
2015-01-16T18:53:57.737+0100|Information: Grizzly Framework 2.3.15
started in: 15ms - bound to [/0.0.0.0:7676]
2015-01-16T18:53:57.753+0100|Information: Registered
com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl#3b0ee03a
as OSGi service registration:
org.apache.felix.framework.ServiceRegistrationImpl#2bf94401.
2015-01-16T18:53:57.753+0100|Information: Binding RMI port to single
IP address = 127.0.0.1, port 8.686
2015-01-16T18:53:57.800+0100|Information: JMXStartupService has
started JMXConnector on JMXService URL
service:jmx:rmi://127.0.0.1:8686/jndi/rmi://127.0.0.1:8686/jmxrmi
2015-01-16T18:54:02.309+0100|Information: HV000001: Hibernate
Validator 5.0.0.Final
This worked for me.
Go to Servers.
Expand GlassFish 4 at localhost [domain1].
Expand GlassFish Management.
Right click on your project name and press Delete.
Now run the Project again on Glassfish 4.
Hope it helps.
Approach1:
Removing application from server
GlassFish 4 at localhost [domain1] Right click ---> Stop
Expand application list under server: GlassFish 4 at localhost [domain1]
Right click on the project
Select Remove
Click Yes
GlassFish 4 at localhost [domain1] Right click ---> Clean
GlassFish 4 at localhost [domain1] Right click ---> Publish
Re running project
Project ---> Clean
Project ---> Refresh F5
Project Run As ---> Run on Server
Select GlassFish 4 at localhost [domain1]
Click Next
Select the Project
Click Finish
running the project again, it fixes the error.
Approach2:
Same error, and the detailed error message shows:
cannot Deploy project: java.util.concurrent.TimeoutException
For TimeoutException errors, by increasing the timeout limit for server, will work:
Right click on GlassFish 4 at localhost [domain1] ---> Properties ---> Timeouts ---> Start (seconds) ---> increase the timeout limit in seconds ---> Save
Run the project again with the same steps mentioned above.
I have installed Oracle ATG v11 with the commerce reference store, when I startup the production server and go to the url domain/crs/storeus I see the blank white page, and have the following error in the console:
Oct 13, 2014 1:56:37 PM com.endeca.infront.site.SiteManager getSite
SEVERE: Unable to retrieve site definition for site id: /storeSiteUS
com.endeca.store.exceptions.PathNotFoundException: No node found at
path: [pages].
at com.endeca.store.configuration.InternalNode.getNode(InternalNode.java:153)
at com.endeca.store.configuration.InternalNode.getNodeInfo(InternalNode.java:221)
at com.endeca.store.configuration.InternalNode.getNode(InternalNode.java:150)
at com.endeca.store.configuration.InternalNode.getNode(InternalNode.java:61)
........................................
**** Error Mon Oct 13 13:00:47 +00:00 2014 1413205247448 /atg/endeca/assembler/droplet/InvokeAssembler A problem occurred
assembling the content for content item /content/Web/Home Pages. The
response received was {#type=ContentSlot,
atg:currentSiteProductionURL=/crs/storeus,
canonicalLink=com.endeca.infront.cartridge.model.NavigationAction#2b35e9c6,
ruleLimit=1, #error=com.endeca.infront.content.ContentException:
com.endeca.navigation.ENEConnectionException: Error establishing
connection to retrieve Navigation Engine request
http://localhost:15000/graph?node=0&profiles=sitegroup.siteGroupUS|NoPriceRange|site.storeSiteUS&offset=0&nbins=0&irversion=640'.
Tried all: '2' addresses, but could not connect over HTTP to server:
'localhost', port: '15000' Check MDEX Logs and specified query
parameters. , contentCollection=/content/Web/Home Pages}. Servicing
the error open parameter.
I am assuming this error is related to endeca? I have downloaded CAS, Tools And Frameworks with experience manager and MDX, and Platform Services. Do I need to start these or have I missed a part of the endeca install?
The value of the configurationPath attribute in the DefaultFileStoreFactory.properties located at \localconfig\atg\endeca\assembler\cartridge\manager may be incorrect.
In OOTB CRS, we normally provide the following value for configurationPath attribute :
/ToolsAndFrameworks/11.1.0/server/workspace/state/repository/CRS
Could you please verify the .zip is present at path provided in DefaultFileStoreFactory.properties.
Just check if you are able to connect the below url:
host:15000/admin?op=stats
If you are able to connect this URL, then MDEX is running. Also, you can login to the experience manager and check if the dgraphs and dgidx are running.
If you are not able to connect then check all the services are(tools and http) running and accessible. You can check the endeca logs to debug further.
Your DGraph is not (yet) started.
(Hit this URL in your browser and verify: http://localhost:15000/graph?node=0&profiles=sitegroup.siteGroupUS|NoPriceRange|site.storeSiteUS&offset=0&nbins=0&irversion=640&format=xml)
Possible reasons are:
You did not run baseline update from ATG (from
ProductCatalogSimpleIndexingAdmin dyn/admin component).
You did not run promote content (from your Endeca App's control folder).
Your Services are not working properly (or not started at all). Check that Platform Services and Tools And Frameworks are started.
The solution is to properly define the value for the property configurationPath=E:/Endeca/Apps/CRS/data/workbench/application_export_archive/CRS in "DefaultFileStoreFactory.properties"
If you are using the OS as Windows then define this path as Unix style as shown above.
My perl script couldn't connect to the selenium standalone server running in localhost port 4444. In different environment different things happen.
Windows 7 : The script works sometimes and sometimes it doesnt.
Selenium server side : starts properly. but there is no new session created when I create remote driver instance.
C:\Users\ganess4\msant\nsn_testeng\tools\AutoBuildPromotionEmail>java -jar selenium-server-standalone-2.37.0.jar
Dec 3, 2013 12:16:43 PM org.openqa.grid.selenium.GridLauncher main
INFO: Launching a standalone server
12:16:43.882 INFO - Java: Sun Microsystems Inc. 20.14-b01
12:16:43.882 INFO - OS: Windows 7 6.1 x86
12:16:43.894 INFO - v2.37.0, with Core v2.37.0. Built from revision a7c61cb
12:16:43.953 INFO - Default driver org.openqa.selenium.iphone.IPhoneDriver regis
tration is skipped: registration capabilities Capabilities [{platform=MAC, brows
erName=iPhone, version=}] does not match with current platform: VISTA
12:16:43.973 INFO - Default driver org.openqa.selenium.iphone.IPhoneDriver regis
tration is skipped: registration capabilities Capabilities [{platform=MAC, brows
erName=iPad, version=}] does not match with current platform: VISTA
12:16:44.020 INFO - RemoteWebDriver instances should connect to: http://127.0.0.
1:4444/wd/hub
12:16:44.021 INFO - Version Jetty/5.1.x
12:16:44.022 INFO - Started HttpContext[/selenium-server/driver,/selenium-server
/driver]
12:16:44.023 INFO - Started HttpContext[/selenium-server,/selenium-server]
12:16:44.024 INFO - Started HttpContext[/,/]
12:16:44.074 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler#1754ad
2
12:16:44.074 INFO - Started HttpContext[/wd,/wd]
12:16:44.112 INFO - Started SocketListener on 0.0.0.0:4444
12:16:44.112 INFO - Started org.openqa.jetty.jetty.Server#c1b531
Code Side: Note I did try port 4444 and other variations.
my $browser = "firefox";
my $platform = "WINDOWS";
eval
{
$self->{seldriverarray} = new Selenium::Remote::Driver(browser_name => $browser, platform => $platform);
$self->{seldriverarray}->debug_on;
print Dumper $self->{seldriverarray}->status;
};
Throws the following
Use of uninitialized value in string ne at C:/Dwimperl/perl/site/lib/Selenium/Re
mote/RemoteConnection.pm line 30, <FH> line 48.
Use of uninitialized value in string eq at C:/Dwimperl/perl/site/lib/Selenium/Re
mote/RemoteConnection.pm line 35, <FH> line 48.
Selenium server did not return proper status at C:/Dwimperl/perl/site/lib/Seleni
um/Remote/Driver.pm line 232.
The weirdest thing happens when I run it in another environment
Suse Enterprise Edition:
Selenium server side: see it creates a new session, which implies that the code is not wrong. So, what is stopping the code to launch a new session in windows? I couldnt run the script in linux, because it is timing out for a long time struggling to launch the firefox.
12:32:09.969 INFO - Started org.openqa.jetty.jetty.Server#181edf4
12:32:19.041 INFO - Executing: [new session: {platform=WINDOWS, acceptSslCerts=true, javascriptEnabled=true, browserName=firefox, version=}] at URL: /session)
12:32:19.057 INFO - Creating a new session for Capabilities [{platform=WINDOWS, javascriptEnabled=true, acceptSslCerts=true, browserName=firefox, version=}]
After updating the Net::HTTPS and the IO::Socket::SSL, this got resolved.
After struggling to get proper testsuites, I'm now pretty disappointed by the fact that , while following as close as possible this tutorial (pretty straightforward, right ?) Setting up Selenium server on a headless Jenkins CI build machine, Jenkins keeps looping on the current build, outputting :
So I decided to run a selenium build by hand on the ci machine, and got this :
user#machine:/var/log$ export DISPLAY=":99" && java -jar /var/lib/selenium/selenium- server.jar -browserSessionReuse -htmlSuite *firefox http://staging.site.com /var/lib/jenkins/jobs/project/workspace/tests/selenium/testsuite.html /var/lib/jenkins/jobs/project/workspace/logs/selenium.html
24 janv. 2012 19:27:56 org.openqa.grid.selenium.GridLauncher main
INFO: Launching a standalone server
19:27:59.927 INFO - Java: Sun Microsystems Inc. 20.0-b11
19:27:59.929 INFO - OS: Linux 3.0.0-14-generic amd64
19:27:59.951 INFO - v2.17.0, with Core v2.17.0. Built from revision 15540
19:27:59.958 INFO - Will recycle browser sessions when possible.
19:28:00.143 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
19:28:00.144 INFO - Version Jetty/5.1.x
19:28:00.145 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
19:28:00.147 INFO - Started HttpContext[/selenium-server,/selenium-server]
19:28:00.147 INFO - Started HttpContext[/,/]
19:28:00.183 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler#16ba8602
19:28:00.184 INFO - Started HttpContext[/wd,/wd]
19:28:00.199 INFO - Started SocketListener on 0.0.0.0:4444
19:28:00.199 INFO - Started org.openqa.jetty.jetty.Server#6f7a29a1
HTML suite exception seen:
java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:900)
at org.openqa.selenium.server.SeleniumServer.runHtmlSuite(SeleniumServer.java:603)
at org.openqa.selenium.server.SeleniumServer.boot(SeleniumServer.java:287)
at org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:245)
at org.openqa.grid.selenium.GridLauncher.main(GridLauncher.java:54)
19:28:00.218 INFO - Shutting down...
19:28:00.220 INFO - Stopping Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=4444]
While understanding the output is'nt that hard, finding what to do to remove this issue is.
Any chance you guys already have been facing that kind of stuff ? Thanks
I only just got past these problems myself, but I was able to run your command when I pointed it at my .jar, testSuite and report file. I'm thinking that perhaps the location of your files under,
/var/lib/selenium
could be part of the problem. Try putting them where your user has permission perhaps under
/home/USERNAME/selenium
Other than that the only thing I can say is make sure your .jar, testSuite and report file are valid.
Also (I assume this is an error of copy and paste into stack overflow) but, this part of your command is incorrect
/var/lib/selenium/selenium- server.jar
You are not getting the error I would expect from an incorrect jar location so I assume something was lost when you pasted to stackoverflow.