Operations

This section describes miscellaneous 3DDashboard operations.

This task shows you how to:

Redeploy 3DDashboard Service

You can follow these steps if required.

  1. Through SSH, go to the TomEE+ instance installation path where the 3DDashboard service is deployed.

    Note: Depending on your shutdown/startup script, you must be logged as root or as the applicative user dedicated for 3DDashboard products.

  2. Stop TomEE+.
    • For external TomEE+, run:
      • <externalTomEEInstallPath>\bin\shutdown.bat on Windows
      • <externalTomEEInstallPath>/bin/shutdown.sh -force on Linux
  3. If the shutdown fails, close the java process running this TomEE+ instance.
  4. Delete recursively the subdirectories.

    .\webapps\3ddashboard\ on Windows or ./webapps/3ddashboard/ on Linux

    .\webapps\mepreferences\ on Windows or ./webapps/mepreferences/ on Linux

  5. Restart TomEE+.

    For external TomEE+, run:

    • <externalTomEEInstallPath>\bin\startup.bat on Windows
    • <externalTomEEInstallPath>/bin/startup.sh on Linux
    The subdirectories .\webapps\3ddashboard\ on Windows or ./webapps/3ddashboard/ on Linux, and .\webapps\mepreferences\ on Windows or ./webapps/mepreferences/ on Linux should be recreated automatically.

Configure External TomEE+ Windows Service

External TomEE+ on Windows as a service requires additional configuration.

Edit the TomEE+ windows service settings by running the following command (with Administrator rights):

<3DDashboardInstallPath>\win_b64\code\command\ExternalTomEE_updateService.bat <TomEEServiceName>

This command line updates the external TomEE+ service registry.

Warning:
  • Executing this command-line several times creates duplicate setting entries in the registry.
  • The 3DDashboard uninstallation does not clean the external TomEE+ service registry.

See the TomEE+ Windows service documentation pages for editing and cleaning the service settings stored at the following locations in the Windows registry:

  • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\<TomEEServiceName>\Parameters
  • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\<TomEEServiceName>\Parameters\Java
Note: For more information, see the Apache TomEE Windows Service documentation.

Connect 3DDashboard to the Internet

3DEXPERIENCE platformApps such as Feed Reader require the 3DDashboard backend to perform requests to external services such as Google Drive or Dropbox.

  1. Allow 3DDashboard backend to connect transparently to the internet to retrieve feed or external service information and data.
  2. Add the following rules to your proxy:
    1. Allow a route from the 3DDashboard machine to your proxy.
    2. Allow unauthenticated requests coming from 3DDashboard machine.
    All requests to customer resources and internet resources (if allowed) are routed through your proxy that redirects and authorizes the traffic.
  3. Add a transparent proxy on the 3DDashboard machine.
    1. If you want internet access from the 3DDashboard, create a system user referred to as ${APP_USER}.
    2. Launch the 3DDashboard TomEE using ${APP_USER}.
    3. On Linux, for example, use iptables. Add the following iptables rules for transparent proxy:

      • iptables -t nat -A OUTPUT -d "127.0.0.1/16" -p tcp -m owner --uid-owner "${APP_USER}" -j ACCEPT: Allows localhost requests.
      • iptables -t nat -A OUTPUT -d ${CIDR} -p tcp -m owner --uid-owner "${APP_USER}" -j ACCEPT: Allows requests to the CIDR destination to bypass the client proxy.
      • iptables -t nat -A OUTPUT -p tcp -m owner --uid-owner "${APP_USER}" -j DNAT --to-destination ${PROXY_CLIENT}: Redirects requests to the proxy client.

    4. Save the iptables rules using the command service iptables save where:

      • ${CIDR}: CIDR of the 3DEXPERIENCE platform machines (which allows requests from 3DDashboard to 3DEXPERIENCE platform machines to bypass the client proxy.)
      • ${APP_USER}: User used to run 3DDashboard TomEE.
      • ${PROXY_CLIENT}: Client proxy.

      Note: On Windows, use a suitable Windows firewall.

