SyntaxError: /tmp/hyperglass_XXX.json: Unexpected end of JSON input
See original GitHub issueBug Description
Whenever I try to build the ui with hyperglass build-ui it errors out giving the error SyntaxError: /tmp/hyperglass_XXX.json: Unexpected end of JSON input
Expected behavior
I expect it to build the UI without any issue.
Steps to Reproduce
- Install hyperglass using pip3
- Create devices.yaml file
- Run
hyperglass build-ui
Local Configurations
devices.yaml
routers:
- name: rtr.fra.vtr.as211167.net
address: REDACTED
network:
name: production
display_name: AS211167
credential:
username: REDACTED
password: REDACTED
port: 22
nos: vyos
vrfs:
- name: global
default: true
ipv4:
source_address: REDACTED
Logs
❌ Error building UI:
Messages:
Errors:
> Build error occurred
SyntaxError: /tmp/hyperglass_7ounc0yp.json: Unexpected end of JSON input
at parse (<anonymous>)
at Object.Module._extensions..json (internal/modules/cjs/loader.js:1128:22)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:92:18)
at Object.<anonymous> (/usr/local/lib/python3.7/dist-packages/hyperglass/ui/next.config.js:3:16)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
Possible Solution
Environment
Debian 10 LXC container 2GB/2C
Server
❕ Please copy & paste this table in your bug report:
| Metric | Value |
|---|---|
| hyperglass Version | 1.0.3 |
| hyperglass Path | /etc/hyperglass |
| Python Version | 3.7.3 |
| Platform Info | Linux-5.4.119-1-pve-x86_64-with-debian-10.10 |
| CPU Info | AMD Ryzen 5 3600 6-Core Processor |
| Logical Cores | 2 |
| Physical Cores | 6 |
| Processor Speed | 3.6014085GHz |
| Total Memory | 2.15 GB |
| Memory Utilization | 5.2% |
| Total Disk Space | 17.18 GB |
| Disk Utilization | 11.8% |
Client
- OS & Version: Windows 10
- Browser: MS Edge (Chromium ver.)
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’m marking this as fixed-in-next-release, as I’ve completely done away with the
/tmp/hyperglass.env.jsonfile/concept in v2.0. I’ll leave this open until that release is available, in case others come across the same issue.Am getting this same issue. Output of
/tmp/hyperglass_xxxxxxxx.jsonusingnodecommands above: https://www.toptal.com/developers/hastebin/ogayakaset.less/etc/hyperglass3.8.1014.19.0Linux-5.4.124-1-pve-x86_64-with-glibc2.296203.006451825GHzRunning in Ubuntu 20.04.3 LXC within Proxmox.