Pydio cells not working


#29

Hi,
i want to be sure about this one but could you ping this address from your own computer (i want to make sure that external access is working)

(the inet in eno1)


#30

I am able to ping my real server IP address just fine.


#31

Hi,
sorry for the delay,
would you mind running this command curl ifconfig.me and telling me if the ip resulted from this command is different than this one?

I know that i seem repetitive on this point but i want to be sure about another detail.

Regards


#32

Hi,
i had a feedback from one of our devs that tested on OVH and here’s why there might be an issue with your OVH server:

Simply note that due to the use of Micro and the chosen registry / messaging system (see above), you must have a private local network interface for the system to run. It is usually the case by default on all servers, but on some cheap VPS (typically hosted by OVH) you have to explicitely add a virtual interface


#33

I also encountered the same issue.
cells showed as below:


panic: runtime error: invalid memory address or nil pointer dereference

[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xf8b90a]

goroutine 262 [running]:

github.com/pydio/cells/vendor/github.com/micro/go-web.(*service).Init(0xc424780f00, 0xc424776080, 0x8, 0x8, 0x24, 0x1)

/opt/teamcity/agent/work/b7c550f2c973b54c/src/github.com/pydio/cells/vendor/github.com/micro/go-web/service.go:298 +0x31a

github.com/pydio/cells/common/service.WithWeb.func1.2(0x6cead80, 0xc4247d0600, 0x30ac540, 0xc422198aa0)

/opt/teamcity/agent/work/b7c550f2c973b54c/src/github.com/pydio/cells/common/service/service-web.go:80 +0x529

github.com/pydio/cells/common/service.(*service).Start(0xc4247d0600)

/opt/teamcity/agent/work/b7c550f2c973b54c/src/github.com/pydio/cells/common/service/service.go:370 +0x1fe

created by github.com/pydio/cells/cmd.glob..func27

/opt/teamcity/agent/work/b7c550f2c973b54c/src/github.com/pydio/cells/cmd/services-start.go:150 +0xa3

System: Debian GNU/Linux 9.6 (stretch)


1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:16:3c:5d:1c:98 brd ff:ff:ff:ff:ff:ff
    inet 192.3.176.179/25 brd 192.3.176.255 scope global ens3
       valid_lft forever preferred_lft forever
    inet6 fe80::216:3cff:fe5d:1c98/64 scope link 
       valid_lft forever preferred_lft forever

$ free -m
              total        used        free      shared  buff/cache   available
Mem:           3955         429        2373           5        1152        3289
Swap:          7628           0        7628

$ df -m
Filesystem            1M-blocks  Used Available Use% Mounted on
udev                       1967     0      1967   0% /dev
tmpfs                       396     6       391   2% /run
/dev/sda3                 47661  1435     46227   4% /
tmpfs                      1978     0      1978   0% /dev/shm
tmpfs                         5     0         5   0% /run/lock
tmpfs                      1978     0      1978   0% /sys/fs/cgroup
/dev/mapper/data-var     476604   887    475718   1% /var
/dev/mapper/data-home    953207  1080    952128   1% /home
/dev/mapper/data-srv    1906417  1945   1904473   1% /srv
/dev/sda1                   484    60       425  13% /boot
tmpfs                       396     0       396   0% /run/user/1000

What other infos should I provide?


#34

Hi,
could you tell me the informations that you provided during the installation process,
also is it a vps, selfhosted server or anything else i would like to know the setup.


#35

Hi,

I installed cells on VPS (KVM), and installation process as below.
But database is empty…

$ /usr/local/pydio/cells install

[Configs] Upgrading: setting default config services/pydio.grpc.auth/dex/issuer to /auth/dex

[Configs] successfully saved config after upgrade - Reloading from source

**Welcome to Pydio Cells Home Edition installation**

Pydio Cells Home Edition will be configured to run on this machine. Make sure to prepare the following data

 - IPs and ports for binding the webserver to outside world

 - MySQL 5.6+ (or MariaDB equivalent) server access

