DEV Community

mmllllzcn
mmllllzcn

Posted on

GBase Database One-Click Installation Troubleshooting: 5 Common Problems and Fixes

Installing GBase Database (GBase 8s) with the install_init.sh one-click installation script can save time, but installation may still fail when the operating system environment doesn't match the configuration requirements.

Instead of repeatedly running the installer, troubleshoot the most common causes in a structured order: port conflicts, locale settings, disk space, permissions, and missing system libraries.

This guide explains how to investigate each issue and what to check before attempting another installation.

1. Port Already in Use

The configured database port may already be occupied by another service. For example, the installation configuration might specify port 9088.

Check whether a process is listening on that port:

ss -tlnp | grep ':9088'
Enter fullscreen mode Exit fullscreen mode

If the command returns a result, inspect the process information to identify the service using the port.

How to fix it:

  • Stop or reconfigure the occupying service if it is safe to do so.
  • Alternatively, choose another available port by updating the PORT parameter in init.ini.
  • Verify that firewall rules and client connection settings match the selected port.

Don't terminate an unfamiliar process simply to free a port. Identify it first.

2. Character Set or Locale Errors

Locale-related errors can occur when the database configuration specifies a locale that isn't available on the operating system.

For example, an installation configured with DB_LOCALE=zh_CN.utf8 may encounter problems if the corresponding system locale is missing or incompatible.

Check the configured value:

DB_LOCALE = zh_CN.utf8
Enter fullscreen mode Exit fullscreen mode

Then inspect the locales available on Linux:

locale -a
Enter fullscreen mode Exit fullscreen mode

How to fix it:

Confirm that the required locale is supported by your operating system and database version. Generate or install the appropriate system locale if necessary, following your distribution's documentation.

Also verify the spelling and encoding expected by your GBase Database installation package. Locale names and supported encodings can vary across Linux distributions.

3. Insufficient Disk Space

Database initialization requires sufficient storage for the configured allocation and supporting files. An installation may fail if the target filesystem runs out of space.

Check the available capacity:

df -h /opt
Enter fullscreen mode Exit fullscreen mode

If your installation directory is /opt/gbase8s, also check the filesystem containing that path.

How to fix it:

  • Free unnecessary files or expand the filesystem.
  • Confirm that the installation directory has sufficient capacity.
  • Review CHUNK_SIZE in init.ini and ensure the requested allocation is appropriate for your environment.

Remember that df -h reports filesystem capacity, not every storage allocation the installer may require. Check the package documentation for the exact meaning and sizing behavior of CHUNK_SIZE.

4. Incorrect File Ownership or Permissions

The installation workflow may create or use the gbasedbt operating system account. If directories have incorrect ownership or permissions, installation or instance initialization can fail.

Inspect the installation directory:

ls -ld /opt/gbase8s
ls -l /opt
Enter fullscreen mode Exit fullscreen mode

Check the expected account and group:

id gbasedbt
Enter fullscreen mode Exit fullscreen mode

How to fix it:

If ownership is incorrect, follow the installation documentation to restore the expected owner and group. For example, if both the account and group are named gbasedbt:

chown -R gbasedbt:gbasedbt /opt/gbase8s
Enter fullscreen mode Exit fullscreen mode

Use this command only after confirming the correct ownership requirements and target directory. Do not assume the installer uses identical account and group names on every platform, and avoid changing ownership recursively without checking the impact on existing files.

5. Missing System Dependencies

An error such as cannot open shared object file often indicates that a required shared library is missing or cannot be found.

Libraries such as libaio, ncurses, or libtinfo may be relevant depending on the operating system, package version, and installed components.

To investigate a missing library, inspect the relevant executable or shared object:

ldd /path/to/executable
Enter fullscreen mode Exit fullscreen mode

Replace the example path with the actual executable identified in the error message. Look for entries marked not found.

How to fix it:

Install the required package using your Linux distribution's package manager, then verify that the library is available in the expected runtime environment. Consult the GBase Database installation documentation for the supported dependency versions.

Final Checklist

Before rerunning the GBase Database one-click installer, verify these five areas:

  • Port: The configured port is available.
  • Locale: The required locale is supported and configured correctly.
  • Disk: The target filesystem has sufficient free space.
  • Permissions: The installation account, ownership, and directory permissions meet the requirements.
  • Dependencies: Required libraries are installed and discoverable.

The key lesson is that installation failures often originate in the operating system environment rather than the installation script itself.

By checking these common causes systematically, you can reduce repeated installation attempts and make GBase Database (GBase 8s) deployment more predictable.

When troubleshooting your next installation, start with the exact error message, validate the relevant environment settings, and rerun the installer only after addressing the underlying cause.

Top comments (0)