You are not logged in.
Pages: 1
Shahin,
I downloaded the nanodlp.arm64.zip file to /home and unzipped it. No problem.
I access the SBC through SSH.
However, when I try:
./run.sh
I get the following messages:
2018/08/19 01:19:34.777876 {"Layer":"0","module":"Hardware","level":"Notice","msg":"Initializing build # 1854 - generic"}
2018/08/19 01:19:34.778469 {"Layer":"0","module":"SLAVE","level":"Error","msg":"Serial port could not be activated no such file or directory"}
2018/08/19 01:19:34.779477 {"Layer":"0","module":"Terminal","level":"Notice","msg":"Terminal Reader Activated"}
2018/08/19 01:19:34.781436 {"Layer":"0","module":"Server","level":"Error","msg":"Could not setup server. listen tcp :8080: bind: address already in use"}
My internet is working fine so the problem sounds like a configuration problem on my end.
Any suggestions?
Offline
Port 8080 already being used by another program. Terminate that program or change port on machine.json before running the program
Offline
Shahin,
Thanks. I noticed that my MEGA 2560 wasn't plugged into my SBC. I think that was the problem. I plugged it in.
So, I tried again and got different results.
root@3Dprinter:/home/nanodlp# ./nanodlp
2018/08/20 02:52:11.190842 {"Layer":"0","module":"Hardware","level":"Notice","msg":"Initializing build # 1854 - generic"}
2018/08/20 02:52:11.194346 {"Layer":"0","module":"Terminal","level":"Notice","msg":"Terminal Reader Activated"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xa4a90]
goroutine 19 [running]:
syscall.Select(0x6, 0x4420206080, 0x0, 0x4420206100, 0x0, 0x2fcc68, 0x442004e800, 0x7f7a76ad90)
/usr/local/go/src/syscall/syscall_linux_arm64.go:77 +0x20
github.com/creack/goselect.sysSelect(0x6, 0x4420206080, 0x0, 0x4420206100, 0x0, 0x46c860, 0x1)
/home/shahin/go/src/github.com/creack/goselect/select_linux.go:8 +0x40
github.com/creack/goselect.Select(0x6, 0x4420206080, 0x0, 0x4420206100, 0xffffffffffffffff, 0x34ed9c, 0x8)
/home/shahin/go/src/github.com/creack/goselect/select.go:16 +0x98
go.bug.st/serial.v1/unixutils.Select(0x4420210000, 0x0, 0x4420210000, 0xffffffffffffffff, 0x4420166090, 0x8, 0x1)
/home/shahin/go/src/go.bug.st/serial.v1/unixutils/select.go:99 +0x74
go.bug.st/serial%2ev1.(*unixPort).Read(0x4420156630, 0x44201e4008, 0x1, 0x1, 0x0, 0x0, 0x0)
/home/shahin/go/src/go.bug.st/serial.v1/serial_unix.go:63 +0xc0
projects/printer/app/shield.(*Conf).Read(0x7acba0, 0x44201e4008, 0x1, 0x1, 0x1, 0x1, 0x428d20)
/home/shahin/go/src/projects/printer/app/shield/shield.go:88 +0x1b0
main.(*termStruct).readLine(0x7ac9a0, 0x8, 0x0, 0x4420166030)
/home/shahin/go/src/projects/printer/app/term.go:52 +0xc4
main.(*termStruct).Reader(0x7ac9a0)
/home/shahin/go/src/projects/printer/app/term.go:39 +0x8c
created by main.main
/home/shahin/go/src/projects/printer/app/server.go:66 +0x238
root@3Dprinter:/home/nanodlp#
Any solution to this glitch?
I appreciate your help.
Offline
Use sudo before command
sudo ./printer
Also if you receive line below, you should change port.
2018/08/19 01:19:34.781436 {"Layer":"0","module":"Server","level":"Error","msg":"Could not setup server. listen tcp :8080: bind: address already in use"}
Offline
Shahin,
I did modify the 8080 to 80 in machine.json. I tried again with the Mega 2560 connected and that sent me on to the 2nd error.
I always log in as root whenever I do installations. Using sudo ./run.sh made no difference.
I am trying to do my initial setup of my 3D printer. I'm using an Arduino Mega 2560 and a RAMPS 1.4 controller. I haven't wired my motor and endstops yet as I want to setup my display 1st. Is it okay to work on my display before I wire the motor and endstops? Any suggestions.
Thanks.
Offline
Shahin,
I think I found the problem. Nanodlp is trying to connect with a SBC that already has a static IP address and it isn't 192.168.2.6. I would prefer to keep the SBC's static IP address. Any solution other than changing the static IP address on the SBC?
Last edited by colgeocol (2018-08-21 19:07:30)
Offline
Pages: 1