Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleCan I change or add something in the Docker container, e.g. a plugin?

Yes, you can, but we recommend that you recreate the image.

Expand
titleHow to copy Files and Folder from Host to Docker container?

The command to copy files or foldes into a container is:

docker cp <TARGET> <CONTAINER>:<SOURCE>

Example:
Copying a Plug-in-Folder My.Module.DoesSomething into the Modules folder /app/Modules:

docker cp My.Module.DoesSomething web:/app/Modules

Info

web ist the container name

...

Expand
titleHow do I connect to MySQL or MS SQL or what is the hostname?

If Smartstore is started together with MySQL or MS SQL as services, the container name or the service name can simply be used as the host name.

Otherwise, detailled information about the container can be read out with the command docker inspect <CONTAINER>.

Example:

The MySQL container has the name mysql.

The command

docker inspect mysql

returns the following information, beside others:

...

Expand
titleIs a database cross update possible? That means an update from Smartstore 4.2 and MS SQL to Smartstore 5 and MySQL?

No, this is not provided.

PDF Export

Expand
titleError during PDF export, so that no PDF file is created.

This may be due to the fact that the store URL cannot be accessed internally.

Open the appsettings.json file in the main folder of your Smartstore installation and search for the word "PdfEngineBaseUrl" and enter the URL to your Smartstore installation there.

If you are using a reverse proxy (e.g. NGINX) on Linux, enter the locally accessible URL including port there, e.g. "PdfEngineBaseUrl": "http://localhost:5000/".

Task Scheduler

Expand
titleThe Task Scheduler is not executed and the event viewer contains an error message like "Error while calling Taskscheduler endpoint [...]". HTTP 404, NOT FOUND.

Open the appsettings.json file in the main folder of your smartstore installation and search for the word "TaskSchedulerBaseUrl" and enter the URL to your smartstore installation there.

If you use a reverse proxy (e.g. NGINX) on Linux, enter the locally accessible URL incl. port there, e.g. "TaskSchedulerBaseUrl": "http://localhost:5000/".

Anchor
FAQ-Timeouts
FAQ-Timeouts
Timeouts

Expand
titleHow do I change the startup time limit of an ASP.NET Core application like Smartstore?

Changing the value for startupTimeLimit in an http://ASP.NET Core application can be useful in certain situations to ensure that the application starts successfully. Here are some scenarios in which the value for startupTimeLimit can be adjusted:

Set the value high:

Long initialization time: If the http://ASP.NET Core application takes a long time to initialize, for example, if extensive preparations such as database connections, caching, or other services need to be performed, startupTimeLimit can be increased to ensure that the application has enough time to start successfully.

Decrease value:

Fast deployment: If you are sure that your http://ASP.NET Core application usually starts quickly and you want faster feedback on whether the startup was successful or not, you can decrease the startupTimeLimit. This will shorten the wait time before an error message is displayed if the startup process takes too long.

Error analysis: Lowering the startupTimeLimit can be helpful to detect and diagnose startup problems early. If the application fails due to startup problems, you get an error message faster, which can help to fix the problem.

It is important to note that startupTimeLimit is used to monitor the startup process and ensure that the application is started within a reasonable time. The value should be carefully adjusted to the specific requirements and characteristics of the application. However, in most cases it is not necessary to adjust this parameter, as the default values are usually sufficient.

Configuration using IIS as a hosting server - entry in the web.config file:

Code Block
<configuration>    
	<system.webServer>        
		<aspNetCore startupTimeLimit="3600"....

Configuration using Linux as a hosting server -entry in the appsettings.json file:

Code Block
{
  "Kestrel": {
    "StartupTimeLimit": 3600,
    // Weitere Konfigurationen für Kestrel-Webserver
  },

  // Weitere Einstellungen für die Anwendung
}