Skip to content

nama.properties ​

nama.properties is the one file that tells an installation what it is: what to call itself, where its files live, which addresses it hands out, and which of the system's safety valves are open. It sits beside the application on the server — normally in Tomcat's lib folder — and it is read when the server starts and read again by Utilities → Reload Configuration, so a change to it takes effect after a restart or a Reload Configuration. The settings that act while the server is starting (tasks-initial-delay-minutes, processors-initial-delay-minutes and no-background-processors) need the restart.

The format is one key=value per line:

properties
customer=Nile Group
serverid=production-1
timezone=Africa/Cairo

This page covers the settings support staff actually set on a customer's server. The system reads many more, but they are internal flags that exist for a developer chasing one specific problem — if a setting is not here and nobody told you to add it, it should not be in the file.

A misspelled setting is not an error

Nothing in this file is validated. A misspelled key is simply never read, and a value the system does not recognise falls back to the default — either way the server starts as usual and logs no complaint. When a setting seems to have no effect, check its spelling before looking anywhere else. The one value that is checked is timezone: an unknown time zone shows up on the critical errors list.

What this installation calls itself ​

SettingWhat it does
customerThe customer's name, as it appears in the licence and in messages the server sends home.
serveridThis server's identity. It is what decides whether this machine is allowed to send e-mails and SMS — see below — so a test copy must never keep production's value.
timezoneThe time zone the server runs in, such as Asia/Riyadh. It overrides the time zone of Tomcat and of Windows, and is applied again by Utilities → Reload Configuration. A name the system does not know is ignored and reported on the critical errors list. Server Time Zone has the name for each country and the option that refuses a server in the wrong zone.

Addresses the system hands out ​

Nama writes links into e-mails, reports and mobile responses, and it cannot guess the address a user reaches it by:

SettingWhat it does
serverThe server's own address, e.g. http://192.168.1.5:8080/. Needed by replication and by anything that builds a link.
guiserverThe address of the user interface, e.g. http://192.168.1.5:8080/erp/ — this is what a link in a printed report or an e-mail points at.
approvalsServerThe address used for approval links, when approvals are answered from outside.
background-server-urlThe address of the server that runs background processing, when it is a separate machine. It is required on a server that has no-background-processors set: that server calls this address to confirm the background server is alive, and puts The background processor is not working, please check the server on the critical errors list when it does not answer.

A link that lands the user on localhost is almost always one of these left unset.

Mail, SMS and WhatsApp — especially on a copy ​

The most expensive accident in ERP support is a test copy of a live database that starts e-mailing and texting the customer's customers. The real safety catch is serverid (see the warning below); these settings narrow what a server that is allowed to send actually sends:

SettingWhat it does
sendmailsandsmsOnly for a server run from a developer's IDE: there it must be true for anything to be sent. It has no effect on a normal server.
send-emails-only-toThe To recipients of every e-mail the system produces are replaced by this address. CC addresses on the message are not replaced.
send-sms-only-toA filter, not a redirect: only recipients whose number contains this value receive the SMS; every other recipient is skipped.
send-whatsapp-only-toEvery WhatsApp message goes to this number instead of its real recipient.
log-sms-dataRecords the body and the provider URL of each SMS so you can see what was actually sent. Diagnostic — turn it off afterwards.

Telegram messages and mobile push notifications have no such setting — on a copy, the server id is the only thing that stops them.

Restoring a production backup onto a test server

The real safety catch is serverid. Change it before the first startup, then set send-emails-only-to and send-sms-only-to to your own address and number. The sending rule is serverid matched against the Send Mails And SMS Only From Servers (CSV) list in Global Configuration, and that list travels inside the database you just restored — so a clone that keeps production's server id is, as far as the software is concerned, production.

Keeping people out ​