Pick your installation mode when you are ready.

✔ Command line (performed in this terminal)

Cannot find vaultKeyPath, creating new one /srv/pydio/.config/pydio/cells/cells-vault-key

**************************************************************

Warning! A keyring is not found on this machine,

  A Master Key has been created for cyphering secrets

It has been stored in /srv/pydio/.config/pydio/cells/cells-vault-key

Please make sure to secure this file and update the configs

with its new location, under the defaults/keyPath key.

***************************************************************

✔ localhost:8080

**✔** **External Host (used to access this machine from outside world if it differs from Bind Host):** https://leafia.org

✔ Disable SSL (not recommended)

**## Database Connection**

✔ Socket

**✔** **Socket File:** /var/run/mysqld/mysqld.sock

**✔** **Database Name:** cells

**✔** **Database User:** pydio

**✔** **Database Password (leave empty if not needed):** ********************************

✔ Successfully connected to the database

**## Frontend Configuration**

**✔** **Admin Login (leave passwords empty if an admin is already created):** mzch

**✔** **Admin Password:** ********************************

**✔** **Confirm Password:** ********************************

**## Advanced Settings**

**✗** **There are some advanced settings for ports and initial data storage. Do you want to edit them:**  

**## Performing Installation**

2019-01-11T11:07:52.273-0500 INFO Starting installation now {"bindUrl": "http://localhost:8080"}

✔ Created main database

✔ Created default datasources

✔ Configuration of gateway services

✔ Creation of logs directory

✔ **Installation Finished: please restart with '/usr/local/pydio/cells start' command**

p.s.
if selecting Browser-based, cells crashed by the same cause, SIGSEGV.


#36

I installed cells on another VPS. It has succeeded in installing and starting. What is the difference about?


#37

Hi,
i don’t have enough knowledge about networking, but it could be related to the VPS not providing you with an interface with a private ip.

We are going to post a blog that will clarify all of this, i know it’s confusing sometimes (even for me).


#38

I added dummy interface with private IP (192.168.0.1), then I can start cells without problem. Why does cells need such a private address? Bug?


#39

I read the source code on Github.com. cells checks whether there is an interface with a private IP or not around 47-49 in extractor.go. As a result, if the machine doesn’t have any private IPs like my VPS, func extractAddress() returns error, and func genSrv() returns nil, but func Init() in service.go does not check a returned value, so it causes Segmentation Fault. This is an obvious bug.

Perhaps, updating micro/go-web to the latest if possible, this bug might be fixed.


#40

I have same problem on:

  • CentOS 7
  • RAM 8gb

Cells version 1.2.5

Pydio Cells Home Edition will be configured to run on this machine. Make sure to prepare the following data

  • IPs and ports for binding the webserver to outside world
  • MySQL 5.6+ (or MariaDB equivalent) server access
    Pick your installation mode when you are ready.

:heavy_check_mark: Browser-based (requires a browser access)
:heavy_check_mark: 172.168.1.21:8080
:heavy_check_mark: External Host (used to access this machine from outside world if it differs from Bind Host): 172.168.1.21:8080
:heavy_check_mark: Disable SSL (not recommended)
About to launch browser install, install URLs:
internal: http://172.168.1.21:8080
external: http://172.168.1.21:8080
2019-01-16T12:37:30.251+0700 INFO Extracted 59 files for a total size of 12438856
2019-01-16T12:37:31.258+0700 INFO pydio.gateway.rest started
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xf8b90a]


#41

How to add “dummy interface with private IP” on CentOS 7?


#42

I’m not familiar with CentOS…but I think this article is of some help, https://www.centos.org/forums/viewtopic.php?t=53233


#43

This work for CentOS7 https://www.networks.guru/2018/01/27/creating-a-dummy-interface-on-a-linux-unix-based-systems/

thanks…


#44

