Elasticsearch 5.6.3 font problem

Hi

Plugins installed: ingest-attachment
Centos 7.4
I have installed elasticsearch 5.6.3 to development, and while we are pumping documents into it, we are getting the following errors/warnings in log.
Elasticsearch is installed as root user. But somehow it is looking fonts from /home/elasticsearch/.., which catalog does not exist at all.

[2017-10-23T08:15:07,322][ERROR][o.a.p.p.f.FileSystemFontProvider] Error accessing the file system
java.security.AccessControlException: access denied ("java.io.FilePermission" "/home/elasticsearch/.fonts" "read")
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472) ~[?:1.8.0_144]
        at java.security.AccessController.checkPermission(AccessController.java:884) ~[?:1.8.0_144]
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) ~[?:1.8.0_144]
        at java.lang.SecurityManager.checkRead(SecurityManager.java:888) ~[?:1.8.0_144]
        at java.io.File.exists(File.java:814) ~[?:1.8.0_144]
.......

[2017-10-23T08:15:07,325][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font Times-Roman
[2017-10-23T08:15:07,425][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font Times-Bold
[2017-10-23T08:15:07,426][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font Times-Italic
[2017-10-23T08:15:07,426][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font Times-BoldItalic
[2017-10-23T08:15:07,426][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font Helvetica
[2017-10-23T08:15:07,427][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font Helvetica-Bold
[2017-10-23T08:15:07,427][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font Helvetica-Oblique
[2017-10-23T08:15:07,434][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font Helvetica-BoldOblique
......
.....

(and so on, warnings for a lot of fonts)

Regards
Raul

Please format your code using </> icon as explained in this guide. It will make your post more readable.

Or use markdown style like:

```
CODE
```

I edited your post.

Is that happening when you start elasticsearch? When you run an ingest request?
Can you clarify?

Elasticsearch is installed as root user.

WDYM? Elasticsearch can not be ran as root. Which package did you install? You probably mean that you installed the elasticsearch service as the root user, right? But then the service runs elasticsearch as elasticsearch user.

Hi

Thanks, I will keep this in mind to format the code.

Yes, you are right, service is installed as root user. My bad.

Service itself consists of this:
....
User=elasticsearch
Group=elasticsearch
......

[root@arendus-etelastic1 ~]# cat /etc/passwd | grep elastic
elasticsearch:x:994:992:elasticsearch user:/home/elasticsearch:/sbin/nologin

Though /home/elasticsearch directory does not exists, and that is why I don't understand, why fonts are looked from there.

These errors/warnings happen only when ingest request is ran.
Started this custom pumping application about 10:21, elastic logs as follows (a few documents get indexed and then errors and warnings):

    [2017-10-23T10:21:55,995][INFO ][o.e.m.j.JvmGcMonitorService] [arendus-etelastic1] [gc][257] overhead, spent [395ms] collecting in the last [1s]
    [2017-10-23T10:21:56,997][INFO ][o.e.m.j.JvmGcMonitorService] [arendus-etelastic1] [gc][258] overhead, spent [452ms] collecting in the last [1s]
    [2017-10-23T10:21:57,998][INFO ][o.e.m.j.JvmGcMonitorService] [arendus-etelastic1] [gc][259] overhead, spent [428ms] collecting in the last [1s]
    [2017-10-23T10:21:58,999][INFO ][o.e.m.j.JvmGcMonitorService] [arendus-etelastic1] [gc][260] overhead, spent [275ms] collecting in the last [1s]
    [2017-10-23T10:22:05,035][INFO ][o.e.m.j.JvmGcMonitorService] [arendus-etelastic1] [gc][266] overhead, spent [416ms] collecting in the last [1s]
    [2017-10-23T10:22:12,170][INFO ][o.e.m.j.JvmGcMonitorService] [arendus-etelastic1] [gc][273] overhead, spent [380ms] collecting in the last [1s]
    [2017-10-23T10:22:16,190][INFO ][o.e.m.j.JvmGcMonitorService] [arendus-etelastic1] [gc][277] overhead, spent [397ms] collecting in the last [1s]
    [2017-10-23T10:22:19,192][INFO ][o.e.m.j.JvmGcMonitorService] [arendus-etelastic1] [gc][280] overhead, spent [379ms] collecting in the last [1s]
    [2017-10-23T10:22:22,193][INFO ][o.e.m.j.JvmGcMonitorService] [arendus-etelastic1] [gc][283] overhead, spent [317ms] collecting in the last [1s]
    [2017-10-23T10:22:32,168][ERROR][o.a.p.p.f.FileSystemFontProvider] Error accessing the file system
    java.security.AccessControlException: access denied ("java.io.FilePermission" "/home/elasticsearch/.fonts" "read")
            at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472) ~[?:1.8.0_144]
            at java.security.AccessController.checkPermission(AccessController.java:884) ~[?:1.8.0_144]
            at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) ~[?:1.8.0_144]
            at java.lang.SecurityManager.checkRead(SecurityManager.java:888) ~[?:1.8.0_144]
            at java.io.File.exists(File.java:814) ~[?:1.8.0_144]
         ..............
    [2017-10-23T10:22:32,171][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font Times-Roman
    [2017-10-23T10:22:32,179][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font Times-Bold
    [2017-10-23T10:22:32,179][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font Times-Italic
    [2017-10-23T10:22:32,182][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font Times-BoldItalic
    [2017-10-23T10:22:32,183][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font Helvetica
    [2017-10-23T10:22:32,183][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font Helvetica-Bold
    [2017-10-23T10:22:32,183][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font Helvetica-Oblique
    [2017-10-23T10:22:32,186][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font Helvetica-BoldOblique
    [2017-10-23T10:22:32,187][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font Courier
    [2017-10-23T10:22:32,189][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font Courier-Bold
    [2017-10-23T10:22:32,190][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font Courier-Oblique
    [2017-10-23T10:22:32,190][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font Courier-BoldOblique
    [2017-10-23T10:22:32,191][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font Symbol
    [2017-10-23T10:22:32,193][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for base font ZapfDingbats
    [2017-10-23T10:22:32,196][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for Times-Bold
  ......
    [2017-10-23T10:22:32,922][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for Times-Roman
    [2017-10-23T10:22:32,962][WARN ][o.a.p.p.f.PDType1Font    ] Using fallback font LiberationSans for Times-Roman
    [2017-10-23T10:22:34,196][INFO ][o.e.m.j.JvmGcMonitorService] [arendus-etelastic1] [gc][295] overhead, spent [271ms] collecting in the last [1s]
    [2017-10-23T10:22:36,531][INFO ][o.e.m.j.JvmGcMonitorService] [arendus-etelastic1] [gc][297] overhead, spent [623ms] collecting in the last [1.3s]
    [2017-10-23T10:22:38,532][INFO ][o.e.m.j.JvmGcMonitorService] [arendus-etelastic1] [gc][299] overhead, spent [316ms] collecting in the last [1s]
....
    [2017-10-23T10:23:20,380][WARN ][o.a.p.p.f.PDTrueTypeFont ] Using fallback font 'LiberationSans' for 'ArialMT'
    [2017-10-23T10:23:22,724][WARN ][o.a.p.p.f.PDTrueTypeFont ] Using fallback font 'LiberationSans' for 'ArialMT'
    [2017-10-23T10:23:22,824][INFO ][o.e.m.j.JvmGcMonitorService] [arendus-etelastic1] [gc][343] overhead, spent [292ms] collecting in the last [1s]
    [2017-10-23T10:23:25,036][WARN ][o.a.p.p.f.PDTrueTypeFont ] Using fallback font 'LiberationSans' for 'ArialMT'

Regards
Raul

Anyone has same problems..?

Regards
Raul

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.