Set the Reverse Proxy Settings for the Untrusted Domain

  1. Install the Apache reverse proxy on the machine that is configured as untrusted domain for3DDashboard.
  2. Copy 3DDashboard_httpd_fragment.conf from 3DDashboard install location to the new machine, for example: C:\DassaultSystemes\ (Windows) or /usr/DassaultSystemes (Linux)
  3. Configure the reverse proxy.
    1. Edit the Apache httpd.conf file.
    2. Set the Listen tag to the correct port number for the service, for example: Listen 443.

      Use the same port number as 3DDashboard service.

    3. Activate the modules required for the service.

      See the Program Directory for the list of modules.

    4. Customize the <VirtualHost> tag.

      • Customize the reverse proxy server name and server alias, for example:

        ServerName myserver and ServerAlias myserver
      • Activate SSL:

        • SSLEngine on
        • SSLProxyEngine On
      • Specify the SSL certificates definition, for example:
        • SSLCertificateFile "pathtoyourcertificate\myserver.cer"
        • SSLCertificateKeyFile "pathtoyourcertificate\myserver.key"
      • Add the following line to declare the reverse proxy configuration generated by the service installation:
        • Include C:\DassaultSystemes\3DDashboard_httpd_fragment.conf on Windows
        • Include /usr/DassaultSystemes/3DDashboard_httpd_fragment.conf on Linux

Configure the 3DEXPERIENCE platform with a Single FQDN

To install the 3DEXPERIENCE platform with a single FQDN, you must have one cookie name per service to handle session affinity, and avoid getting some service cookies overridden by other cookies. In that case, you need to update the configuration after the 3DDashboard service installation, to send the cookie name to the shared configuration.

  1. Edit the uwp-config.properties file.

    For Linux, go to <3DDashboardInstallPath>/linux_a64/uwp-config.properties

    For Windows, go to <3DDashboardnstallPath>\win_b64\uwp-config.properties

  2. Add these 2 properties:

    uwp.cas.serverIdCookieName = 3DDASHBOARDSERVERID

    uwp.cas.serverIdParamName = 3ddashboardserverid

  3. Start and stop the TomEE+ as explained in Redeploy 3DDashboard Service.

Configure the Header Name Used for the Session Affinity

x-dsp-client-node is the default header name and is hardcoded in the code of the filters.

If you want to change the name of this header, use the following procedure.

  1. Edit uwp-config.properties file.

    For Linux, go to <3DDashboardInstallPath>/linux_a64/uwp-config.properties

    For Windows, go to <3DDashboardnstallPath>\win_b64\uwp-config.properties

  2. Add this property:

    uwp.cas.originalClientNodeHeaderName = [YOUR_NEW_HEADER_NAME]

  3. Start and stop the TomEE+ as explained in Redeploy 3DDashboard Service.

Use the Diagnosis Tool

Once the 3DEXPERIENCE platform has been installed, you can use the Diagnosis tool to check that the services have been correctly installed and configured.

Install More Than One Service on the Same Machine

When more than one service has been installed on the same machine (for example, 3DPassport and 3DDashboard), a loop issue may occur with 3DDashboard and 3DPassport URLs.

Follow these steps to solve the problem:

  1. Modify the 3DDashboard reverse proxy configuration file: install_path\3DDashboard\win_b64\templates\3DDashboard_httpd_fragment.conf
    1. In this file, replace the <Location /> tag: / by: /3ddashboard.
    2. Remove the following line: RequestHeader set x-forwarded-contextpath /.

      You can also replace it with: RequestHeader set x-forwarded-contextpath /3ddashboard

    3. Remove the / in the /3ddashboard ProxyPass and ProxyPassReverse directives.
    4. Remove the line starting with: Header edit Set-Cookie.

    The new file now looks like this:

    #DS_DO_NOT_MODIFY START
    # Apache configuration file for reverse proxy
    <Location /3ddashboard>
    SetEnvIf Host ^(.*?)(:[0-9]+|)$ custom_host=$1
    RequestHeader set x-forwarded-hostname "%{custom_host}e"
    RequestHeader set x-forwarded-port 444
    RequestHeader set x-forwarded-proto https
    
    ProxyPass http://localhost:7070/3ddashboard
    ProxyPassReverse http://localhost:7070/3ddashboard
    </Location>
    #DS_DO_NOT_MODIFY END
  2. Modify the following registry keys using regedit: by adding this value for each key: DASHBOARD_URL=https://domain.dsone.3ds.com:444/3ddashboard

    • HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\3DSpaceTomEE_R2021x\Parameters\Environment
    • HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\3DSpaceTomEENoCAS_R2021x\Parameters\Environment

  3. Edit the enovia.ini file located in: \install_path\3dspace_R2027x\3DSpace\win_b64\code\bin

    You can modify the 3DDashboard URL, for example like this: DASHBOARD_URL=https://domain.dsone.3ds.com:444/3ddashboard