View Revisions: Issue #5795

Summary 0005795: zonemaster cannot access namestore in multi-user setup
Revision 2019-07-07 02:08 by lurchi
Description When I run GNUnet in the multi-user setup (system services started as user gnunet, user services started as my user) I see this in the logs of the system services:

```shell
Jul 06 20:58:07-984198 util-31247 DEBUG Asked to $-expand $GNUNET_USER_RUNTIME_DIR/gnunet-service-namestore.sock
Jul 06 20:58:07-984230 util-31247 DEBUG Split into `GNUNET_USER_RUNTIME_DIR' and `gnunet-service-namestore.sock' with default (null)
Jul 06 20:58:07-984258 util-31247 DEBUG Asked to $-expand ${TMPDIR:-${TMP:-/tmp}}/gnunet-${USERHOME:-${USER:-user}}-runtime/
Jul 06 20:58:07-984283 util-31247 DEBUG Split into `TMPDIR' and `/gnunet-${USERHOME:-${USER:-user}}-runtime/' with default ${TMP:-/tmp}
Jul 06 20:58:07-984307 util-31247 DEBUG Asked to $-expand ${TMP:-/tmp}
Jul 06 20:58:07-984329 util-31247 DEBUG Split into `TMP' and `' with default /tmp
Jul 06 20:58:07-984353 util-31247 DEBUG Asked to $-expand /tmp
Jul 06 20:58:07-984443 util-31247 DEBUG Doesn't start with $ - not expanding
Jul 06 20:58:07-984479 util-31247 DEBUG Asked to $-expand ${USERHOME:-${USER:-user}}-runtime/
Jul 06 20:58:07-984503 util-31247 DEBUG Split into `USERHOME' and `-runtime/' with default ${USER:-user}
Jul 06 20:58:07-984529 util-31247 DEBUG Asked to $-expand ${USER:-user}
Jul 06 20:58:07-984552 util-31247 DEBUG Split into `USER' and `' with default user
Jul 06 20:58:07-984671 util-client-31247 DEBUG Failed to establish connection to `namestore', no further addresses to try, will try again in 262 s.
```

This output is generated by the zonemaster service (I enabled debug output there). The result is that records that I add using ``gnunet-namestore`` are not published in GNS. I saw that the namestore service is run per user, so how can zonemaster, which runs once per system, access it? When I run only one namestore service per system, by changing the two options below, everything works as expected.

```shell
[namestore]
RUN_PER_USER = NO
UNIXPATH = $GNUNET_RUNTIME_DIR/gnunet-service-namestore.sock
```

Is it ok to run the namestore service like this? We should change it in the default config then.
Revision 2019-07-07 02:07 by lurchi
Description When I run GNUnet in the multi-user setup (system services started as user gnunet, user services started as my user) I see this in the logs of the system services:

```shell
Jul 06 20:58:07-984198 util-31247 DEBUG Asked to $-expand $GNUNET_USER_RUNTIME_DIR/gnunet-service-namestore.sock
Jul 06 20:58:07-984230 util-31247 DEBUG Split into `GNUNET_USER_RUNTIME_DIR' and `gnunet-service-namestore.sock' with default (null)
Jul 06 20:58:07-984258 util-31247 DEBUG Asked to $-expand ${TMPDIR:-${TMP:-/tmp}}/gnunet-${USERHOME:-${USER:-user}}-runtime/
Jul 06 20:58:07-984283 util-31247 DEBUG Split into `TMPDIR' and `/gnunet-${USERHOME:-${USER:-user}}-runtime/' with default ${TMP:-/tmp}
Jul 06 20:58:07-984307 util-31247 DEBUG Asked to $-expand ${TMP:-/tmp}
Jul 06 20:58:07-984329 util-31247 DEBUG Split into `TMP' and `' with default /tmp
Jul 06 20:58:07-984353 util-31247 DEBUG Asked to $-expand /tmp
Jul 06 20:58:07-984443 util-31247 DEBUG Doesn't start with $ - not expanding
Jul 06 20:58:07-984479 util-31247 DEBUG Asked to $-expand ${USERHOME:-${USER:-user}}-runtime/
Jul 06 20:58:07-984503 util-31247 DEBUG Split into `USERHOME' and `-runtime/' with default ${USER:-user}
Jul 06 20:58:07-984529 util-31247 DEBUG Asked to $-expand ${USER:-user}
Jul 06 20:58:07-984552 util-31247 DEBUG Split into `USER' and `' with default user
Jul 06 20:58:07-984671 util-client-31247 DEBUG Failed to establish connection to `namestore', no further addresses to try, will try again in 262 s.
```

