after install (direct install) successfully,how to verify install or access what Ip address?

Questions, comments, discussions. Over time certain topics might be moved to their own category.
Post Reply
starhqking
Posts: 6
Joined: Mon Dec 30, 2019 4:51 am

after install (direct install) successfully,how to verify install or access what Ip address?

Post by starhqking »

Code: Select all

Installing package: Toastr (=2.1.4)... Downloading... Verifying... Extracting... Patching files... Complete.
Installing package: URI.js (=1.19.1)... Downloading... Verifying... Extracting... Patching files... Complete.
Installing package: chart.js (=2.7.2)... Downloading... Verifying... Extracting... Patching files... Complete.
Installing package: dropzone (=5.4.0)... Downloading... Verifying... Extracting... Patching files... Complete.
Installing package: jQuery (=3.4.1)... Downloading... Verifying... Extracting... Patching files... Complete.
Installing package: jQuery Lazy Load (=1.9.3)... Downloading... Verifying... Extracting... Patching files... Complete.
Installing package: jquery-cropper (=1.0.0)... Downloading... Verifying... Extracting... Patching files... Complete.
Installing package: jstree (=3.3.3)... Downloading... Verifying... Extracting... Patching files... Complete.
Installing package: Lato font ... Downloading... Extracting... Complete.
Superuser created successfully.
(mayan-edms) root@hqking-virtual-machine:/opt/mayan-edms/bin# sudo echo "maxmemory-policy allkeys-lru" >> /etc/redis/redis.conf
(mayan-edms) root@hqking-virtual-machine:/opt/mayan-edms/bin# sudo echo "save \"\"" >> /etc/redis/redis.conf
(mayan-edms) root@hqking-virtual-machine:/opt/mayan-edms/bin# sudo echo "databases 2" >> /etc/redis/redis.conf
(mayan-edms) root@hqking-virtual-machine:/opt/mayan-edms/bin# sudo systemctl restart redis
(mayan-edms) root@hqking-virtual-machine:/opt/mayan-edms/bin# ps -e|grep redis
 33035 ?        00:00:00 redis-server
I can't access the http://myIp or http://localhost or http:127.0.0.1

what should I do ? thanks. :?:

User avatar
rssfed23
Moderator
Moderator
Posts: 191
Joined: Mon Oct 14, 2019 1:18 pm
Location: United Kingdom
Contact:

Re: after install (direct install) successfully,how to verify install or access what Ip address?

Post by rssfed23 »

Hi Starhqking.

That all looks good to me.

After you've ran the initialsetup script have you done step 10 (the preparestatic command), 11 (create the supervisor config)?

Step 13 is the step that starts mayan with "systemctl start supervisor"

Once you've done that, you access mayan on http://<ipaddress>:8000 - note the :8000 (mayan runs on port 8000 not 80)

Rob
Please don't PM for general support; start a new thread with your issue instead.

starhqking
Posts: 6
Joined: Mon Dec 30, 2019 4:51 am

Re: after install (direct install) successfully,how to verify install or access what Ip address?

Post by starhqking »

Thank you,rssfed23. I do excuze the commond. but It's not works.

############################################
(mayan-edms) root@hqking-virtual-machine:/home/hqking# systemctl enable supervisor
Synchronizing state of supervisor.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable supervisor
(mayan-edms) root@hqking-virtual-machine:/home/hqking# systemctl restart supervisor
(mayan-edms) root@hqking-virtual-machine:/home/hqking# /lib/systemd/systemd-sysv-install enable supervisor
(mayan-edms) root@hqking-virtual-machine:/home/hqking# systemctl restart supervisor
###########################################

my ip is 192.168.28.134

I access use http://192.168.28.134:8000,It's refused.

starhqking
Posts: 6
Joined: Mon Dec 30, 2019 4:51 am

Re: after install (direct install) successfully,how to verify install or access what Ip address?

Post by starhqking »

(mayan-edms) root@hqking-virtual-machine:/home/hqking# systemctl status supernisor
Unit supernisor.service could not be found.
(mayan-edms) root@hqking-virtual-machine:/home/hqking# systemctl enable supervisor
Synchronizing state of supervisor.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable supervisor
(mayan-edms) root@hqking-virtual-machine:/home/hqking# /lib/systemd/systemd-sysv-install enable supervisor
(mayan-edms) root@hqking-virtual-machine:/home/hqking# systemctl restart supervisor
(mayan-edms) root@hqking-virtual-machine:/home/hqking# systemctl status supernisor
Unit supernisor.service could not be found.
(mayan-edms) root@hqking-virtual-machine:/home/hqking#

