Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Namaara Racheal
    @RachealN
    it gives me this apache2: no process found which i assume is okay, like it is what we want at this point
    so what i do from here
    i start it again or ??
    Hrvoje Bogner
    @hbogner
    try
    it it's the same error you need to find what is using port 80
    Namaara Racheal
    @RachealN
    i tried to start it again and i get Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
    Hrvoje Bogner
    @hbogner
    if there is still error: allready in use, could not bind to address ...:80 the something else is using that port
    Namaara Racheal
    @RachealN

    here are the details
    ` apache2.service - The Apache HTTP Server
    Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
    Drop-In: /lib/systemd/system/apache2.service.d
    └─apache2-systemd.conf
    Active: failed (Result: exit-code) since Sat 2020-04-04 17:46:36 EAT; 1min 3s ago
    Process: 4455 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCESS)
    Process: 17677 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
    Main PID: 927 (code=exited, status=0/SUCCESS)

    Apu 04 17:46:36 racheal-HP-EliteBook-840-G3 systemd[1]: Starting The Apache HTTP Server...
    Apu 04 17:46:36 racheal-HP-EliteBook-840-G3 apachectl[17677]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
    Apu 04 17:46:36 racheal-HP-EliteBook-840-G3 apachectl[17677]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
    Apu 04 17:46:36 racheal-HP-EliteBook-840-G3 apachectl[17677]: no listening sockets available, shutting down
    Apu 04 17:46:36 racheal-HP-EliteBook-840-G3 apachectl[17677]: AH00015: Unable to open logs
    Apu 04 17:46:36 racheal-HP-EliteBook-840-G3 apachectl[17677]: Action 'start' failed.
    Apu 04 17:46:36 racheal-HP-EliteBook-840-G3 apachectl[17677]: The Apache error log may have more information.
    Apu 04 17:46:36 racheal-HP-EliteBook-840-G3 systemd[1]: apache2.service: Control process exited, code=exited status=1
    Apu 04 17:46:36 racheal-HP-EliteBook-840-G3 systemd[1]: apache2.service: Failed with result 'exit-code'.
    Apu 04 17:46:36 racheal-HP-EliteBook-840-G3 systemd[1]: Failed to start The Apache HTTP Server.`

    Yes, I still get the same damn error
    Hrvoje Bogner
    @hbogner

    netstat -lpn | grep 80

    and if you see something like
    tcp 0 0.0.0.0:80 0.0.0.0: LISTEN -
    tcp6 0 0 :::80 :::
    LISTEN -
    then there is something else using that port and apache can't use it

    Namaara Racheal
    @RachealN
    i get this command not found: netstat
    Hrvoje Bogner
    @hbogner
    ah, then you dont have it installed
    Namaara Racheal
    @RachealN
    okay, let me install it first and i get back to you
    afer running this netstat -lpn | grep 80
    output
    (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp6 0 0 :::80 :::* LISTEN - unix 2 [ ACC ] STREAM LISTENING 1280 - /run/systemd/private unix 2 [ ACC ] STREAM LISTENING 25805 - /run/snapd.socket unix 2 [ ACC ] STREAM LISTENING 25807 - /run/snapd-snap.socket unix 2 [ ACC ] STREAM LISTENING 25809 - /var/run/dbus/system_bus_socket unix 2 [ ACC ] STREAM LISTENING 45188 - @/containerd-shim/moby/47e3269504e8e9bfec9d5a8cde2716d640a80c31e2eada8bd887b00cf0811e22/shim.sock@ unix 2 [ ACC ] STREAM LISTENING 25801 - /var/run/docker.sock unix 2 [ ACC ] STREAM LISTENING 36981 - /var/run/docker/libnetwork/749bef3b9efc206dd570803c1200b05eeb15cf9c74e958441c7d3097db76634e.sock unix 2 [ ACC ] STREAM LISTENING 45106 - @/containerd-shim/moby/b34fc16dad5b134525d88484bc25b80f608825e03614a45f29be5e4f1129705e/shim.sock@ unix 2 [ ACC ] STREAM LISTENING 25803 - /run/acpid.socket
    Hrvoje Bogner
    @hbogner
    run it with sudo, forgot to say that :)
    but something is using port 80
    tcp6 0 0 :::80 :::* LISTEN
    Namaara Racheal
    @RachealN
    i did, it gives me the same results
    Hrvoje Bogner
    @hbogner
    sudo ps aux | grep apache
    Namaara Racheal
    @RachealN
    i get this racheal 22129 0.0 0.0 21540 988 pts/0 S+ 18:03 0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn apache
    Hrvoje Bogner
    @hbogner
    ok, I'm puzzled now, don't know what is still using it
    sorry i couldn't help more
    Namaara Racheal
    @RachealN
    its okay, i understand. thanks for trying . You tried your best
    Hrvoje Bogner
    @hbogner
    do you maybe know the best way to install ushahidi on my own server?
    Sameroom
    @sameroom-bot
    [Angela Oduor Lungati, Ushahidi] tagging @Unknown and @romina for when they’re back online to help with hbogber’s install issues
    Namaara Racheal
    @RachealN
    I am wondering what caused this error. At first, I cloned the project and set up everything and it was working perfectly fine. I was even accessing the API using the same port 80, then later alone I couldn't push my code because of authorization issues. so deleted the project, forked and cloned it again, and started the set-up afresh and that's when it started acting up. I am wondering what did I miss out this around
    Hrvoje Bogner
    @hbogner
    https://docs.ushahidi.com/platform-developer-documentation/getting-started/setup_alternatives/platform_release_install
    reports "Page not foundSorry, but the page you were looking for could not be found."
    https://docs.ushahidi.com/platform-developer-documentation/development-and-code/setup_alternatives/platform_release_install has some missing data, i download 4.4.1 from github, but how is apache configured, where is storage/{logs,app,framework} located...
    Namaara Racheal
    @RachealN
    Am not getting you clearly
    do i have to change my apache configurations or something??
    Hrvoje Bogner
    @hbogner
    @RachealN i'm having troubles with installing ushahidi on my server, nothing related to your problem
    Hrvoje Bogner
    @hbogner
    Namaara Racheal
    @RachealN
    Am using docker set-up, follow this link to get you started ushahidi/platform#3888. find the guideline on that issue
    Hrvoje Bogner
    @hbogner
    no wonder i wasconfused and missing some files :)
    going for a fresh server install :)
    Namaara Racheal
    @RachealN
    Hahahaaa You are not stupid
    Okay
    Hrvoje Bogner
    @hbogner
    switching back to debian now, development setup was for ubuntu
    Namaara Racheal
    @RachealN
    okay
    Namaara Racheal
    @RachealN
    apache2.png
    @hbogner , check that out, at least now I was able to get the port that it is listening to, i think now that some progress
    Anjorin Olufemi Benjamin
    @anje123

    Please where am i getting it wrong i try to send a post request from POSTMAN to the
    /api/v3/posts endpoint , and also have my authorization token from the Get an bearer authorization code for a user /oauth/token endpoint inputed But still getting the error

    (1/1) HttpException
    User 2 is not allowed to create resource posts #0

    Lenin Paulino
    @leninpaulino
    Hi @RachealN, do you still have issues running apache? If so, can you send the logs? cat /var/log/apache2/error.log
    Maybe I could help
    Also, are you running the platform directly in Ubuntu?
    Lenin Paulino
    @leninpaulino
    Copies of the .conf files in the /etc/apache2/ directory could help too, especially ports.conf, httpd.conf etc
    Hrvoje Bogner
    @hbogner
    aaah finaly got it running :)
    coulednt make 4.4.1 run, but 4.4.0 runs ok, all from https://github.com/ushahidi/platform-release/releases
    is there a way to add custom maps instead those 3 base layers?
    Hrvoje Bogner
    @hbogner
    i provide my own map tiles and would like to use them, is there an option to do that?