Jsreport on Amazon Linux



  • Hello,
    I successfully installed Jsreport on Amazon Linux. however when I try to generate a report I am getting the following errors:

    2021-09-06T08:57:03.900Z - error: Error when processing render request 1 Failed to launch chrome!
    /home/ec2-user/jsreport/jsreportapp/node_modules/puppeteer/.local-chromium/linux-706915/chrome-linux/chrome: /lib64/libdbus-1.so.3: no version information available (required by /usr/lib64/libatk-bridge-2.0.so.0)
    /home/ec2-user/jsreport/jsreportapp/node_modules/puppeteer/.local-chromium/linux-706915/chrome-linux/chrome: /lib64/libdbus-1.so.3: no version information available (required by /usr/lib64/libatspi.so.0)
    /home/ec2-user/jsreport/jsreportapp/node_modules/puppeteer/.local-chromium/linux-706915/chrome-linux/chrome: /usr/lib64/libxkbcommon.so.0: no version information available (required by /usr/lib64/libgdk-3.so.0)
    /home/ec2-user/jsreport/jsreportapp/node_modules/puppeteer/.local-chromium/linux-706915/chrome-linux/chrome: symbol lookup error: /usr/lib64/libpango-1.0.so.0: undefined symbol: g_type_class_adjust_private_offset
    
    
    TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
     Error: Failed to launch chrome!
    /home/ec2-user/jsreport/jsreportapp/node_modules/puppeteer/.local-chromium/linux-706915/chrome-linux/chrome: /lib64/libdbus-1.so.3: no version information available (required by /usr/lib64/libatk-bridge-2.0.so.0)
    /home/ec2-user/jsreport/jsreportapp/node_modules/puppeteer/.local-chromium/linux-706915/chrome-linux/chrome: /lib64/libdbus-1.so.3: no version information available (required by /usr/lib64/libatspi.so.0)
    /home/ec2-user/jsreport/jsreportapp/node_modules/puppeteer/.local-chromium/linux-706915/chrome-linux/chrome: /usr/lib64/libxkbcommon.so.0: no version information available (required by /usr/lib64/libgdk-3.so.0)
    /home/ec2-user/jsreport/jsreportapp/node_modules/puppeteer/.local-chromium/linux-706915/chrome-linux/chrome: symbol lookup error: /usr/lib64/libpango-1.0.so.0: undefined symbol: g_type_class_adjust_private_offset
    
    
    TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
    
        at onClose (/home/ec2-user/jsreport/jsreportapp/node_modules/puppeteer/lib/Launcher.js:348:14)
        at Interface.helper.addEventListener (/home/ec2-user/jsreport/jsreportapp/node_modules/puppeteer/lib/Launcher.js:337:50)
        at emitNone (events.js:111:20)
        at Interface.emit (events.js:208:7)
        at Interface.close (readline.js:368:8)
        at Socket.onend (readline.js:147:10)
        at emitNone (events.js:111:20)
        at Socket.emit (events.js:208:7)
        at endReadableNT (_stream_readable.js:1064:12)
        at _combinedTickCallback (internal/process/next_tick.js:138:11)
        at process._tickDomainCallback (internal/process/next_tick.js:218:9)
    

    and here are my OS info:

    NAME="Amazon Linux AMI"
    VERSION="2018.03"
    ID="amzn"
    ID_LIKE="rhel fedora"
    VERSION_ID="2018.03"
    PRETTY_NAME="Amazon Linux AMI 2018.03"
    


  • I'm not sure if this is 100% up to date, but have you tried to follow this?

    https://jsreport.net/learn/amazon-linux



  • Yes i already followed the instructions in this tutirial.
    Please let me know if there is anything i could try to fix it.



  • Any advice please?



  • I tried it out and found this line was missing

    sudo yum install -y libXScrnSaver 
    

    However, I was using the latest Amazon Linux
    Amazon Linux 2 AMI (HVM), SSD Volume Type - ami-07df274a488ca9195 (64-bit x86) / ami-07d397b752b4016f8 (64-bit Arm)
    So I'm not sure if the same helps.


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.