The result is that records that I add using ``gnunet-namestore`` are not published in GNS. I saw that the namestore service is run per user, so how can zonemaster, which runs once per system, access it? When I run only one namestore service per system, by changing the two options below, everything works as expected.

```shell
[namestore]
RUN_PER_USER = NO
UNIXPATH = $GNUNET_RUNTIME_DIR/gnunet-service-namestore.sock
```

Is it ok to run the namestore service like this? We should change it in the default config then.
Revision 2019-07-07 02:06 by lurchi
Description When I run GNUnet in the multi-user setup (system services started as user gnunet, user services started as my user) I see this in the logs of the system services:

> Jul 06 20:58:07-984198 util-31247 DEBUG Asked to $-expand $GNUNET_USER_RUNTIME_DIR/gnunet-service-namestore.sock
> Jul 06 20:58:07-984230 util-31247 DEBUG Split into `GNUNET_USER_RUNTIME_DIR' and `gnunet-service-namestore.sock' with default (null)
> Jul 06 20:58:07-984258 util-31247 DEBUG Asked to $-expand ${TMPDIR:-${TMP:-/tmp}}/gnunet-${USERHOME:-${USER:-user}}-runtime/
> Jul 06 20:58:07-984283 util-31247 DEBUG Split into `TMPDIR' and `/gnunet-${USERHOME:-${USER:-user}}-runtime/' with default ${TMP:-/tmp}
> Jul 06 20:58:07-984307 util-31247 DEBUG Asked to $-expand ${TMP:-/tmp}
> Jul 06 20:58:07-984329 util-31247 DEBUG Split into `TMP' and `' with default /tmp
> Jul 06 20:58:07-984353 util-31247 DEBUG Asked to $-expand /tmp
> Jul 06 20:58:07-984443 util-31247 DEBUG Doesn't start with $ - not expanding
> Jul 06 20:58:07-984479 util-31247 DEBUG Asked to $-expand ${USERHOME:-${USER:-user}}-runtime/
> Jul 06 20:58:07-984503 util-31247 DEBUG Split into `USERHOME' and `-runtime/' with default ${USER:-user}
> Jul 06 20:58:07-984529 util-31247 DEBUG Asked to $-expand ${USER:-user}
> Jul 06 20:58:07-984552 util-31247 DEBUG Split into `USER' and `' with default user
> Jul 06 20:58:07-984671 util-client-31247 DEBUG Failed to establish connection to `namestore', no further addresses to try, will try again in 262 s.

The result is that records that I add using ``gnunet-namestore`` are not published in GNS. I saw that the namestore service is run per user, so how can zonemaster, which runs once per system, access it? When I run only one namestore service per system, by changing the two options below, everything works as expected.

```shell
[namestore]
RUN_PER_USER = NO
UNIXPATH = $GNUNET_RUNTIME_DIR/gnunet-service-namestore.sock
```

Is it ok to run the namestore service like this? We should change it in the default config then.
Revision 2019-07-07 02:04 by lurchi
Description When I run GNUnet in the multi-user setup (system services started as user gnunet, user services started as my user) I see this in the logs of the system services:

```shell
ul 06 20:58:07-984198 util-31247 DEBUG Asked to $-expand $GNUNET_USER_RUNTIME_DIR/gnunet-service-namestore.sock
Jul 06 20:58:07-984230 util-31247 DEBUG Split into `GNUNET_USER_RUNTIME_DIR' and `gnunet-service-namestore.sock' with default (null)
Jul 06 20:58:07-984258 util-31247 DEBUG Asked to $-expand ${TMPDIR:-${TMP:-/tmp}}/gnunet-${USERHOME:-${USER:-user}}-runtime/
Jul 06 20:58:07-984283 util-31247 DEBUG Split into `TMPDIR' and `/gnunet-${USERHOME:-${USER:-user}}-runtime/' with default ${TMP:-/tmp}
Jul 06 20:58:07-984307 util-31247 DEBUG Asked to $-expand ${TMP:-/tmp}
Jul 06 20:58:07-984329 util-31247 DEBUG Split into `TMP' and `' with default /tmp
Jul 06 20:58:07-984353 util-31247 DEBUG Asked to $-expand /tmp
Jul 06 20:58:07-984443 util-31247 DEBUG Doesn't start with $ - not expanding
Jul 06 20:58:07-984479 util-31247 DEBUG Asked to $-expand ${USERHOME:-${USER:-user}}-runtime/
Jul 06 20:58:07-984503 util-31247 DEBUG Split into `USERHOME' and `-runtime/' with default ${USER:-user}
Jul 06 20:58:07-984529 util-31247 DEBUG Asked to $-expand ${USER:-user}
Jul 06 20:58:07-984552 util-31247 DEBUG Split into `USER' and `' with default user
Jul 06 20:58:07-984671 util-client-31247 DEBUG Failed to establish connection to `namestore', no further addresses to try, will try again in 262 s.
```

