Nginx config problems

I am trying to config nginx but keep getting errors:

x nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Tue 2023-03-07 10:53:01 CET; 5min ago
    Process: 1349 ExecStart=/usr/bin/nginx -g pid /run/; error_log stderr; (code=exited, status=1/FAILURE)
        CPU: 26ms

Mar 07 10:53:01 raspijaro systemd[1]: Starting A high performance web server and a reverse proxy server...
Mar 07 10:53:01 raspijaro nginx[1349]: 2023/03/07 10:53:01 [emerg] 1349#1349: getpwnam("www-data") failed in /etc/nginx/nginx.conf:1
Mar 07 10:53:01 raspijaro systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Mar 07 10:53:01 raspijaro systemd[1]: nginx.service: Failed with result 'exit-code'.
Mar 07 10:53:01 raspijaro systemd[1]: Failed to start A high performance web server and a reverse proxy server.
]# cat /etc/nginx/nginx.conf
user www-data;
worker_processes 1;
pid /run/;
include /etc/nginx/modules-enabled/*.conf;

events {
  worker_connections 768;

stream {
  ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
  ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;
  ssl_session_cache shared:SSL:1m;
  ssl_session_timeout 4h;
  ssl_protocols TLSv1.2 TLSv1.3;
  ssl_prefer_server_ciphers on;

  include /etc/nginx/streams-enabled/*.conf;


Are you sure you want to use this user? Manjaro is not a Debian based distribution.

If you don’t want to use the default http user, make sure you create the user you want to use and make sure the permissions are correct, since it is not the default.

Not a default on Manjaro, you need to create it.

You are trying to run the webserver as the www-data user, but you don’t have such a user account on your system…

Running a service as any user account that’s not root, is done differently using systemd-service units…

Could you help me on how to create the www-data user with the right permissions?

Try to install the Manjaro version…

I am trying to adapt this guide into manjaro, let’s see how it goes.

What does that have todo with the topic title or Manjaro at all? :thinking:

This guide explains how to set up your own Bitcoin node on a cheap Raspberry Pi. But it works on most hardware platforms because it only uses standard Debian Linux commands.

Don’t mix guides for different operating systems or Linux distro’s, it will not work…
The “ideas” they use can be adapted, but not the programs or configurations they use…

Maybe someone would also be interested and can help me, maybe make a manjaro guide for that use.


It is a total different thing use a client wallet and make a node server. But it gets off-topic now.

Yes there are many roads that lead to the same goal…
A client wallet is completely different as a node server which is totally different as the topic title also.

So lets not derail more…

Feel free to create a separate topic about your goal though…

done, thanks.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.