Gitlab 500 error after fresh installation

danny36

Explorer
Joined
Nov 10, 2022
Messages
55

Attachments

  • Immagine 2022-11-23 203825.png
    Immagine 2022-11-23 203825.png
    24.8 KB · Views: 179

danny36

Explorer
Joined
Nov 10, 2022
Messages
55
someone can help me? is this the best place to ask my problem or there is a plugin forum or site?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
The web server logfile inside the jail might provide some clues. I don't know which HTTP server the plugin uses, so you need to dig around a bit.
 

danny36

Explorer
Joined
Nov 10, 2022
Messages
55
how can I see this log file? i'm not a linux expert. It's strange because in another installation gitlab plugin works.
I need to set the mount point?
 

Attachments

  • Immagine 2022-11-24 133608.png
    Immagine 2022-11-24 133608.png
    21.4 KB · Views: 215

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
You need to ssh into the jail, use ps on the command line or pkg info or look at /etc/rc.conf ... to find which web server is running, then search beneath /var/log for whatever is configured as the log file.

Debugging requires using the command line.
 

danny36

Explorer
Joined
Nov 10, 2022
Messages
55
this is the /etc/rc.conf file
 

Attachments

  • Immagine 2022-11-25 145415.png
    Immagine 2022-11-25 145415.png
    29.5 KB · Views: 208

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
So the web server is nginx. There should be log files in /var/log/nginx.

Please do not post screen shots. Copy & paste text. There's a "code" tag here in the forum to format text like this:
Code:
this
is
formatted as
code
 

danny36

Explorer
Joined
Nov 10, 2022
Messages
55
I'm sorry but i cannot to copy/paste from ssh from firefox browser, anyway the error log of ngix it's empty
 

Attachments

  • Immagine 2022-11-25 152640.png
    Immagine 2022-11-25 152640.png
    16.3 KB · Views: 206

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Don't use the shell in the browser. Use an SSH client. That's the point. The browser shell is broken.
Then look for the configuration files in /usr/local/etc/nginx and try to find out where it is actually logging.

Or where gitlab is logging. I don't know. I don't run gitlab. This software is installed somewhere in your jail, stores its configuration somewhere in your jail and logs somewhere in your jail. Configuration is at /usr/local/etc most of the time ...
 

danny36

Explorer
Joined
Nov 10, 2022
Messages
55
I have try to login with ssh client (putty) with root on the truenas ip but a i get access denied, the root passwod for ssh it's no the same of root user that can log in the admin panel (browser)?
How can I enable ssh inside jail?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
login with ssh client (putty) with root on the truenas ip but a i get access denied
Services > SSH > Edit (the pencil symbol) - explicitly permit login as root with password. Then restart the service.

When you are logged in to the NAS you can get a shell in the jail with iocage console jailname. Is this a NAT or a VNET jail? Because with NAT I think you cannot enable direct SSH access.
 

danny36

Explorer
Joined
Nov 10, 2022
Messages
55
ok thank you patrick, now I can log into ssh and into the jail but nothing error in the ngix log file.
I have set a static ip address for the gitlab jail and now I get a 502 error message (Whoops, GitLab is taking too much time to respond.) on broser but no error in log file.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
You need to check the nginx configuration for other logfiles locations. This whole thing is configurable ...

Also possibly it is not nginx but some gitlab builtin web server that generates the error. Check the gitlab configuration. All configuration is probably somewhere under /usr/local/etc

I know a lot of "look for" and "possibly" - the only person who knows is the author of the plugin or someone who is more familiar with it than I am. Nonetheless seek and you will find. :wink:
 

danny36

Explorer
Joined
Nov 10, 2022
Messages
55
I understand but it's frustrating because in another installation of truenas I was able to get gitlab working the first time.
 

danny36

Explorer
Joined
Nov 10, 2022
Messages
55
where I can find the author name of the plugin? alternative I can installa gitlab outside jail like normal linux application?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776

danny36

Explorer
Joined
Nov 10, 2022
Messages
55
Patrick you are my hero! you can point me a tutorial on how to install any softare inside jail don't using plugins?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776

Stick to packages. You need to get networking and name resolution for your jail correct and then you can e.g. pkg install gitea or whatever you feel like using.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
That means gitlab needs the "SysV IPC" feature enabled in the jail. I guess it's the postgres database that needs that.
iocage set allow_sysvipc=1 <name_of_your_jail>
 
Top