The result is that records that I add using ``gnunet-namestore`` are not published in GNS. I saw that the namestore service is run per user, so how can zonemaster, which runs once per system, access it? When I run only one namestore service per system, by changing the two options below, everything works as expected.

``` shell
[namestore]
RUN_PER_USER = NO
UNIXPATH = $GNUNET_RUNTIME_DIR/gnunet-service-namestore.sock
```

Is it ok to run the namestore service like this? We should change it in the default config then.
Revision 2019-07-07 02:03 by lurchi
Description When I run GNUnet in the multi-user setup (system services started as user gnunet, user services started as my user) I see this in the logs of the system services:

``` shell
ul 06 20:58:07-984198 util-31247 DEBUG Asked to $-expand $GNUNET_USER_RUNTIME_DIR/gnunet-service-namestore.sock
Jul 06 20:58:07-984230 util-31247 DEBUG Split into `GNUNET_USER_RUNTIME_DIR' and `gnunet-service-namestore.sock' with default (null)
Jul 06 20:58:07-984258 util-31247 DEBUG Asked to $-expand ${TMPDIR:-${TMP:-/tmp}}/gnunet-${USERHOME:-${USER:-user}}-runtime/
Jul 06 20:58:07-984283 util-31247 DEBUG Split into `TMPDIR' and `/gnunet-${USERHOME:-${USER:-user}}-runtime/' with default ${TMP:-/tmp}
Jul 06 20:58:07-984307 util-31247 DEBUG Asked to $-expand ${TMP:-/tmp}
Jul 06 20:58:07-984329 util-31247 DEBUG Split into `TMP' and `' with default /tmp
Jul 06 20:58:07-984353 util-31247 DEBUG Asked to $-expand /tmp
Jul 06 20:58:07-984443 util-31247 DEBUG Doesn't start with $ - not expanding
Jul 06 20:58:07-984479 util-31247 DEBUG Asked to $-expand ${USERHOME:-${USER:-user}}-runtime/
Jul 06 20:58:07-984503 util-31247 DEBUG Split into `USERHOME' and `-runtime/' with default ${USER:-user}
Jul 06 20:58:07-984529 util-31247 DEBUG Asked to $-expand ${USER:-user}
Jul 06 20:58:07-984552 util-31247 DEBUG Split into `USER' and `' with default user
Jul 06 20:58:07-984671 util-client-31247 DEBUG Failed to establish connection to `namestore', no further addresses to try, will try again in 262 s.
```

The result is that records that I add using ``gnunet-namestore`` are not published in GNS. I saw that the namestore service is run per user, so how can zonemaster, which runs once per system, access it? When I run only one namestore service per system, by changing the two options below, everything works as expected.

``` shell
[namestore]
RUN_PER_USER = NO
UNIXPATH = $GNUNET_RUNTIME_DIR/gnunet-service-namestore.sock
```

Is it ok to run the namestore service like this? We should change it in the default config then.