# Cannot access Jupyter after porting from prebuilt for ZCU670

**URL:** <https://discuss.pynq.io/t/cannot-access-jupyter-after-porting-from-prebuilt-for-zcu670/4828>\
**Category:** Support\
**Created:** [October 25, 2022, 7:13am UTC](https://discuss.pynq.io/t/cannot-access-jupyter-after-porting-from-prebuilt-for-zcu670/4828 "2022-10-25T07:13:01Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Idos](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/idos/32/3887_2.png) [@Idos](https://discuss.pynq.io/u/Idos)\
**Post date:** [October 25, 2022, 7:13am UTC](https://discuss.pynq.io/t/cannot-access-jupyter-after-porting-from-prebuilt-for-zcu670/4828/1 "2022-10-25T07:13:01Z")

</div>

Hey all,  
I am new here in the forum and to the PYNQ framework.  
I read a lot of threads here before reaching out for your help.

**My Equipment**  
ZCU670 Eval. Board

**The Problem**  
I can not access Jupyter on the browser from a machine on the same network.

**The measures I took**  
I was prebuilding from rootfs image 3.0 and with the supplied Xilinx BSP 2022.1, with the help of the scripts in the sdbuild directory.  
I also added the ethernet package to manage the IP - It assigned me an IP.  
I also resolved communication with ubuntu repositories.  
The board is attached and wired to the Network(hub and then router) - I am successful at pinging the IP address into and out of the board.  
I tried to trace the route - it seems legit.  
SSH is somehow not responding to commands - the commands are just hanging, no matter what I installed or configured.  
I also tired to connect the Eval. board directly to the laptop - the situation is the same.

I think it has to do somehow programmatically with ubuntu/Jupyter configurations.

I appreciate every help and tip to resolve this.

---

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [October 25, 2022, 2:08pm UTC](https://discuss.pynq.io/t/cannot-access-jupyter-after-porting-from-prebuilt-for-zcu670/4828/2 "2022-10-25T14:08:44Z")

</div>

Hi @Idos,

Welcome to the PYNQ community.

Is the jupyter service running? Please check the status on the board by running

```nohighlight
systemctl status jupyter.service

```

Mario

---

<div class="post-metadata">

**Author:** ![Idos](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/idos/32/3887_2.png) [@Idos](https://discuss.pynq.io/u/Idos)\
**Post date:** [October 25, 2022, 2:13pm UTC](https://discuss.pynq.io/t/cannot-access-jupyter-after-porting-from-prebuilt-for-zcu670/4828/3 "2022-10-25T14:13:19Z")

</div>

![jupyter_status](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/8/8a0eeee947ae0752c464441ec4c6f8936506cb3a.jpeg)  
hi 😃@marioruiz you are fast. thanks.

yes, it runs properly.

---

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [October 25, 2022, 5:15pm UTC](https://discuss.pynq.io/t/cannot-access-jupyter-after-porting-from-prebuilt-for-zcu670/4828/4 "2022-10-25T17:15:20Z")

</div>

You may need to check the jupyter logs to see if there are more information.

> [@Jupyter server failed to start](https://discuss.pynq.io/t/jupyter-server-failed-to-start/1375/2):
>
> There might be more logging information if you run journalctl -u jupyter.service Also if you run sudo -i jupyter notebook Do any error messages get printed? Peter

Additionally, you can stop the service and lunch jupyter in the terminal and see if you get more info when you try to connect.

Mario

---

<div class="post-metadata">

**Author:** ![Idos](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/idos/32/3887_2.png) [@Idos](https://discuss.pynq.io/u/Idos)\
**Post date:** [October 25, 2022, 6:22pm UTC](https://discuss.pynq.io/t/cannot-access-jupyter-after-porting-from-prebuilt-for-zcu670/4828/5 "2022-10-25T18:22:08Z")

</div>

![journalctl_jupyter](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/b/b1ffa0606ef111301242b01162088c619b00c3ce.jpeg)  
**The journalctl command. it seems to be no error.**

![stopping_jupyter](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/3/3f5f2d8f158a009d00dbf2bafb6f1e77ba785581.jpeg)  
**Stopping the service jupyter to see errors. no errors.**

 ![jupyter_notebool_sudo](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/4/4cf6e81f64cb05d0f5e53f08748f089c0d200e87.jpeg)  
**Running jupyter as notebook. also seems ok.**

any idea? thanks

---

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [October 26, 2022, 11:18am UTC](https://discuss.pynq.io/t/cannot-access-jupyter-after-porting-from-prebuilt-for-zcu670/4828/6 "2022-10-26T11:18:26Z")

</div>

When you ran jupyter manually, did you try to connect? Anything in the log?

Is it possible that your firewall may be stopping the connection?

---

<div class="post-metadata">

**Author:** ![Idos](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/idos/32/3887_2.png) [@Idos](https://discuss.pynq.io/u/Idos)\
**Post date:** [October 27, 2022, 8:11am UTC](https://discuss.pynq.io/t/cannot-access-jupyter-after-porting-from-prebuilt-for-zcu670/4828/7 "2022-10-27T08:11:32Z")

</div>

![_browser_reach](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/b/b31e8d63aebf765be518cfae1525b338311714bf.jpeg)  
I run the command

> jupyter-notebook --no-browser --allow-root --ip=0.0.0.0

tried to access it. log looks the same, and I do not find any firewall settings on the host or on the slave

what I did notice is, that the jupyter was shutting down 0 kernels. I do not know if it is could be the problem.

---

<div class="post-metadata">

**Author:** ![Idos](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/idos/32/3887_2.png) [@Idos](https://discuss.pynq.io/u/Idos)\
**Post date:** [October 27, 2022, 12:42pm UTC](https://discuss.pynq.io/t/cannot-access-jupyter-after-porting-from-prebuilt-for-zcu670/4828/8 "2022-10-27T12:42:27Z")

</div>

![clear_pl_statefile_nodevice_founded](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/8/85812b8c99ebfeca2b15830a359ee19154647502.jpeg)

I run the command

> systemctl list-units --type=service

to see all the failed services.  
There were 4 failed services, 2 of them I suspect are responsible for the no go Jupyter. according to the documentation.

you also need 2 additional services to be started for pynq to be fully-functional.

> - Jupyter notebook service. (Check /sdbuild/packages/jupyter/start\_jupyter.sh as an example).
> - Clear PL Statefile service. (Check /sdbuild/packages/clear\_pl\_statefile for more information).

In my case, the service Clear PL Statefile service has failed according to the log because no device was found.

@marioruiz I guess it has to do with the build and maybe the BSP file or some kind of configuration?

---

<div class="post-metadata">

**Author:** ![skalade](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/skalade/32/686_2.png) [@skalade](https://discuss.pynq.io/u/skalade)\
**Post date:** [October 27, 2022, 2:11pm UTC](https://discuss.pynq.io/t/cannot-access-jupyter-after-porting-from-prebuilt-for-zcu670/4828/9 "2022-10-27T14:11:41Z")

</div>

Hi @Idos,

Does `xbutil --version` return anything?

Could you share your .spec file you used to generate the image?

Thanks  
Shawn

---

<div class="post-metadata">

**Author:** ![Idos](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/idos/32/3887_2.png) [@Idos](https://discuss.pynq.io/u/Idos)\
**Post date:** [October 27, 2022, 2:22pm UTC](https://discuss.pynq.io/t/cannot-access-jupyter-after-porting-from-prebuilt-for-zcu670/4828/10 "2022-10-27T14:22:46Z")

</div>

![xbutil_return](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/e/e6e451bcb32a175d6cd21ac8fb0ff92d21212e28.jpeg)  
@skalade xbutil --version returns error.

I’ve built the script image\_from\_prebuilt.sh from scripts directory inside the sdbuild plus minor modifications to the .spec file.

> sudo vim /PYNQ/sdbuild/scripts/image\_from\_prebuilt.sh

add in line 84

> echo “STAGE4\_PACKAGES\_$boardname := ethernet” \>\> $specfile

from line 82 to 84, should look like this

> echo “ARCH\_$boardname := $arch” \> $specfile  
> echo “BSP\_$boardname := $boardname.bsp” \>\> $specfile  
> echo “STAGE4\_PACKAGES\_$boardname := ethernet” \>\> $specfile

I do not have the exact spec, but it should be(as far as I understand the flow)  
ARCH\_ZCU670 := aarch64  
BSP\_ZCU670 := xilinx-zcu670-v2022.1-04191534.bsp  
STAGE4\_PACKAGES\_ZCU670 := ethernet

thanks.

---

<div class="post-metadata">

**Author:** ![skalade](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/skalade/32/686_2.png) [@skalade](https://discuss.pynq.io/u/skalade)\
**Post date:** [October 27, 2022, 4:20pm UTC](https://discuss.pynq.io/t/cannot-access-jupyter-after-porting-from-prebuilt-for-zcu670/4828/11 "2022-10-27T16:20:57Z")

</div>

Looks like we might need to update that script… You’re missing the xrt package – a lot of the underlaying pynq functionality depends on it. If you just amend your .spec file with:

```auto
STAGE4_PACKAGES_ZCU670 := xrt ethernet

```

and build a new image, hopefully that will fix your issue.

Thanks,  
Shawn

---

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [October 27, 2022, 4:29pm UTC](https://discuss.pynq.io/t/cannot-access-jupyter-after-porting-from-prebuilt-for-zcu670/4828/12 "2022-10-27T16:29:26Z")

</div>

Hi @Idos,

please also make sure you download the pre-built 3.0.1 images. There was a small bug that can cause a lot of problems at runtime.

Mario

---

<div class="post-metadata">

**Author:** ![Idos](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/idos/32/3887_2.png) [@Idos](https://discuss.pynq.io/u/Idos)\
**Post date:** [October 31, 2022, 9:30am UTC](https://discuss.pynq.io/t/cannot-access-jupyter-after-porting-from-prebuilt-for-zcu670/4828/13 "2022-10-31T09:30:43Z")

</div>

![xbutil_correct](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/5/54c57dfca968b0098725193f306e01cf78748393.jpeg)  
@skalade @marioruiz  
Hey guys,  
So I’ve built the image again with pynq rootfs 3.0.1.  
as you can see xbutil returns the correct version.

 ![still_pynq_x11server_fails](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/5/53dabfa6b09a3b9be11bb7a16b4d0fdc71fb0bed.jpeg)  
As you can see it still fails for PYNQ X11 server, which I suspect stops the serving of any interface in the browser.

![failed_pynqx11_log](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/3/3dab37a8693b2fded4c3a47254ba4cddfdeb1829.jpeg)  
I run journalctl -u pynq-x11.service  
It exits with failure.

**I continued to investigate the log file of startx. (cat /var/log/Xorg.0.log)**

 ![xorg_log](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/c/cb8406635685b8ceb7dd03dea87e6577f6809698.jpeg)

**I still cannot SSH into the board or calling the IP address from the browser**. I think it has something to do with the X server  
what do you think?

thanks again.

---

<div class="post-metadata">

**Author:** ![skalade](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/skalade/32/686_2.png) [@skalade](https://discuss.pynq.io/u/skalade)\
**Post date:** [October 31, 2022, 10:43am UTC](https://discuss.pynq.io/t/cannot-access-jupyter-after-porting-from-prebuilt-for-zcu670/4828/14 "2022-10-31T10:43:54Z")

</div>

Hi @Idos,

The more likely culprit is probably that isc-dhcp-server.service failure, you normally wouldn’t worry about x11 unless you’re plugging a monitor directly into your board.

I would try some of the suggestions on this stackoverflow [isc-dhcp-server status failed: Failed with result 'exit code' - Stack Overflow](https://stackoverflow.com/questions/67928140/isc-dhcp-server-status-failed-failed-with-result-exit-code) and look at the related logs for that service.

Thanks  
Shawn

---

<div class="post-metadata">

**Author:** ![Idos](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/idos/32/3887_2.png) [@Idos](https://discuss.pynq.io/u/Idos)\
**Post date:** [October 31, 2022, 11:45am UTC](https://discuss.pynq.io/t/cannot-access-jupyter-after-porting-from-prebuilt-for-zcu670/4828/15 "2022-10-31T11:45:56Z")

</div>

Hey Shawn,

Thanks for the quick response and the effort to help.  
 ![isc_dhcp_ipv4](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/0/028cfefb4fc05ae81d238d209b5a15197f246264.jpeg)  
I’ve followed the StackOverflow thread. very helpful and fixed the problem of the service for IPv4.

However, there is still hanging when I ssh into the board or try to call the IP from the browser.

---

<div class="post-metadata">

**Author:** ![skalade](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/skalade/32/686_2.png) [@skalade](https://discuss.pynq.io/u/skalade)\
**Post date:** [October 31, 2022, 12:15pm UTC](https://discuss.pynq.io/t/cannot-access-jupyter-after-porting-from-prebuilt-for-zcu670/4828/16 "2022-10-31T12:15:58Z")

</div>

This looks like it is becoming a general networking problem. Could it be a firewall issue as Mario suggested earlier?

Does `ifconfig` return a good ip address? Can you access the internet from the board? If you try to ssh into the board with extra verbose flags e.g. `ssh xilinx@board_ip -vvv` maybe the log messages will give some hints as to why it’s hanging.

Thanks  
Shawn

---

<div class="post-metadata">

**Author:** ![Idos](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/idos/32/3887_2.png) [@Idos](https://discuss.pynq.io/u/Idos)\
**Post date:** [October 31, 2022, 12:27pm UTC](https://discuss.pynq.io/t/cannot-access-jupyter-after-porting-from-prebuilt-for-zcu670/4828/17 "2022-10-31T12:27:08Z")

</div>

Hey Shawn,  
Thanks again for the quick response.

![ifconfig](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/3/3447dfb4efc40514aac8ba4345ba197c7c2b8af1.jpeg)  
**it seems to me boards having IP.**  
**ping to 8.8.8.8(google) returns packets.**

 ![succes_self_ssh](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/f/f89eb5febc6fc172fb33af48b3f7c032b83692e7.jpeg)  
Self ssh works as well.

🤷‍♂️