SettingWhat it does
prevent-login-of-login-idsA comma-separated list of login ids that cannot sign in.
prevent-login-of-login-ids-msgThe message they see. {0} is replaced with the login id.
prevent-login-of-ipsA comma-separated list of blocked addresses, matched by prefix — 192.168 blocks the whole range.
prevent-login-of-ips-msgThe message they see, with {0} for the address.
use-ldap-for-authenticationHand password checking to the customer's LDAP directory.
preventViewingPublicDocumentsWhen true, documents saved with PUBLIC in a dimension are hidden from users working inside a specific value of that dimension, unless Show Public Document To All is on in global configuration. Master files are not affected.
properties
prevent-login-of-login-ids=user1,user2
prevent-login-of-login-ids-msg=The user {0} is prevented from login by the administrator
prevent-login-of-ips=192.168,214.165.10.13
prevent-login-of-ips-msg=You cannot login from IP {0}

These are a blunt instrument for an emergency — a leaked account, an office that must be locked out today. Ordinary access control belongs in security profiles, not in this file.

Files and attachments ​

SettingWhat it does
tempFolderWhere temporary files are written. Defaults to c:/nama/temp on Windows and /var/nama/temp elsewhere.
local-external-attachments-folderThe folder this server keeps externalized attachments in. It overrides External Attachments Folder of global configuration on this server only, and is used only for attachments stored outside the database, which are the ones saved while Externalize Attachments is on there; it does not move attachments out of the database by itself.
max-single-attachment-size-kbRejects a single attachment larger than this.
max-total-attachment-size-gbCaps the total size of attachments.
disable-mobile-attachmentsWhen true, the mobile apps exchange no attachments: none are sent to the app, and attachments the app sends are ignored (the record keeps the ones it has). Only for older app builds that fail on the current attachment format. Default false.

Background work ​

SettingWhat it does
tasks-initial-delay-minutesHolds scheduled tasks back for this many minutes after startup, so a restarting server is not immediately busy. The default is 5.
processors-initial-delay-minutesThe same for the background processors. The default is 5.
no-background-processorsStops the background processors and the scheduled tasks on this server. A server with this set saves documents but never processes them, so it is only for an installation where a second server on the same database does the background work. It must be set together with background-server-url.
disable-critical-errorsTurns off the critical-errors checks: isolation level, missing server id, disk space, failed business requests. Only for a server where those checks are known to be noise.
disable-sql-clock-alignmentStops Nama from reading the database clock in the server's own time zone when the server and the SQL Server machine are in different zones. Only for ruling it out while investigating a query: see Server Time Zone.
util-run-retention-hoursHow many hours the Utility Runner keeps the result of a finished utility run. The default is 24.

Defaults on new documents ​

valuedate and issuedate set the date a new document opens with, written as dd-mm-yyyy. They are for a data-entry catch-up — a batch of last month's paperwork — and should be removed when the catch-up is over, or every document created afterwards carries a stale date.

POS documents on the server ​

POS documents are written by the point-of-sale application, and the server refuses to let anyone edit or delete them by hand. allowposedit=true and allowposdelete=true lift those refusals. They are a correction tool, not a setting: turn on, fix the document, turn off.

Diagnostics you may be asked to switch on ​

Each of these makes the log louder for one area. Turn them on while reproducing a problem and off again immediately — on a busy installation they fill a disk quickly.

SettingWhat it logs
detailederrorFull error detail instead of the short user-facing message.
logwsWeb-service calls in and out.
log-failed-login-detailsWhy each failed sign-in failed.
logreplication / debugreplicationReplication messages, and the verbose version.
debugATTENDANCEThe HR attendance calculation, step by step.
log-to-files-in-debugWrites logs to files even when the server runs from an IDE.

replication.properties ​

A site that takes part in replication carries a second file beside the first, replication.properties:

SettingWhat it does
enableWhether replication runs on this site at all.
siteidThis site's code. Without it, replication refuses to start.
sitesequenceThis site's sequence number, used when generating codes so two sites never mint the same one. It is required.
headofficeurlThe head office address this site talks to.
headofficeipThe head office address, when given as a plain address rather than a URL.
properties
enable=true
siteid=001
sitesequence=1
headofficeurl=http://192.168.1.5:8080/