Hi there, i have the same problem with debian9 - mysql-server 5.7.25.1debian9
ulimit -n 8162 id
uid=1001(pydio) gid=1001(pydio) groups=1001(pydio)

$ ./cells install

Welcome to Pydio Cells Home Edition installation
Pydio Cells Home Edition will be configured to run on this machine. Make sure to prepare the following data

  • IPs and ports for binding the webserver to outside world
  • MySQL 5.6+ (or MariaDB equivalent) server access
    Pick your installation mode when you are ready.

:heavy_check_mark: Command line (performed in this terminal)
:heavy_check_mark: 144.210.32.31:8080
:heavy_check_mark: External Host (used to access this machine from outside world if it differs from Bind Host): 144.210.32.31:8080
:heavy_check_mark: Disable SSL (not recommended)

Database Connection

:heavy_check_mark: TCP
:heavy_check_mark: Database Hostname: localhost
:heavy_check_mark: Database Port: 3306
:heavy_check_mark: Database Name: cells
:heavy_check_mark: Database User: pydio
:heavy_check_mark: Database Password (leave empty if not needed): ********
:heavy_check_mark: Successfully connected to the database

Frontend Configuration

:heavy_check_mark: Admin Login (leave passwords empty if an admin is already created): admin
:heavy_check_mark: Admin Password: ********
:heavy_check_mark: Confirm Password: ********

Advanced Settings

✗ There are some advanced settings for ports and initial data storage. Do you want to edit them:

Performing Installation

2019-01-22T17:49:03.342+0100 INFO Starting installation now {“bindUrl”: “(http)://144.210.32.31:8080”}
:heavy_check_mark: Created main database
:heavy_check_mark: Created default datasources
:heavy_check_mark: Configuration of gateway services
:heavy_check_mark: Creation of logs directory

:heavy_check_mark: Installation Finished: please restart with ‘./cells start’ command

$ ./cells start
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xf8b90a]

goroutine 276 [running]:
/pydio/cells/vendor/github.com/micro/go-web.(*service).Init(0xc424861680, 0xc424932cc0, 0x8, 0x8, 0x24, 0x1)
/opt/teamcity/agent/work/b7c550f2c973b54c/src/github.com/pydio/cells/vendor/github.com/micro/go-web/service.go:298 +0x31a
github.com/pydio/cells/common/service.WithWeb.func1.2(0x6cead80, 0xc4248e1800, 0x0, 0x0)
/opt/teamcity/agent/work/b7c550f2c973b54c/src/github.com/pydio/cells/common/service/service-web.go:80 +0x529
/pydio/cells/common/service.(*service).Start(0xc4248e1800)
/opt/teamcity/agent/work/b7c550f2c973b54c/src/github.com/pydio/cells/common/service/service.go:370 +0x1fe
created by github.com/pydio/cells/cmd.glob..func27
/opt/teamcity/agent/work/b7c550f2c973b54c/src/github.com/pydio/cells/cmd/services-start.go:150 +0xa3

Any idea ?
Many thanks


#45

Hi,
could you tell me the type of your installation, vps, virtual machine, … ?
and also do you have a private interface on your server?


#46

Hi zayan, many thanks for the prompt reply.
Well, looks like a secondary network interface iwith an IP address is fully necessary to start cells for transparent proxy reason …

I have created a new one on the server and just now can start it :slight_smile:

Basically this server is a vmware box running over a ESX’s cluster.

We use to have NAT’s for host in DMZ - i’m new with this new code and starting project to move all our pydio plateforms (not so far from 25)

I will keep you in touch sure :wink:

Regards,

Stef


#47

Hi,

Cells requires at least one private IP because one of its services - NAT requires this address. NAT is mostly for internal communication between services so it does not run with public IP. https://medium.com/@hansonkd/nats-the-secret-to-microservices-in-go-and-python-that-scale-without-complexity-620f7ca66cc1


#48

Well, but I think it can be a loopback address, not any other private address…can’t it? Actually the latest micro/go-web will use a loopback address if there is no private addresses.