starhqking
Posts: 6
Joined: Mon Dec 30, 2019 4:51 am

Re: after install (direct install) successfully,how to verify install or access what Ip address?

Post by starhqking »

(mayan-edms) root@hqking-virtual-machine:/lib/systemd# systemctl status supervisor
● supervisor.service - Supervisor process control system for UNIX
Loaded: loaded (/lib/systemd/system/supervisor.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2020-01-03 00:42:07 CST; 3min 47s ago
Docs: http://supervisord.org
Main PID: 42051 (supervisord)
Tasks: 1 (limit: 9484)
CGroup: /system.slice/supervisor.service
└─42051 /usr/bin/python /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf

1月 03 00:42:07 hqking-virtual-machine systemd[1]: Started Supervisor process control system for UNIX.
1月 03 00:42:07 hqking-virtual-machine supervisord[42051]: 2020-01-03 00:42:07,763 CRIT Supervisor running as root (no user in config file)
1月 03 00:42:07 hqking-virtual-machine supervisord[42051]: 2020-01-03 00:42:07,763 WARN No file matches via include "/etc/supervisor/conf.d/*.con
1月 03 00:42:07 hqking-virtual-machine supervisord[42051]: 2020-01-03 00:42:07,768 INFO RPC interface 'supervisor' initialized
1月 03 00:42:07 hqking-virtual-machine supervisord[42051]: 2020-01-03 00:42:07,768 CRIT Server 'unix_http_server' running without any HTTP authen
1月 03 00:42:07 hqking-virtual-machine supervisord[42051]: 2020-01-03 00:42:07,768 INFO supervisord started with pid 42051

starhqking
Posts: 6
Joined: Mon Dec 30, 2019 4:51 am

Re: after install (direct install) successfully,how to verify install or access what Ip address?

Post by starhqking »

I think to know mayan use what web server ? I can't find it.

root@hqking-virtual-machine:/etc/init.d# service --status-all | more
[ + ] acpid
[ - ] alsa-utils
[ - ] anacron
[ + ] apparmor
[ + ] apport
[ + ] avahi-daemon
[ - ] bluetooth
[ - ] console-setup.sh
[ + ] cron
[ + ] cups
[ + ] cups-browsed
[ + ] dbus
[ - ] dns-clean
[ + ] gdm3
[ + ] grub-common
[ - ] hwclock.sh
[ + ] irqbalance
[ + ] kerneloops
[ - ] keyboard-setup.sh
[ + ] kmod
[ + ] network-manager
[ + ] networking
[ + ] open-vm-tools
[ - ] plymouth
[ - ] plymouth-log
[ + ] postgresql
[ - ] pppd-dns
[ + ] procps
[ + ] redis-server
[ - ] rsync
[ + ] rsyslog
[ - ] saned
[ + ] speech-dispatcher
[ - ] spice-vdagent
[ + ] ssh
[ + ] supervisor
[ + ] sysstat
[ + ] udev
[ + ] ufw
[ + ] unattended-upgrades
[ + ] uuidd
[ + ] whoopsie
[ - ] x11-common
root@hqking-virtual-machine:/etc/init.d#

User avatar
rssfed23
Moderator
Moderator
Posts: 191
Joined: Mon Oct 14, 2019 1:18 pm
Location: United Kingdom
Contact:

Re: after install (direct install) successfully,how to verify install or access what Ip address?

Post by rssfed23 »

What operating system/platform are you using?

The line WARN No file matches via include "/etc/supervisor/conf.d/*.con tells me that step 11 wasn't executed. It's looking for the mayan.conf file (that tells supervisor how to start the Mayan webserver and all other processes) but it isn't there.

You need to run something like:
sudo -u mayan MAYAN_DATABASES="{'default':{'ENGINE':'django.db.backends.postgresql','NAME':'mayan','PASSWORD':'mayanuserpass','USER':'mayan','HOST':'127.0.0.1'}}" \
MAYAN_MEDIA_ROOT=/opt/mayan-edms/media \
/opt/mayan-edms/bin/mayan-edms.py platformtemplate supervisord | sudo sh -c "cat > /etc/supervisor/conf.d/mayan.conf"


That generates the supervisor configuration file and then mayan should start.

Of course if you installed Mayan in a different location to /opt/mayan-edms then change those directories above to match.

Also if you're just trying Mayan out I would recommend the Docker route as it eliminates these types of issues and is super easy to get started with (https://docs.mayan-edms.com/chapters/do ... imple.html)
Please don't PM for general support; start a new thread with your issue instead.

starhqking
Posts: 6
Joined: Mon Dec 30, 2019 4:51 am

Re: after install (direct install) successfully,how to verify install or access what Ip address?

Post by starhqking »

thanks a lot. get a progress.

Code: Select all

(mayan-edms) hqking@hqking-virtual-machine:/opt/mayan-edms/bin$ sudo -u mayan MAYAN_DATABASES="{'default':{'ENGINE':'django.db.backends.postgresql','NAME':'mayan','PASSWORD':'mayanuserpass','USER':'mayan','HOST':'127.0.0.1'}}" \
> MAYAN_MEDIA_ROOT=/opt/mayan-edms/media \
> /opt/mayan-edms/bin/mayan-edms.py platformtemplate supervisord | sudo sh -c "cat > /etc/supervisor/conf.d/mayan.conf"
[sudo] hqking 的密码: 
(mayan-edms) hqking@hqking-virtual-machine:/opt/mayan-edms/bin$ ls -l /etc/supervisor/conf.d/mayan.conf
-rw-r--r-- 1 root root 2031 1月   3 05:49 /etc/supervisor/conf.d/mayan.conf

(mayan-edms) hqking@hqking-virtual-machine:/opt/mayan-edms/bin$ sudo systemctl restart redis
(mayan-edms) hqking@hqking-virtual-machine:/opt/mayan-edms/bin$ su root
密码: 
root@hqking-virtual-machine:/opt/mayan-edms/bin# ls
activate       activate_this.py  django-admin     easy_install-3.6  gunicorn_paster  mayan-edms.py  pip     __pycache__  python3.6      update-tld-names
activate.csh   celery            django-admin.py  futurize          jsonpointer      pasteurize     pip3    python       python-config  wheel
activate.fish  chardetect        easy_install     gunicorn          jsonschema       pbr            pip3.6  python3      swagger-flex
root@hqking-virtual-machine:/opt/mayan-edms/bin# source activate
(mayan-edms) root@hqking-virtual-machine:/opt/mayan-edms/bin# sudo echo "maxmemory-policy allkeys-lru" >> /etc/redis/redis.conf
(mayan-edms) root@hqking-virtual-machine:/opt/mayan-edms/bin# sudo echo "save \"\"" >> /etc/redis/redis.conf
(mayan-edms) root@hqking-virtual-machine:/opt/mayan-edms/bin# sudo echo "databases 2" >> /etc/redis/redis.conf
(mayan-edms) root@hqking-virtual-machine:/opt/mayan-edms/bin# sudo systemctl restart redis
(mayan-edms) root@hqking-virtual-machine:/opt/mayan-edms/bin# sudo systemctl enable supervisor
Synchronizing state of supervisor.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable supervisor
(mayan-edms) root@hqking-virtual-machine:/opt/mayan-edms/bin# sudo systemctl restart supervisor
(mayan-edms) root@hqking-virtual-machine:/opt/mayan-edms/bin# systemctl status supervisor
● supervisor.service - Supervisor process control system for UNIX
   Loaded: loaded (/lib/systemd/system/supervisor.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2020-01-03 05:53:48 CST; 18s ago
     Docs: http://supervisord.org
  Process: 20412 ExecStop=/usr/bin/supervisorctl $OPTIONS shutdown (code=exited, status=0/SUCCESS)
 Main PID: 20413 (supervisord)
    Tasks: 11 (limit: 9484)
   CGroup: /system.slice/supervisor.service
           ├─20413 /usr/bin/python /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
           ├─20416 /opt/mayan-edms/bin/python3 /opt/mayan-edms/bin/celery worker -A mayan -Ofair -l ERROR -Q statistics,tools,common_periodic,parsing,docu
           ├─20417 /opt/mayan-edms/bin/python3 /opt/mayan-edms/bin/celery worker -A mayan -Ofair -l ERROR -Q default,checkouts_periodic,indexing,signature
           ├─20418 /opt/mayan-edms/bin/python3 /opt/mayan-edms/bin/celery worker -A mayan -Ofair -l ERROR -Q document_states_fast,converter,sources_fast -
           ├─20419 /opt/mayan-edms/bin/python3 /opt/mayan-edms/bin/celery beat -A mayan --pidfile= -l ERROR
           ├─20420 /opt/mayan-edms/bin/python3 /opt/mayan-edms/bin/gunicorn -w 2 mayan.wsgi --max-requests 500 --max-requests-jitter 50 --worker-class syn
           ├─20435 /opt/mayan-edms/bin/python3 /opt/mayan-edms/bin/gunicorn -w 2 mayan.wsgi --max-requests 500 --max-requests-jitter 50 --worker-class syn
           ├─20436 /opt/mayan-edms/bin/python3 /opt/mayan-edms/bin/gunicorn -w 2 mayan.wsgi --max-requests 500 --max-requests-jitter 50 --worker-class syn
           ├─20494 /opt/mayan-edms/bin/python3 /opt/mayan-edms/bin/celery worker -A mayan -Ofair -l ERROR -Q document_states_fast,converter,sources_fast -
           ├─20495 /opt/mayan-edms/bin/python3 /opt/mayan-edms/bin/celery worker -A mayan -Ofair -l ERROR -Q statistics,tools,common_periodic,parsing,docu
           └─20496 /opt/mayan-edms/bin/python3 /opt/mayan-edms/bin/celery worker -A mayan -Ofair -l ERROR -Q default,checkouts_periodic,indexing,signature

1月 03 05:53:50 hqking-virtual-machine supervisord[20413]: 2020-01-03 05:53:50,774 INFO spawned: 'mayan-worker-slow' with pid 20416
1月 03 05:53:50 hqking-virtual-machine supervisord[20413]: 2020-01-03 05:53:50,778 INFO spawned: 'mayan-worker-medium' with pid 20417
1月 03 05:53:50 hqking-virtual-machine supervisord[20413]: 2020-01-03 05:53:50,782 INFO spawned: 'mayan-worker-fast' with pid 20418
1月 03 05:53:50 hqking-virtual-machine supervisord[20413]: 2020-01-03 05:53:50,787 INFO spawned: 'mayan-celery-beat' with pid 20419
1月 03 05:53:50 hqking-virtual-machine supervisord[20413]: 2020-01-03 05:53:50,791 INFO spawned: 'mayan-gunicorn' with pid 20420
1月 03 05:53:52 hqking-virtual-machine supervisord[20413]: 2020-01-03 05:53:52,443 INFO success: mayan-gunicorn entered RUNNING state, process has stayed 
1月 03 05:54:01 hqking-virtual-machine supervisord[20413]: 2020-01-03 05:54:01,461 INFO success: mayan-worker-slow entered RUNNING state, process has stay
1月 03 05:54:01 hqking-virtual-machine supervisord[20413]: 2020-01-03 05:54:01,461 INFO success: mayan-worker-medium entered RUNNING state, process has st
1月 03 05:54:01 hqking-virtual-machine supervisord[20413]: 2020-01-03 05:54:01,461 INFO success: mayan-worker-fast entered RUNNING state, process has stay
1月 03 05:54:01 hqking-virtual-machine supervisord[20413]: 2020-01-03 05:54:01,461 INFO success: mayan-celery-beat entered RUNNING state, process has stay

http://192.168.28.134:8000 likes can access,but last a long time,can't enter the normal login page.......
Attachments
2020-01-03 05-57-02 的屏幕截图.png
2020-01-03 05-57-02 的屏幕截图.png (7.65 KiB) Viewed 356 times

User avatar
rssfed23
Moderator
Moderator
Posts: 191
Joined: Mon Oct 14, 2019 1:18 pm
Location: United Kingdom
Contact:

Re: after install (direct install) successfully,how to verify install or access what Ip address?

Post by rssfed23 »

You need to open it all up in a new tab - you're in a redirect loop as you've refreshed an existing session.

So close chrome, load it up again and try going to http://192.168.28.134:8000
Make sure that there is nothing after :8000

Mayan looks to be running okay - this is now a browser caching window. You can also try in an incognito window to ensure your cache is cleared
Please don't PM for general support; start a new thread with your issue instead.

Post Reply