Update to webPDF 10
General
The following notes refer to an update from webPDF 7, 8 and 9 to the current version 10.
If possible, you should install the new version on a test system before updating to ensure that the connection to or integration into your production systems will also function technically and in terms of content after the update.
We provide the current version (for production and test systems) for the various platforms via the Download page:
Data backup
Please always backup the current installation before an update or make sure that the backups of the current version are available and working. Additionally, back up the configuration directories of webPDF before an update.
The configuration is located in the folder C:\ProgramData\webPDF for a Windows installation and directly in the installation folder /opt/webpdf for a Linux installation.
Backup the folders conf/ (configuration files), keystore/ (certificates) and (optionally) and logs (the historical logs).
Compatibility
Version 10 is interoperable with the previous version 9 in terms of the REST and SOAP web service API.
However, there are new features and “important changes” that may require adjustments to the configuration or the web service requests to use these new functions.
Be sure to read the changelog for version 10.
If you are using webPDF in conjunction with a third-party application, check whether the vendor's application is compatible with the current webPDF version before updating. To do this, contact the manufacturer of the application.
Check the general technical requirements of the current version.
Below you will find the appropriate instructions for performing an update under Windows and Linux.
Update Windows
Stop the webPDF server before you start the update. This is required for an update to a new major version and for an update within a major version, even though the latter needs no uninstallation. Stop the Windows service, or close the application if you run webPDF as a normal program, as described under Start and stop in Windows.
When updating the major version, the previous version must be uninstalled. Therefore, first perform the De-Installation of the current version.
If you perform an update within a version, then the uninstallation is not necessary. The server must be stopped in both cases.
Keep the runtime data during the de-installation, because they will be taken over after the update to the current version. So do not activate the option Remove runtime data during the de-installation.
After the de-installation you can install the new version with the installer.
After the installation (if not disabled during the installation) the webPDF server starts as a service automatically.
The installation routine takes the license and the ports from the existing configuration in C:\ProgramData\webPDF\conf. It writes a value into application.xml or server.xml only when you change it in the installation routine or an answer file names it (see Installation options); a file without such a change stays exactly as it is, including comments and formatting. For webPDF Converter, it also sets the web service switches of the converter where they differ, unless a switch is a placeholder. A value set through an environment variable - a placeholder such as ${WEBPDF_PORT:-9090} - is kept as it is and is not checked: the “Select Server Port” page shows the placeholder, and when the license key or the licensee is a placeholder, the installation routine skips the license page. To replace a port placeholder, enter a port number on that page. A value that is no port number, such as -1 for a control port that is switched off, is kept and not checked as well, unless you change it.
At startup, the server adopts the existing configuration unchanged; new options of a version apply with their default value. The server never rewrites the configuration files at startup; entries that a version no longer knows are ignored with a warning in the log (see Loading and invalid entries). After starting the webPDF server, check the settings and the accessibility of the server. You can use the Admin Portal of the server for this.
Occupied ports during the update
A webPDF server that is still running keeps the web service port (8080 by default) and the control port (8005 by default) occupied. On the “Select Server Port” page, the installation routine then reports the port as already occupied and asks you to select a different one.
Keep the web service and portal port and stop the running server instead. The availability check is repeated on every attempt, so you can continue in the same dialog box afterwards. A different port would move the web portal and every existing integration to a new address.
Update Linux
On Linux, webPDF is installed via the package manager of the respective Linux distribution. We provide a repository for this purpose via the page https://packages.softvision.de/.
You will find the appropriate instructions on the repository home page on how to include the webPDF package in the package manager of the respective distribution.
Under Linux, no prior de-installation is necessary.
To update webPDF, enter the new version in your package manager and update the package manager so that it updates the package source and detects the new webPDF version.
Please make sure that your Linux distribution is supported and that you are using the latest version of the distribution.
Please update your distribution to the latest version before installing webPDF and also make sure that you use the latest package sources.
Update the webPDF package via the Package Manager so that the current webPDF version is set up.
At the end of the update, a running webPDF server is restarted with the new version and is briefly unavailable during the restart.
On DEB-based distributions, a server that is set up to start automatically is also started if it was not running; a server whose service you disabled is not started. On RPM-based distributions, a server that you stopped stays stopped. In these cases, start the service manually. The server adopts the existing configuration unchanged; new options of a version apply with their default value. The server never rewrites the configuration files at startup; entries that a version no longer knows are ignored with a warning in the log (see Loading and invalid entries).
The package scripts follow the rules of the distribution's own tools. On SUSE, the setting DISABLE_RESTART_ON_UPDATE with the value yes or 1 in /etc/sysconfig/services or as an environment variable prevents the restart at the end of the update; the environment variable takes precedence. Likewise, DISABLE_STOP_ON_REMOVAL with the value yes or 1 prevents the stop when the package is removed with rpm -e or zypper remove; the autostart is still removed. Red Hat-based distributions have no /etc/sysconfig/services, so nothing changes there; both RPM packages use the same scripts, so only an environment variable that you set explicitly for rpm takes effect there. On DEB-based distributions, the server is started, restarted and stopped through deb-systemd-invoke; a /usr/sbin/policy-rc.d that forbids service actions (exit code 101) prevents this under systemd as well.
The official Debian container images contain such a policy-rc.d. In a systemd container based on them, the package therefore does not start the server by itself.
The configuration files (application.xml, server.xml, users.xml and log4j2.xml) are managed by the package manager as configuration files. If you have not changed a file, it is not touched. If you have changed a file and a later package changes its template, the package manager asks which version to keep. On DEB-based distributions, the default answer (N) keeps your file; an unattended update keeps your files with apt-get -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold .... On RPM-based distributions, your file is kept and the new template is stored next to it as *.rpmnew.
After starting the webPDF server, check the settings and the accessibility of the server. You can use the Admin Portal of the server for this purpose.